From 8c53bd164e2433343fba3c9ee70fe741944d54ab Mon Sep 17 00:00:00 2001 From: Dylan Nielson Date: Wed, 6 Nov 2024 16:46:29 -0500 Subject: [PATCH] pin pyinstaller version till they fix an icon bug --- .github/workflows/build_executables.yml | 10 ++++++++-- requirements.txt | 2 +- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build_executables.yml b/.github/workflows/build_executables.yml index e00e79c..8db5cc4 100644 --- a/.github/workflows/build_executables.yml +++ b/.github/workflows/build_executables.yml @@ -126,11 +126,17 @@ jobs: - name: Install dependencies run: | export PATH=/Users/runner/hostedtoolcache/Python/3.10.11/arm64/bin:$PATH - python3 -m pip install --platform macosx_10_9_universal2 --upgrade pip - python3 -m pip install --platform macosx_10_9_universal2 -r requirements.txt + mkdir python_packages + python3 -m pip install --upgrade pip + python3 -m pip install --target $PWD/python_packages --platform macosx_10_13_universal2 -r requirements.txt + export PYTHON_PATH=$PWD/python_packages:$PYTHONPATH + + - name: Build executable with PyInstaller run: | + export PATH=/Users/runner/hostedtoolcache/Python/3.10.11/arm64/bin:$PATH + export PYTHON_PATH=$PWD/python_packages:$PYTHONPATH cd package python3 -m PyInstaller --noconfirm cogmood_mac.spec diff --git a/requirements.txt b/requirements.txt index 876f7fc..422bb7d 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,3 @@ -e ./smile -pyinstaller +pyinstaller <= 6.9.0 pefile \ No newline at end of file