Skip to content

Commit

Permalink
CI: zip macOS release
Browse files Browse the repository at this point in the history
  • Loading branch information
cwpearson committed Jan 21, 2024
1 parent c9f2166 commit 1b99367
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/macos-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,13 @@ jobs:
--add-data beavertails/static:./beavertails/static \
--add-data beavertails/beavertails.tcss:. \
--collect-all pulp \
--onefile --nowindow --noconfirm
cp dist/tui dist/beavertails_macOS
chmod +x dist/beavertails_macOS
--onefile --nowindow --noconfirm \
--name beavertails
chmod +x dist/beavertails
zip -r beavertails_macOS.zip dist/beavertails
- name: Release
uses: ncipollo/release-action@v1
with:
artifacts: "dist/beavertails_macOS"
artifacts: "beavertails_macOS.zip"
allowUpdates: True

8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ pyinstaller beavertails/tui.py \
--add-data beavertails/static:./beavertails/static \
--add-data beavertails/beavertails.tcss:. \
--collect-all pulp \
--onefile
--onefile \
--name beavertails_macOS
```

## Building for Ubuntu
Expand All @@ -49,13 +50,14 @@ pyinstaller beavertails/tui.py \
--add-data beavertails/static:./beavertails/static \
--add-data beavertails/beavertails.tcss:. \
--collect-all pulp \
--onefile --nowindow --noconfirm
--onefile --nowindow --noconfirm \
--name beavertails_ubu2004
```

## Building for Windows

```bat
pyinstaller beavertails/tui.py --add-data "beavertails/static;./beavertails/static" --add-data "beavertails/beavertails.tcss;." --collect-all pulp --onefile --nowindow --noconfirm
pyinstaller beavertails/tui.py --add-data "beavertails/static;./beavertails/static" --add-data "beavertails/beavertails.tcss;." --collect-all pulp --onefile --nowindow --noconfirm --name beavertails_win2019.exe
```

## Acknowledgements
Expand Down

0 comments on commit 1b99367

Please sign in to comment.