Skip to content

Commit

Permalink
mac Support and more
Browse files Browse the repository at this point in the history
  • Loading branch information
RainbowTabitha committed Dec 30, 2023
1 parent f07c5a5 commit 7d1f207
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 9 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ An all and one modding suite for Mario Party that allows certian customizations
## Downloads

##### Stable Release
- [Windows (static)](https://github.com/EndangeredNayla/Mario-Party-Toolkit/releases/download/latest/MarioPartyToolkit-win32.zip)
- [Windows (static)](https://github.com/EndangeredNayla/Mario-Party-Toolkit/releases/download/latest/MarioPartyToolkit-win32-static.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)
- [macOS](https://github.com/EndangeredNayla/Mario-Party-Toolkit/releases/download/latest/MarioPartyToolkit-darwin.zip) (universal)

##### Development Release
- [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)
- [Windows (static)](https://nightly.link/EndangeredNayla/Mario-Party-Toolkit/workflows/ci/master/MarioPartyToolkit-win32-static.zip)
- [Windows (dynamic)](https://nightly.link/EndangeredNayla/Mario-Party-Toolkit/workflows/ci/master/MarioPartyToolkit-win32-dynamic.zip)
- [macOS](https://nightly.link/EndangeredNayla/Mario-Party-Toolkit/workflows/ci/master/MarioPartyToolkit-darwin.zip) (Intel, Gatekeeper block needed)
1 change: 1 addition & 0 deletions build-macos.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pyinstaller --onefile main.py --add-data "assets/*:assets/" --name="Mario Party Toolkit" --noconsole --icon="assets/diceBlock.ico" --distpath="dist/arm64" --target-arch universal2
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 --icon="assets/diceBlock.ico"
pyinstaller --onefile .\main.py --add-data "assets/*;assets/" --name="Mario Party Toolkit" --noconsole --icon="assets/diceBlock.ico"
8 changes: 7 additions & 1 deletion build.sh
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
pyinstaller --onefile main.py --add-data "assets/*:assets/" --name="MarioPartyToolkit" --noconsole --icon="assets/diceBlock.ico"
arch -arm64 /opt/homebrew/bin/pyinstaller --onefile main.py --add-data "assets/*:assets/" --name="Mario Party Toolkit" --noconsole --icon="assets/diceBlock.ico" --distpath="dist/arm64"
arch -x86_64 /usr/local/bin/pyinstaller --onefile main.py --add-data "assets/*:assets/" --name="Mario Party Toolkit" --noconsole --icon="assets/diceBlock.ico" --distpath="dist/x86_64"
rm "dist/arm64/Mario Party Toolkit"
rm "dist/x86_64/Mario Party Toolkit"
cp -r "dist/arm64/" "dist/universal2"
rm "dist/universal2/Mario Party Toolkit.app/Contents/MacOS/Mario Party Toolkit"
arch -arm64 lipo -create -output "dist/universal2/Mario Party Toolkit.app/Contents/MacOS/Mario Party Toolkit" "dist/x86_64/Mario Party Toolkit.app/Contents/MacOS/Mario Party Toolkit" "dist/arm64/Mario Party Toolkit.app/Contents/MacOS/Mario Party Toolkit"
5 changes: 5 additions & 0 deletions install_macos_deps.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
arch -arm64 brew install [email protected] [email protected]
arch -x86_64 brew install [email protected] [email protected]

arch -arm64 /opt/homebrew/Cellar/[email protected]/3.12.1/bin/pip3.12 install -r requirements.txt --break-system-packages
arch -x86_64 /usr/local/Cellar/[email protected]/3.12.1/bin/pip3.12 install -r requirements.txt --break-system-packages
2 changes: 1 addition & 1 deletion install_pip_deps.bat
Original file line number Diff line number Diff line change
@@ -1 +1 @@
python -m pip install -r requirements
python -m pip install -r requirements.txt
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ customtkinter
tk
Pillow
pyperclip
pyinstaller
pyinstaller

0 comments on commit 7d1f207

Please sign in to comment.