Add support for Coral Island #6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 'Create a standalone EXE with PyInstaller' | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
paths: | |
- 'main.py' | |
- 'games.json' | |
pull_request: | |
branches: | |
- main | |
paths: | |
- 'main.py' | |
- 'games.json' | |
jobs: | |
create-standalone-exe: | |
runs-on: windows-latest | |
steps: | |
- name: Check out repo | |
uses: actions/checkout@v4 | |
- name: Setup Python | |
uses: actions/setup-python@v5.1.0 | |
with: | |
python-version: '3.12' | |
- name: Install PyInstaller | |
run: 'pip install PyInstaller' | |
- name: Run PyInstaller | |
run: 'pyinstaller -F -n xgp-save-extractor --add-data games.json:. main.py' | |
- name: Upload standalone EXE | |
uses: actions/upload-artifact@v4 | |
with: | |
name: xgp-save-extractor | |
path: dist/xgp-save-extractor.exe |