Skip to content

Commit

Permalink
multiplatform build
Browse files Browse the repository at this point in the history
  • Loading branch information
BLooperZ committed Jul 7, 2022
1 parent 051c71b commit 343f32b
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ jobs:
matrix:
os:
- windows-latest
- ubuntu-latest
- macos-latest
game:
- ft
- dott
Expand All @@ -31,7 +33,12 @@ jobs:

- run: |
poetry install -E cutscenes
poetry run build.${{ matrix.game }}.bat
if [ "$RUNNER_OS" == "Windows" ]; then
poetry run build.${{ matrix.game }}.bat
else
poetry run bash ./build.${{ matrix.game }}.sh
fi
shell: bash
# Optionally verify that it works (provided that it does not need user interaction)
- run: ./dist/remonster --help
- run: cp LICENSE ./dist/LICENSE
Expand Down
6 changes: 6 additions & 0 deletions build.dott.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
pyinstaller --onefile \
--add-data "dott/*.tbl:." \
--add-data "dott/*.json:." \
src/remonstered/scripts/remonster.py
mkdir dist
cp README.dott.md dist/README.md
6 changes: 6 additions & 0 deletions build.ft.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
pyinstaller --onefile \
--add-data "ft/*.tbl:." \
--add-data "ft/*.json:." \
src/remonstered/scripts/remonster.py
mkdir dist
cp README.ft.md dist/README.md

0 comments on commit 343f32b

Please sign in to comment.