Skip to content
This repository was archived by the owner on Nov 23, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ jobs:
- name: Scan clean public checkout
run: python3 tools/check-public-tree.py .
- name: Generate GitHub Wiki from public guides
run: python3 tools/build-wiki.py
run: |
python3 tools/build-wiki.py
python3 tools/test-package-setup-platform.py

host-core:
name: Host core and HTTP
Expand Down
43 changes: 43 additions & 0 deletions .github/workflows/package-setup.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Package Moader Setup apps

on:
workflow_dispatch:

permissions:
contents: read

jobs:
package:
name: Prebuilt macOS, Linux and Windows apps
if: github.ref == 'refs/heads/main'
runs-on: macos-15
timeout-minutes: 90
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
with:
python-version: '3.12'
- name: Stage only matched v4 native inputs
env:
GH_TOKEN: ${{ github.token }}
run: |
mkdir -p build/release-inputs
gh release download v4.0.0 --repo "$GITHUB_REPOSITORY" \
--pattern 'Moader-backend-v4.0.0.zip' --dir build/release-inputs
python3 tools/stage-release-inputs.py \
--backend-zip build/release-inputs/Moader-backend-v4.0.0.zip
- name: Package and verify five prebuilt desktop apps
run: |
python3 tools/package-release.py --output build/release-artifacts
python3 tools/package-setup-platform.py --release-dir build/release-artifacts
cd build/release-artifacts
shasum -a 256 -c SHA256SUMS.txt
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: moader-v4-release-assets
path: build/release-artifacts/*
if-no-files-found: error
compression-level: 0
retention-days: 7
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## v4.0.0 — Setup and in-app updates

- Publish **Moader Setup** as a separate, self-contained ZIP with desktop launchers for macOS, Linux and Windows with WSL2. The smaller backend ZIP retains the command-line tools and matched native files. Setup guides host preparation, SD copying, connection checks and support export using the existing checked installers.
- Publish five self-contained, prebuilt **Moader Setup** app downloads for macOS, Linux and Windows with WSL2. GitHub Actions packages each OS and architecture separately. The smaller backend ZIP retains the command-line tools and matched native files. Setup guides host preparation, SD copying, connection checks and support export using the existing checked installers.
- Add **Settings → Updates** to the console app for manual checks and optional checks at launch and every six hours. Updates verify both app and resident downloads before installation and can resume after interruption.
- Match the Setup window to Moader's console and browser theme. Keep the pinned kaiHEN and Seedsow A/B components. The new Setup and update flows have host validation; the exact v4.0.0 release pair and desktop kit have no Switch 2 installation result. [Release notes](docs/releases/v4.0.0.md).

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ The console app opens from **hbmenu**. The resident plugin keeps the browser and
| v4.0.0 download | What's inside |
| --- | --- |
| [Moader app and plugin](https://github.com/H644b/Moader/releases/download/v4.0.0/Moader-v4.0.0.zip) | The two files to copy to SD when you already have a compatible backend. |
| [Moader Setup](https://github.com/H644b/Moader/releases/download/v4.0.0/Moader-Setup-v4.0.0.zip) | Guided desktop app with its own complete backend files and runtimes. |
| [Moader Setup apps](https://github.com/H644b/Moader/releases/tag/v4.0.0) | Choose the prebuilt macOS, Linux or Windows download for your computer. Each app contains its matching backend files. |
| [Moader backend kit](https://github.com/H644b/Moader/releases/download/v4.0.0/Moader-backend-v4.0.0.zip) | Smaller command-line kit with the app, plugin and backend files. |

[Release notes and checksums](https://github.com/H644b/Moader/releases/tag/v4.0.0)
Expand Down
6 changes: 3 additions & 3 deletions THIRD_PARTY.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ Moader's original source is licensed under **GPL-2.0-only**. Upstream files keep

| Component | Version or revision | Location and license |
| --- | --- | --- |
| [Node.js](https://nodejs.org/download/release/v24.22.3/) | 24.22.3 | Setup ZIP only: pinned native controller executables for macOS and Linux arm64/x86_64. The upstream `LICENSE` accompanies them in `host-runtimes/node-v24.22.3/LICENSE`. Archive checksums are enforced by [`tools/package-release.py`](tools/package-release.py). |
| [uv](https://github.com/astral-sh/uv/releases/tag/0.12.16) | 0.12.16 | Setup ZIP only: pinned native helper for kit-scoped Python provisioning, with [Apache-2.0](setup/licenses/uv-LICENSE-APACHE.txt) and [MIT](setup/licenses/uv-LICENSE-MIT.txt) notices. Archive checksums are enforced by [`tools/package-release.py`](tools/package-release.py). |
| [Electron](https://github.com/electron/electron/releases/tag/v45.4.1) | 45.4.1 | Setup ZIP only: pinned desktop runtimes for macOS and Linux arm64/x86_64 and Windows x86_64. Each runtime keeps its upstream `LICENSE` and `LICENSES.chromium.html`; archive checksums are enforced by [`tools/package-release.py`](tools/package-release.py). |
| [Node.js](https://nodejs.org/download/release/v24.22.3/) | 24.22.3 | Setup app downloads only: pinned native controller executables for macOS and Linux arm64/x86_64. The upstream `LICENSE` accompanies them in `host-runtimes/node-v24.22.3/LICENSE`. Archive checksums are enforced by [`tools/package-release.py`](tools/package-release.py). |
| [uv](https://github.com/astral-sh/uv/releases/tag/0.12.16) | 0.12.16 | Setup app downloads only: pinned native helper for kit-scoped Python provisioning, with [Apache-2.0](setup/licenses/uv-LICENSE-APACHE.txt) and [MIT](setup/licenses/uv-LICENSE-MIT.txt) notices. Archive checksums are enforced by [`tools/package-release.py`](tools/package-release.py). |
| [Electron](https://github.com/electron/electron/releases/tag/v45.4.1) | 45.4.1 | Setup app downloads only: pinned desktop runtimes for macOS and Linux arm64/x86_64 and Windows x86_64. Each runtime keeps its upstream `LICENSE` and `LICENSES.chromium.html`; archive checksums are enforced by [`tools/package-release.py`](tools/package-release.py). |
| [kaiHEN](https://github.com/ouncebrew/kaihen) | `e897f991524590833b82fbe8d63a3c6775fb8101` | Source in [`runtime/kaihen`](runtime/kaihen/). GPL-2.0-only with the upstream linking exception and separate permissive component notices. Moader's patch is [`software-builds/kaihen-mo.patch`](software-builds/kaihen-mo.patch). |
| [kaiHEN release](https://github.com/ouncebrew/kaihen/releases/tag/20261114c) | `20261114c` | Setup downloads the qualified official base, game loader and hbmenu; the v0.2.0 kit supplies its separately matched patched RO/HEN/bootstrap. Bundled component notices are retained in [`native/third_party/licenses`](native/third_party/licenses/) and [`runtime/kaihen/release/licenses`](runtime/kaihen/release/licenses/). Archive SHA-256: `63b91e5e7c6f411aad758758e5a1a3cbe1f855b4304d87916afe5319b9dfd967`. |
| [ns2jb-modloader](https://github.com/SebaaMG/ns2jb-modloader) | `63d46b27ea33a9bfeb43b497b8fb89498cf6c148` | Forked source in [`runtime/modloader`](runtime/modloader/), under its retained GPL-2.0 terms and bundled-component notices. Moader adds dynamic catalogues, lifetime ownership, receipts and closed debug snapshots. |
Expand Down
4 changes: 2 additions & 2 deletions docs/INSTALLATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

Choose a download based on what is already running on your Switch. Use the app and resident plugin from the same release.

For guided installation, SD copying, connection checks and support export, download the separate, self-contained [Moader Setup ZIP](https://github.com/H644b/Moader/releases/download/v4.0.0/Moader-Setup-v4.0.0.zip). Extract it and open **Moader Setup.app** on macOS, **Moader Setup** on Linux, or **Moader Setup Windows/Moader Setup.exe** on Windows with WSL2. The smaller backend ZIP provides the command-line routes below. [Setup guide](SETUP_GUI.md)
For guided installation, SD copying, connection checks and support export, choose the prebuilt [Moader Setup app for your computer](SETUP_GUI.md#download). Extract it and open **Moader Setup.app** on macOS, **Moader Setup** on Linux, or **Moader Setup.exe** on Windows with WSL2. Each app contains its matching backend files. The smaller backend ZIP provides the command-line routes below.

| What you need | Download |
| --- | --- |
| Install or update Moader on an existing compatible backend | [Moader-v4.0.0.zip](https://github.com/H644b/Moader/releases/download/v4.0.0/Moader-v4.0.0.zip) |
| Guided setup for this boot | [Moader-Setup-v4.0.0.zip](https://github.com/H644b/Moader/releases/download/v4.0.0/Moader-Setup-v4.0.0.zip) |
| Guided setup for this boot | [Choose your macOS, Linux or Windows app](SETUP_GUI.md#download) |
| Command-line backend kit | [Moader-backend-v4.0.0.zip](https://github.com/H644b/Moader/releases/download/v4.0.0/Moader-backend-v4.0.0.zip) |

## Copy or update the console app
Expand Down
6 changes: 3 additions & 3 deletions docs/MAINTAINING.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Package a clean, committed source tree with the exact binaries recorded in `conf
| Public source | Audited source allowlist, tests, documentation, license notices and portable native prebuilt assets |
| `Moader-v4.0.0.zip` | SD layout: `switch/Moader.nro`, `kaihen/plugins/moader.nso`, release docs/licenses/manifest |
| `Moader-backend-v4.0.0.zip` | Smaller command-line host kit: public source and tools, matched Moader/kaiHEN binaries, pinned official kaiHEN archive, complete regular bundle, and `prebuilt/standalone-bootstrap/{bootstrap.bin,proof.json}`; no Setup app or desktop runtimes |
| `Moader-Setup-v4.0.0.zip` | Self-contained guided desktop kit: the backend files plus Moader Setup launchers and pinned Node/uv/Electron runtimes for supported hosts |
| `Moader-Setup-v4.0.0-{macos-arm64,macos-x64,linux-arm64,linux-x64,windows-x64}.zip` | Five prebuilt desktop apps, each with the complete matched backend and only the Node/uv/Electron runtime its host needs; macOS apps are ad hoc signed |
| `Moader.nro`, `moader.nso` | Standalone copies of the matched app and resident |
| `SHA256SUMS.txt` | Checksums of the packaged release assets |

Expand Down Expand Up @@ -52,7 +52,7 @@ For a matching release checkout, audit and commit the source before packaging:
python3 tools/package-release.py
```

The packager reads the source from `HEAD`, verifies the component proof and checks the exported public tree. It writes the app, backend and Setup ZIPs, the standalone programs, `release-manifest.json` and `SHA256SUMS.txt` under `dist/releases/`. Use an empty output directory. Review the final bytes before release and record the source commit with the downloads. When refreshing assets on an existing tag, retain the tag and disclose that the ZIP source commit differs from GitHub's automatic source archives.
The base packager reads the source from `HEAD`, verifies the component proof and checks the exported public tree. It writes the app and backend ZIPs, binaries, and an intermediate universal Setup ZIP. `tools/package-setup-platform.py` turns that intermediate into five prebuilt, self-contained OS apps, ad hoc signs the macOS bundles, and writes the final manifest and checksums. The universal intermediate is not a public release asset. Use an empty output directory. Review the final bytes before release and record the source commit with the downloads. When refreshing assets on an existing tag, retain the tag and disclose that the ZIP source commit differs from GitHub's automatic source archives.

## Native changes

Expand All @@ -71,7 +71,7 @@ When changing runtime log layout, keep `include/moader/runtime_log_wire.h`, the

## Verify the exported artifacts

Moader Setup uses a local controller, a dedicated Electron desktop window, graphical launchers, pinned Node 24 executables for macOS/Linux arm64/x86_64, and uv for kit-scoped Python. `tools/package-release.py` verifies the official Node, uv and Electron runtime archives and includes their license notices. It lists the desktop app in the Setup ZIP's `START_HERE.txt`. Keep `setup/desktop-app/`, `setup/host-policy.cjs`, `setup/host-tools.cjs`, `setup/launch.sh`, `setup/windows-launch.ps1`, `setup/wsl-entry.sh`, the `Moader Setup` launchers, `setup/licenses/` and `docs/SETUP_GUI.md` in public source. Do not commit `host-runtimes/` binaries to Git; the packager inserts them into the separate Setup ZIP. The command-line backend ZIP omits the Setup app and its runtimes. A public macOS release still needs project signing and notarization. Test the extracted Setup ZIP by opening its app from a moved folder, including a path with spaces or non-ASCII characters, and by inspecting its support export. Preserve the CLI fallback and the existing native proof gates.
Moader Setup uses a local controller, a dedicated Electron desktop window, pinned Node 24 executables for macOS/Linux arm64/x86_64, and uv for kit-scoped Python. `tools/package-release.py` verifies the official Node, uv and Electron runtime archives and includes their license notices. `tools/package-setup-platform.py` assembles each native executable with the matched backend inside the app's resources. Keep `setup/desktop-app/`, `setup/host-policy.cjs`, `setup/host-tools.cjs`, `setup/launch.sh`, `setup/windows-launch.ps1`, `setup/wsl-entry.sh`, `setup/licenses/` and `docs/SETUP_GUI.md` in public source. Do not commit `host-runtimes/` binaries to Git; the packager adds them to the OS downloads. The command-line backend ZIP omits the Setup app and its runtimes. The dedicated `.github/workflows/package-setup.yml` workflow stages only checksum-qualified native inputs from the existing backend release asset, packages all five apps on a macOS runner and exports the final assets for review. Public macOS distribution still needs project signing and notarization. Test an extracted platform Setup ZIP by opening its app from a moved folder, including a path with spaces or non-ASCII characters, and by inspecting its support export. Preserve the CLI fallback and the existing native proof gates.

Run `node --test setup/test-controller.cjs` against matched kit inputs for host-only token, restart, uncertainty, SD-export, hash and redaction checks. Use `tools/test-ns2jb-host.py --online --node /absolute/path/to/node24` for the existing source-qualified SmileBASIC path. Keep host-only and actual-console results in separate validation headings.

Expand Down
Loading