mirror of
https://github.com/GAM-team/GAM.git
synced 2026-06-28 09:51:36 +00:00
26 lines
872 B
Bash
Executable File
26 lines
872 B
Bash
Executable File
echo "MacOS Version Info According to Python:"
|
|
macver=$(python -c "import platform; print(platform.mac_ver().version)")
|
|
echo $macver
|
|
echo "Xcode version:"
|
|
xcodebuild -version
|
|
export distpath="dist"
|
|
export gampath="${distpath}/gam"
|
|
rm -rf $gampath
|
|
export specfile="gam.spec"
|
|
if [ "$macver" == "10.15.7" ]; then
|
|
youtoo="--universal2"
|
|
else
|
|
youtoo=""
|
|
fi
|
|
$python -OO -m PyInstaller --clean --noupx --strip --distpath "${distpath}" $youtoo "${specfile}"
|
|
export gam="${gampath}/gam"
|
|
$gam version extended
|
|
export GAMVERSION=`$gam version simple`
|
|
cp LICENSE "${gampath}"
|
|
cp GamCommands.txt "${gampath}"
|
|
MACOSVERSION=$(defaults read loginwindow SystemVersionStampAsString)
|
|
GAM_ARCHIVE="gam-${GAMVERSION}-${GAMOS}-${PLATFORM}-MacOS${MACOSVERSION}.tar.xz"
|
|
rm "${gampath}/lastupdatecheck.txt"
|
|
# tar will cd to dist/ and tar up gam/
|
|
tar -C dist/ --create --file $GAM_ARCHIVE --xz gam
|