diff --git a/.github/workflows/offline-build.yml b/.github/workflows/offline-build.yml new file mode 100644 index 000000000..63b0f7d31 --- /dev/null +++ b/.github/workflows/offline-build.yml @@ -0,0 +1,32 @@ +name: Offline Build + +on: + push: + branches: [ "release" ] + pull_request: #TODO remove, included to test this workflow + branches: [ "Dev" ] + +jobs: + build_windows: + name: Offline Build - ${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ windows-latest, macos-latest, ubuntu-latest ] + steps: + - uses: actions/checkout@v5 + - name: Set up Python + uses: actions/setup-python@v6 + with: + python-version: 3.x + - name: Build Offline Release + run: | + python SettingsToJson.py + mkdir GUI/python + cp *.py GUI/python + cd GUI + mv package_release.json package.json + npm i + npm run ng-prod + npm run dist + shell: bash diff --git a/GUI/package_release.json b/GUI/package_release.json index 1d369b679..ac3559f15 100644 --- a/GUI/package_release.json +++ b/GUI/package_release.json @@ -75,7 +75,14 @@ "executableName": "oot-randomizer-gui" }, "mac": { - "target": "dmg", + "target": [ + { + "target": "dmg", + "arch": [ + "universal" + ] + } + ], "category": "public.app-category.utilities" } },