Skip to content

Sounds, icons, build change. #39

Sounds, icons, build change.

Sounds, icons, build change. #39

Workflow file for this run

name: Build Windows & macOS Apps
on:
push:
branches: ['main']
jobs:
build:
name: Build Application
runs-on: ${{matrix.os}}
strategy:
matrix:
include:
- os: windows-latest
TARGET: Windows
ARTIFACT_NAME: StormTheCastle_Windows
OUT_FILE_NAME: StormTheCastle.exe
CMD_BUILD: pyinstaller -F -w -n StormTheCastle --add-data "assets;assets" -i "icon.ico" src/main.py
- os: macos-12
TARGET: macOS
ARTIFACT_NAME: StormTheCastle_macOS_x86
OUT_FILE_NAME: StormTheCastle.app
CMD_BUILD: >
pyinstaller -F -w -n StormTheCastle --osx-bundle-identifier "com.github.jmatcj.ld55" --add-data "assets:assets" -i "icon.icns" src/main.py &&
cd dist/ &&
zip -r9 StormTheCastle StormTheCastle.app/
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Build ${{matrix.TARGET}} App
run: ${{matrix.CMD_BUILD}}
- name: Upload App
uses: actions/upload-artifact@v4
with:
name: ${{matrix.ARTIFACT_NAME}}
path: ./dist/${{matrix.OUT_FILE_NAME}}