feat: load stylesheet from file #32
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # This workflow will install Python dependencies and then build the patcher for all platforms | |
| # Taken with permission from ".github/workflows/python-build.yml" in https://github.com/NinjaCheetah/NUSGet by NinjaCheetah | |
| name: Python application | |
| on: | |
| push: | |
| branches: [ "master" ] | |
| pull_request: | |
| branches: [ "master" ] | |
| permissions: | |
| contents: read | |
| jobs: | |
| build-linux-x64: | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install ccache for Nuitka | |
| run: | | |
| sudo apt update && \ | |
| sudo apt install -y ccache patchelf | |
| - name: Set up Python 3.12 | |
| 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 Package | |
| run: make all | |
| - name: Prepare Package for Upload | |
| run: | | |
| mv WiiLinkPatcherGUI ~/WiiLinkPatcherGUI | |
| cd ~ | |
| tar cvf WiiLinkPatcherGUI.tar WiiLinkPatcherGUI | |
| - name: Upload Package | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| path: ~/WiiLinkPatcherGUI.tar | |
| name: WiiLinkPatcherGUI-Linux-x64 | |
| build-linux-arm64: | |
| runs-on: ubuntu-24.04-arm | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install ccache for Nuitka | |
| run: | | |
| sudo apt update && \ | |
| sudo apt install -y ccache patchelf | |
| - name: Set up Python 3.12 | |
| 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 Package | |
| run: make all | |
| - name: Prepare Package for Upload | |
| run: | | |
| mv WiiLinkPatcherGUI ~/WiiLinkPatcherGUI | |
| cd ~ | |
| tar cvf WiiLinkPatcherGUI.tar WiiLinkPatcherGUI | |
| - name: Upload Package | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| path: ~/WiiLinkPatcherGUI.tar | |
| name: WiiLinkPatcherGUI-Linux-arm64 | |
| build-macos-x64: | |
| runs-on: macos-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python 3.12 | |
| 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 Package | |
| run: ARCH_FLAGS=--macos-target-arch=x86_64 make all | |
| - name: Prepare Package for Upload | |
| run: | | |
| mv WiiLinkPatcherGUI.app ~/WiiLinkPatcherGUI.app | |
| cd ~ | |
| tar cvf WiiLinkPatcherGUI.tar WiiLinkPatcherGUI.app | |
| - name: Upload Package | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| path: ~/WiiLinkPatcherGUI.tar | |
| name: WiiLinkPatcherGUI-macOS-x64 | |
| build-macos-arm64: | |
| runs-on: macos-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python 3.12 | |
| 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 Package | |
| run: ARCH_FLAGS=--macos-target-arch=arm64 make all | |
| - name: Prepare Package for Upload | |
| run: | | |
| mv WiiLinkPatcherGUI.app ~/WiiLinkPatcherGUI.app | |
| cd ~ | |
| tar cvf WiiLinkPatcherGUI.tar WiiLinkPatcherGUI.app | |
| - name: Upload Package | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| path: ~/WiiLinkPatcherGUI.tar | |
| name: WiiLinkPatcherGUI-macOS-arm64 | |
| build-windows-x64: | |
| runs-on: windows-2019 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Enable Developer Command Prompt | |
| uses: ilammy/msvc-dev-cmd@v1.13.0 | |
| - name: Set up Python 3.12 | |
| 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 Package | |
| run: .\Build.ps1 | |
| - name: Upload Package | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| path: .\WiiLinkPatcherGUI.dist | |
| name: WiiLinkPatcherGUI-Windows-x64 | |
| - name: Upload Onefile Package | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| path: .\WiiLinkPatcherGUI.exe | |
| name: WiiLinkPatcherGUI-Windows-onefile-x64 |