From b060664c9f24fbe26c8c03471c01c5de1d02bd7d Mon Sep 17 00:00:00 2001 From: Jay Lee Date: Thu, 17 Jun 2021 14:29:38 -0400 Subject: [PATCH] Update build.yml --- .github/workflows/build.yml | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c3cfef0d..9d7c2511 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -158,16 +158,18 @@ jobs: echo "Downloading ${url}" curl -o pyinstaller.tar.gz --compressed "${url}" tar xf pyinstaller.tar.gz - cd "pyinstaller-${PYINSTALLER_VERSION}/bootloader" - # remove pre-compiled bootloaders so we fail if bootloader compile fails - rm -rf ../PyInstaller/bootloader/*bit - if [ "${PLATFORM}" == "x86" ]; then - TARGETARCH="--target-arch=32bit" - else - TARGETARCH="" + cd "pyinstaller-${PYINSTALLER_VERSION}/" + if [ $GAMOS == "windows" ]; then + # remove pre-compiled bootloaders so we fail if bootloader compile fails + rm -rf ../PyInstaller/bootloader/*bit + if [ "${PLATFORM}" == "x86" ]; then + TARGETARCH="--target-arch=32bit" + else + TARGETARCH="" + fi + $python ./waf all $TARGETARCH + cd .. fi - $python ./waf all $TARGETARCH - cd .. $python setup.py install #$pip install pyinstaller