Skip to content

Commit

Permalink
Prevent console window on mac and windows
Browse files Browse the repository at this point in the history
Resolves: #16
  • Loading branch information
ccntrq committed Feb 10, 2023
1 parent 45d1ed3 commit 924c150
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,19 +27,18 @@ jobs:
- name: Build Executable (Windows)
if: runner.os == 'Windows'
shell: powershell
run: pyinstaller -p src --add-data "resources;resources" --collect-data arcade --onefile game.py
run: pyinstaller -p src --add-data "resources;resources" --collect-data arcade --onefile --windowed game.py

- name: Build Executable (Linux/Mac)
if: runner.os == 'Linux' || runner.os == 'macOs'
run: pyinstaller -p src --add-data "resources:resources" --collect-data arcade --onefile game.py
run: pyinstaller -p src --add-data "resources:resources" --collect-data arcade --onefile --windowed game.py

# Uploads artifact
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: ${{ runner.os }}-exe
path: |
dist/game.exe
dist/game
dist/game*

0 comments on commit 924c150

Please sign in to comment.