Skip to content

Commit

Permalink
macOS support
Browse files Browse the repository at this point in the history
  • Loading branch information
RainbowTabitha committed Dec 26, 2023
1 parent 9392522 commit 02303d8
Show file tree
Hide file tree
Showing 8 changed files with 66 additions and 49 deletions.
56 changes: 56 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: CI

on:
push:
pull_request:

jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest, macos-latest]

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Install PIP Modules
run: python -m pip install -r requirements.txt

- name: Build Project (Dynamic build)
if: matrix.os == 'windows-latest'
run: pyinstaller --noconsole --name="Mario Party Toolkit" --add-data "assets/*;assets/" --distpath=dynamic --icon="assets/diceBlock.ico" main.py

- name: Build Project (Static build)
if: matrix.os == 'windows-latest'
run: pyinstaller --onefile --noconsole --name="Mario Party Toolkit" --add-data "assets/*;assets/" --icon="assets/diceBlock.ico" main.py

- name: Build Project (macOS build)
if: matrix.os == 'macos-latest'
run: pyinstaller --onefile --noconsole --name="Mario Party Toolkit" --add-data "assets/*:assets/" --icon="assets/diceBlock.ico" main.py

- name: Purge Files (macOS build)
if: matrix.os == 'macos-latest'
run: cd "/Users/runner/work/Mario-Party-Toolkit/Mario-Party-Toolkit/dist/ && rm "Mario Party Toolkit"

- name: Upload Artifact
if: matrix.os == 'windows-latest'
uses: actions/upload-artifact@v2
with:
name: MarioPartyToolkit-win32-static
path: D:\a\Mario-Party-Toolkit\Mario-Party-Toolkit\dist

- name: Upload Artifact
if: matrix.os == 'windows-latest'
uses: actions/upload-artifact@v2
with:
name: MarioPartyToolkit-win32-dynamic
path: D:\a\Mario-Party-Toolkit\Mario-Party-Toolkit\dynamic

- name: Upload Artifact
if: matrix.os == 'macos-latest'
uses: actions/upload-artifact@v2
with:
name: MarioPartyToolkit-darwin
path: /Users/runner/work/Mario-Party-Toolkit/Mario-Party-Toolkit/dist
47 changes: 0 additions & 47 deletions .github/workflows/windows.yml

This file was deleted.

9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,12 @@ An all and one modding suite for Mario Party that allows certian customizations

## Downloads

##### [Latest Releases](https://github.com/EndangeredNayla/Mario-Party-Toolkit/releases/latest)
##### Latest Release
- [Windows (static)](https://github.com/EndangeredNayla/Mario-Party-Toolkit/releases/download/latest/MarioPartyToolkit-win32.zip)
- [Windows (dynamic)](https://github.com/EndangeredNayla/Mario-Party-Toolkit/releases/download/latest/MarioPartyToolkit-win32-dynamic.zip)
- [macOS](https://github.com/EndangeredNayla/Mario-Party-Toolkit/releases/download/latest/MarioPartyToolkit-darwin.zip)

##### [Development Releases](https://nightly.link/EndangeredNayla/Mario-Party-Toolkit/workflows/windows/master)
- [Windows (static)](https://nightly.link/EndangeredNayla/Mario-Party-Toolkit/workflows/windows/master/MarioPartyToolkit-win32.zip)
- [Windows (dynamic)](https://nightly.link/EndangeredNayla/Mario-Party-Toolkit/workflows/windows/master/MarioPartyToolkit-win32-dynamic.zip)
- [macOS](https://nightly.link/EndangeredNayla/Mario-Party-Toolkit/workflows/windows/master/MarioPartyToolkit-macOS.zip)
Binary file added assets/diceBlock.icns
Binary file not shown.
Binary file added assets/diceBlock.ico
Binary file not shown.
Binary file added assets/diceBlock.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion build.bat
Original file line number Diff line number Diff line change
@@ -1 +1 @@
pyinstaller --onefile .\main.py --add-data "assets/*;assets/" --name="MarioPartyToolkit" --noconsole
pyinstaller --onefile .\main.py --add-data "assets/*;assets/" --name="MarioPartyToolkit" --noconsole --icon="assets/diceBlock.ico"
1 change: 1 addition & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pyinstaller --onefile main.py --add-data "assets/*:assets/" --name="MarioPartyToolkit" --noconsole --icon="assets/diceBlock.ico"

0 comments on commit 02303d8

Please sign in to comment.