From ef9a95d9e97fd40c590845754289aff24c4653f0 Mon Sep 17 00:00:00 2001 From: Florian Rappl Date: Sat, 1 Apr 2023 23:44:33 +0200 Subject: [PATCH] Removed legacy scripts --- buildAll.sh | 71 ------------------------------------ buildReleaseNuGetPackages.sh | 15 -------- start.sh | 10 ----- 3 files changed, 96 deletions(-) delete mode 100644 buildAll.sh delete mode 100755 buildReleaseNuGetPackages.sh delete mode 100755 start.sh diff --git a/buildAll.sh b/buildAll.sh deleted file mode 100644 index b88f32e..0000000 --- a/buildAll.sh +++ /dev/null @@ -1,71 +0,0 @@ -# flag arguments to target specific builds are available. - -# sh ./buildAll.sh -# sh ./buildAll.sh -t osx -# sh ./buildAll.sh -t win -# sh ./buildAll.sh -t linux - -target=default -while getopts t: flag; do - case "${flag}" in - t) target=${OPTARG} ;; - esac -done - -dir=$(cd -P -- "$(dirname -- "$0")" && pwd -P) -echo "Start building Electron.NET dev stack..." - -echo "Build Electron Host" -pushd $dir//ElectronNET.Host - npm install - npm run-script start -popd - -echo "Restore & Build API" -pushd $dir/ElectronNET.API - dotnet restore - dotnet build -popd - -echo "Restore & Build CLI" -pushd $dir/ElectronNET.CLI - dotnet restore - dotnet build -popd - -echo "Restore & Build WebApp Demo" -pushd $dir/ElectronNET.WebApp - dotnet restore - dotnet build - - echo "Install CLI as dotnet tool" - - dotnet tool uninstall ElectronNET.CLI -g - dotnet tool install ElectronNET.CLI -g - - echo "Invoke electronize build in WebApp Demo" - - if [[ "$target" != "default" ]]; then - echo "/target $target (dev-build)" - electronize build /target $target - else - echo "/target win (dev-build)" - electronize build /target win - - echo "/target linux (dev-build)" - electronize build /target linux - - # Cannot publish osx/win on windows due to: - # NETSDK1095: Optimizing assemblies for performance is not supported for the selected target platform or architecture. - if [[ "$OSTYPE" != "linux-gnu"* ]]; then - echo "/target osx (dev-build)" - electronize build /target osx - - echo "/target custom win7-x86;win (dev-build)" - electronize build /target custom "win7-x86;win" - fi - fi -popd - -# Be aware, that for non-electronnet-dev environments the correct -# invoke command would be dotnet electronize ... diff --git a/buildReleaseNuGetPackages.sh b/buildReleaseNuGetPackages.sh deleted file mode 100755 index 2771bb6..0000000 --- a/buildReleaseNuGetPackages.sh +++ /dev/null @@ -1,15 +0,0 @@ -echo "Start building Electron.NET dev stack..." - -echo "Restore & Build API" -cd ElectronNET.API && \ -dotnet restore && \ -dotnet build --configuration Release --force /property:Version=5.22.12 && \ -dotnet pack /p:Version=5.22.12 --configuration Release --force --output "%~dp0artifacts"; - -cd ../; - -echo "Restore & Build CLI" -cd ElectronNET.CLI && \ -dotnet restore && \ -dotnet build --configuration Release --force /property:Version=5.22.12 && \ -dotnet pack /p:Version=5.22.12 --configuration Release --force --output "%~dp0artifacts"; diff --git a/start.sh b/start.sh deleted file mode 100755 index ac13c7e..0000000 --- a/start.sh +++ /dev/null @@ -1,10 +0,0 @@ -echo Bundle ASP.NET Core Project into EXE - -cd ElectronNET.WebApp -dotnet restore -dotnet publish -r osx-x64 --output ../ElectronNET.Host/bin/ - -echo Start Electron with bundled EXE -cd ../ElectronNET.Host -npm install -../ElectronNET.Host/node_modules/.bin/electron "../ElectronNET.Host/main.js" \ No newline at end of file