diff --git a/.github/workflows/pyinstaller-windows.yml b/.github/workflows/pyinstaller-windows.yml index 1ac0f04..5f45726 100644 --- a/.github/workflows/pyinstaller-windows.yml +++ b/.github/workflows/pyinstaller-windows.yml @@ -30,12 +30,12 @@ jobs: if: steps.cache-gtk4.outputs.cache-hit != 'true' run: Expand-Archive -Path Gvsbuild.zip -DestinationPath C:\gtk -Force - - name: Install PyGObject wheel - run: pip install --force-reinstall (Resolve-Path C:\gtk\wheels\PyGObject*.whl) (Resolve-Path C:\gtk\wheels\pycairo*.whl) - - name: Add GTK bin to PATH run: echo "C:\gtk\bin" | Out-File -Append -Encoding ascii $env:GITHUB_PATH + - name: Install PyGObject wheel + run: pip install --force-reinstall (Resolve-Path C:\gtk\wheels\PyGObject*.whl) (Resolve-Path C:\gtk\wheels\pycairo*.whl) + - name: Install PyInstaller run: pip install pyinstaller diff --git a/.gitignore b/.gitignore index 30283e6..ff5d31c 100644 --- a/.gitignore +++ b/.gitignore @@ -178,3 +178,4 @@ cython_debug/ # Binary files *.bin +!pyinstaller/LpcCrOSEC.bin diff --git a/pyinstaller/LpcCrOSEC.bin b/pyinstaller/LpcCrOSEC.bin new file mode 100644 index 0000000..adbfa4c Binary files /dev/null and b/pyinstaller/LpcCrOSEC.bin differ diff --git a/pyinstaller/yafi.spec b/pyinstaller/yafi.spec index 747b261..4e2a5e4 100755 --- a/pyinstaller/yafi.spec +++ b/pyinstaller/yafi.spec @@ -2,7 +2,7 @@ from PyInstaller.utils.hooks import collect_data_files import os -datas = [('LpcCrOSEC.bin', '.')] if os.path.exists('LpcCrOSEC.bin') else [] +datas = [('LpcCrOSEC.bin', '.')] if os.name == 'nt' and os.path.exists('LpcCrOSEC.bin') else [] datas += collect_data_files('yafi')