From e3cb13a414fb94cac7dc2e25b0f291e3fb6991da Mon Sep 17 00:00:00 2001 From: Jay Lee Date: Tue, 11 May 2021 14:46:24 -0400 Subject: [PATCH] youtoo --- .github/actions/macos-install.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/actions/macos-install.sh b/.github/actions/macos-install.sh index 0e60082f..390ecfd4 100755 --- a/.github/actions/macos-install.sh +++ b/.github/actions/macos-install.sh @@ -1,12 +1,18 @@ 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:" xcodebuild -version export distpath="dist" export gampath="${distpath}/gam" rm -rf $gampath 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" $gam version extended export GAMVERSION=`$gam version simple`