Repository navigation
Ship one Windows installer that selects x64 or ARM64 automatically - #18621
danielhanchen merged 2 commits into
Conversation
|
@codex review |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 85e936fdd6
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
@codex review |
|
Codex Review: Didn't find any major issues. Another round soon, please! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
…9243) ## Problem The `desktop windows` clean-machine job fails on every PR that runs it since release `v0.1.923-beta`. For example #19238: ``` ##[error]expected exactly one AMD64 installer in the release, found 2 (assets: Unsloth-Desktop-Windows-ARM64.exe, Unsloth-Desktop-Windows-x64.exe, Unsloth-Desktop-Windows.exe) ``` The next step then fails with "the app wrote no tauri.log", because nothing was installed. ## Cause #18621 (one Windows installer that selects x64 or ARM64) is correct. Releases now ship: - `Unsloth-Desktop-Windows-x64.exe` - `Unsloth-Desktop-Windows-ARM64.exe` - `Unsloth-Desktop-Windows.exe`, which runs the right one for the machine. The release notes send every Windows user to this one. The clean-machine job treated every asset that is not ARM64 as the x64 installer, so on AMD64 it found two and stopped. Stopping was the job's intended reaction to a packaging change. It just was not updated for this one. ## Fix The `Silent install` step in `desktop-app-clean-machine-ci.yml` now recognises the release by name: - **x64 + ARM64 + universal:** install `Unsloth-Desktop-Windows.exe` on both architectures, which is the path a user takes. It forwards `/S` to the native installer and returns its exit code. - **Older releases, ARM64 + unsuffixed x64:** the previous per-architecture pick. - **Any other set:** still fails, with the asset list. After the install, a new check reads the installed app's PE machine type (`0x8664` / `0xAA64`) and compares it with the runner's architecture. If the universal installer ever picks the wrong payload, this job now fails. ## Verification - Ran both PowerShell blocks under `pwsh` against fake `dl/` folders: - the three-installer release picks the universal installer on AMD64 and ARM64; - the older two-installer release picks the unsuffixed installer on AMD64 and `-ARM64` on ARM64; - other sets fail. - Against fake PE headers, the matching build passes and the wrong one fails on each architecture. - The 9 test files that read this workflow pass (609 passed), and the YAML parses. - The real Windows run is this PR's own `desktop windows` job.
Windows download
Both AMD64 and ARM64 users can download
Unsloth-Desktop-Windows.exe. The NSIS launcher checks the native Windows architecture, extracts the corresponding bundled installer, waits for setup, and returns its exit code. Architecture selection requires no network request.The release workflow packages the two signed Tauri builds, signs the launcher and its NSIS System plugin, checks the embedded signatures, and runs the existing Defender scan before publishing. In-app updates retain their architecture-specific downloads. The ARM64 asset keeps its existing URL, and the x64 updater uses a new
-Windows-x64.exeasset.Windows installation test
Two fresh Windows runners ran the same 43.8 MB installer through the setup wizard. Both installations exited successfully. The installed app had a valid Authenticode signature on each machine. Its PE machine type was AMD64 (0x8664) on x64 and ARM64 (0xAA64) on ARM64.
Additional verification
Release build and update test
The build-only release rehearsal built the Windows artifacts from source at
85e936f. Azure signing produced a 43,712,480-byte universal installer signed by Unsloth AI Inc. Both native updater signatures in the generatedlatest.jsonverified against the public key shipped in the client. The rehearsal omitted the checks requiring an already-public release and saved the manifest as an Actions artifact. It did not publish or promote a release.On fresh AMD64 and ARM64 runners, we installed the previous universal build, selected each host's native installer from the new manifest, and ran it in updater mode. Both upgraded from
0.1.920-betato0.1.9201-beta. Running the newly built universal installer produced the same signed native executable on each host, verified by hash.