fix distpath

This commit is contained in:
Jay Lee
2021-05-10 08:53:19 -04:00
parent c48b135c43
commit 2089589d34
3 changed files with 12 additions and 9 deletions

View File

@@ -1,9 +1,10 @@
export gampath="dist"
export distpath="dist/"
export gampath="${distpath}/gam"
rm -rf $gampath
mkdir -p $gampath
export gampath=$(readlink -e $gampath)
$python -OO -m PyInstaller --clean --noupx --strip -F --distpath $gampath gam.spec
export gam="${gampath}/gam/gam"
$python -OO -m PyInstaller --clean --noupx --strip -F --distpath $distpath gam.spec
export gam="${gampath}/gam"
export GAMVERSION=`$gam version simple`
cp LICENSE $gampath
cp GamCommands.txt $gampath

View File

@@ -2,11 +2,12 @@ echo "MacOS Version Info According to Python:"
python -c "import platform; print(platform.mac_ver())"
echo "Xcode versionn:"
xcodebuild -version
export gampath=dist
export distpath="dist/"
export gampath="${distpath}/gam"
rm -rf $gampath
export specfile="gam.spec"
$python -OO -m PyInstaller --clean --noupx --strip -F --distpath "${gampath}" "${specfile}"
export gam="${gampath}/gam/gam"
$python -OO -m PyInstaller --clean --noupx --strip -F --distpath "${distpath}" "${specfile}"
export gam="${gampath}/gam"
$gam version extended
export GAMVERSION=`$gam version simple`
cp LICENSE "${gampath}"

View File

@@ -4,12 +4,13 @@ elif [[ "$PLATFORM" == "x86" ]]; then
export WIX_BITS="x86"
fi
echo "compiling GAM with pyinstaller..."
export gampath="dist"
export distpath="dist/"
export gampath="${distpath}/gam"
rm -rf $gampath
mkdir -p $gampath
export gampath=$(readlink -e $gampath)
pyinstaller --clean --noupx -F --distpath $gampath gam.spec
export gam="${gampath}/gam/gam"
pyinstaller --clean --noupx -F --distpath $distpath gam.spec
export gam="${gampath}/gam"
echo "running compiled GAM..."
$gam version
export GAMVERSION=$($gam version simple)