mirror of
https://github.com/GAM-team/GAM.git
synced 2026-07-03 20:31:35 +00:00
Delete windows-install.sh
This commit is contained in:
31
.github/actions/windows-install.sh
vendored
31
.github/actions/windows-install.sh
vendored
@@ -1,31 +0,0 @@
|
|||||||
if [[ "$PLATFORM" == "x86_64" ]]; then
|
|
||||||
export WIX_BITS="x64"
|
|
||||||
elif [[ "$PLATFORM" == "x86" ]]; then
|
|
||||||
export WIX_BITS="x86"
|
|
||||||
fi
|
|
||||||
echo "compiling GAM with pyinstaller..."
|
|
||||||
export distpath="dist/"
|
|
||||||
export gampath="${distpath}gam"
|
|
||||||
rm -rf $gampath
|
|
||||||
/c/python/scripts/pyinstaller --clean --noupx --distpath $gampath gam.spec
|
|
||||||
export gam="${gampath}/gam"
|
|
||||||
echo "running compiled GAM..."
|
|
||||||
$gam version
|
|
||||||
export GAMVERSION=$($gam version simple)
|
|
||||||
rm $gampath/lastupdatecheck.txt
|
|
||||||
cp LICENSE $gampath
|
|
||||||
cp GamCommands.txt $gampath
|
|
||||||
cp gam-setup.bat $gampath
|
|
||||||
GAM_ARCHIVE=gam-$GAMVERSION-$GAMOS-$PLATFORM.zip
|
|
||||||
cwd=$(pwd)
|
|
||||||
cd "${distpath}"
|
|
||||||
/c/Program\ Files/7-Zip/7z.exe a -tzip "$GAM_ARCHIVE" gam -xr!.svn
|
|
||||||
mv "${GAM_ARCHIVE}" "${cwd}"
|
|
||||||
cd "${cwd}"
|
|
||||||
echo "Running WIX candle $WIX_BITS..."
|
|
||||||
/c/Program\ Files\ \(x86\)/WiX\ Toolset\ v3.11/bin/candle.exe -arch $WIX_BITS gam.wxs
|
|
||||||
echo "Done with WIX candle..."
|
|
||||||
echo "Running WIX light..."
|
|
||||||
/c/Program\ Files\ \(x86\)/WiX\ Toolset\ v3.11/bin/light.exe -ext /c/Program\ Files\ \(x86\)/WiX\ Toolset\ v3.11/bin/WixUIExtension.dll gam.wixobj -o gam-"$GAMVERSION"-"$GAMOS"-"$PLATFORM".msi || true;
|
|
||||||
echo "Done with WIX light..."
|
|
||||||
rm *.wixpdb
|
|
||||||
Reference in New Issue
Block a user