mirror of
https://github.com/GAM-team/GAM.git
synced 2026-07-03 20:31:35 +00:00
youtoo
This commit is contained in:
10
.github/actions/macos-install.sh
vendored
10
.github/actions/macos-install.sh
vendored
@@ -1,12 +1,18 @@
|
|||||||
echo "MacOS Version Info According to Python:"
|
echo "MacOS Version Info According to Python:"
|
||||||
python -c "import platform; print(platform.mac_ver())"
|
macver=$(python -c "import platform; print(platform.mac_ver().version)")
|
||||||
|
echo $macver
|
||||||
echo "Xcode version:"
|
echo "Xcode version:"
|
||||||
xcodebuild -version
|
xcodebuild -version
|
||||||
export distpath="dist"
|
export distpath="dist"
|
||||||
export gampath="${distpath}/gam"
|
export gampath="${distpath}/gam"
|
||||||
rm -rf $gampath
|
rm -rf $gampath
|
||||||
export specfile="gam.spec"
|
export specfile="gam.spec"
|
||||||
$python -OO -m PyInstaller --clean --noupx --strip --distpath "${distpath}" --universal2 "${specfile}"
|
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"
|
export gam="${gampath}/gam"
|
||||||
$gam version extended
|
$gam version extended
|
||||||
export GAMVERSION=`$gam version simple`
|
export GAMVERSION=`$gam version simple`
|
||||||
|
|||||||
Reference in New Issue
Block a user