From 26eca09bb908dc1f106f12ef74f423f154b843c7 Mon Sep 17 00:00:00 2001 From: Jay Lee Date: Fri, 20 Sep 2024 01:11:21 +0000 Subject: [PATCH] ONEDIR for Windows and anything that's not StaticX --- .github/workflows/build.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0f250259..9c2a67b9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -538,13 +538,11 @@ jobs: # brew OpenSSL gets picked up by PyInstaller # breaking our self-compiled version brew uninstall --ignore-dependencies openssl - export PYINSTALLER_BUILD_ONEDIR=yes elif [[ "${RUNNER_OS}" == "Windows" ]]; then # Work around issue where PyInstaller picks up python3.dll from other Python versions # https://github.com/pyinstaller/pyinstaller/issues/7102 export PATH="$(dirname ${PYTHON}):/usr/bin" - export PYINSTALLER_BUILD_ONEDIR=no - elif [[ "${staticx}" != "yes" ]]; then + if [[ "${staticx}" != "yes" ]]; then export PYINSTALLER_BUILD_ONEDIR=yes fi "${PYTHON}" -m PyInstaller --clean --noconfirm --distpath="${distpath}" gam.spec