From 0111a26a5526fe5f01c0dc3b4d4391af4234c2a7 Mon Sep 17 00:00:00 2001 From: yum Date: Sun, 18 Dec 2022 20:36:42 -0800 Subject: Now it's possible to build the app from Powershell No more WSL dependencies! --- GUI/Libraries/fetch.ps1 | 20 ++++++++++++++++++++ GUI/Libraries/fetch.sh | 14 -------------- 2 files changed, 20 insertions(+), 14 deletions(-) create mode 100644 GUI/Libraries/fetch.ps1 delete mode 100644 GUI/Libraries/fetch.sh (limited to 'GUI/Libraries') diff --git a/GUI/Libraries/fetch.ps1 b/GUI/Libraries/fetch.ps1 new file mode 100644 index 0000000..5f8d63e --- /dev/null +++ b/GUI/Libraries/fetch.ps1 @@ -0,0 +1,20 @@ +Set-PSDebug -trace 0 + +$WX_3_2_1_URL = "https://github.com/wxWidgets/wxWidgets/releases/download/v3.2.1/wxWidgets-3.2.1.zip" +$WX_URL = $WX_3_2_1_URL +$WX_FILE = $(Split-Path -Path $WX_URL -Leaf) + +pushd $PSScriptRoot + +if (Test-Path wx) { + rm -Recurse wx +} + +mkdir wx +pushd wx > $null +Invoke-WebRequest $WX_URL -OutFile $WX_FILE +Expand-Archive $WX_FILE -DestinationPath . +popd > $null + +popd > $null + diff --git a/GUI/Libraries/fetch.sh b/GUI/Libraries/fetch.sh deleted file mode 100644 index dcf096c..0000000 --- a/GUI/Libraries/fetch.sh +++ /dev/null @@ -1,14 +0,0 @@ -#!/usr/bin/env bash - -set -o errexit -set -o xtrace - -WX_3_2_1_URL=https://github.com/wxWidgets/wxWidgets/releases/download/v3.2.1/wxWidgets-3.2.1.zip -WX_URL=$WX_3_2_1_URL - -mkdir wx -pushd wx >/dev/null -wget $WX_URL -unzip $(basename $WX_URL) -popd >/dev/null - -- cgit v1.2.3