diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..1da81e3 --- /dev/null +++ b/.github/workflows/ci.yml @@ -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 \ No newline at end of file diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml deleted file mode 100644 index ad6a503..0000000 --- a/.github/workflows/windows.yml +++ /dev/null @@ -1,47 +0,0 @@ -# This is a basic workflow to help you get started with Actions - -name: Windows CI - -# Controls when the action will run. Triggers the workflow on push or pull request -# events but only for the master branch -on: - push: - pull_request: - -# A workflow run is made up of one or more jobs that can run sequentially or in parallel -jobs: - # This workflow contains a single job called "build" - build: - # The type of runner that the job will run on - runs-on: windows-latest - - # Steps represent a sequence of tasks that will be executed as part of the job - steps: - # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - - uses: actions/checkout@v2 - - # Installs PIP Modules - - name: Install PIP Modules - run: python -m pip install -r requirements.txt - - # Build Project (Dynamic build) - - name: Build Project (Dynamic build) - run: pyinstaller --noconsole --name="Mario Party Toolkit" --add-data "assets/*;assets/" --distpath=dynamic main.py - - # Build Project (Static build) - - name: Build Project (Static build) - run: pyinstaller --onefile --noconsole --name="Mario Party Toolkit" --add-data "assets/*;assets/" main.py - - # Upload Artifact - - name: Upload Artifact - uses: actions/upload-artifact@v2 - with: - name: MarioPartyToolkit-win32-static - path: D:\a\Mario-Party-Toolkit\Mario-Party-Toolkit\dist - - # Upload Artifact - - name: Upload Artifact - uses: actions/upload-artifact@v2 - with: - name: MarioPartyToolkit-win32 - path: D:\a\Mario-Party-Toolkit\Mario-Party-Toolkit\dynamic diff --git a/README.md b/README.md index 709e25d..4f16863 100644 --- a/README.md +++ b/README.md @@ -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) diff --git a/assets/diceBlock.icns b/assets/diceBlock.icns new file mode 100644 index 0000000..23588c1 Binary files /dev/null and b/assets/diceBlock.icns differ diff --git a/assets/diceBlock.ico b/assets/diceBlock.ico new file mode 100644 index 0000000..189117c Binary files /dev/null and b/assets/diceBlock.ico differ diff --git a/assets/diceBlock.png b/assets/diceBlock.png new file mode 100644 index 0000000..70a4f21 Binary files /dev/null and b/assets/diceBlock.png differ diff --git a/build.bat b/build.bat index 9a5e068..c296803 100644 --- a/build.bat +++ b/build.bat @@ -1 +1 @@ -pyinstaller --onefile .\main.py --add-data "assets/*;assets/" --name="MarioPartyToolkit" --noconsole \ No newline at end of file +pyinstaller --onefile .\main.py --add-data "assets/*;assets/" --name="MarioPartyToolkit" --noconsole --icon="assets/diceBlock.ico" \ No newline at end of file diff --git a/build.sh b/build.sh new file mode 100644 index 0000000..76adf8e --- /dev/null +++ b/build.sh @@ -0,0 +1 @@ +pyinstaller --onefile main.py --add-data "assets/*:assets/" --name="MarioPartyToolkit" --noconsole --icon="assets/diceBlock.ico"