Skip to content

Commit

Permalink
GitHub release workflow: add PYTHONPATH for current package to pyinst…
Browse files Browse the repository at this point in the history
…aller commands
  • Loading branch information
rrthomas committed Jan 1, 2025
1 parent 6f6eafe commit 26e63ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ jobs:
- name: Build the executable (Ubuntu)
if: ${{ matrix.os == 'ubuntu-20.04' }}
run: |
pyinstaller --noconfirm --onefile --windowed --name wincoll-${{ runner.os }}-${{ runner.arch }} --copy-metadata wincoll --add-data "wincoll/*.png:wincoll/" --add-data "wincoll/*.ttf:wincoll/" --add-data "wincoll/levels:wincoll/levels" --add-data "wincoll/locale:wincoll/locale" wincoll/__main__.py
PYTHONPATH=. pyinstaller --noconfirm --onefile --windowed --name wincoll-${{ runner.os }}-${{ runner.arch }} --copy-metadata wincoll --add-data "wincoll/*.png:wincoll/" --add-data "wincoll/*.ttf:wincoll/" --add-data "wincoll/levels:wincoll/levels" --add-data "wincoll/locale:wincoll/locale" wincoll/__main__.py
./dist/wincoll-${{ runner.os }}-${{ runner.arch }} --help
- name: Build the executable (macOS)
if: ${{ matrix.os == 'macos-13' || matrix.os == 'macos-latest' }}
Expand All @@ -77,7 +77,7 @@ jobs:
pyi-makespec --windowed --name WinColl --icon wincoll.icns --copy-metadata wincoll --add-data "wincoll/*.png:wincoll/" --add-data "wincoll/*.ttf:wincoll/" --add-data "wincoll/levels:wincoll/levels" --add-data "wincoll/locale:wincoll/locale" wincoll/__main__.py
export version=$(grep version pyproject.toml)
sed -i '' -e "s/\(name='WinColl.app'\)/\1,\n $version/" wincoll.spec
pyinstaller --noconfirm wincoll.spec
PYTHONPATH=. pyinstaller --noconfirm wincoll.spec
brew install create-dmg
mkdir dmg-folder
mv dist/wincoll.app dmg-folder/
Expand Down

0 comments on commit 26e63ae

Please sign in to comment.