Skip to content

Ship one Windows installer that selects x64 or ARM64 automatically - #18621

Merged
danielhanchen merged 2 commits into
unslothai:mainfrom
wasimysaid:feature/windows-universal-installer
Nov 23, 2026
Merged

danielhanchen merged 2 commits into
unslothai:mainfrom
wasimysaid:feature/windows-universal-installer

Conversation

@wasimysaid

@wasimysaid wasimysaid commented Nov 20, 2026 •

Copy link
Copy Markdown
Collaborator

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.exe asset.

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.

Windows runner Welcome Installation complete
AMD64 X64 setup welcome X64 setup installed
ARM64 ARM64 setup welcome ARM64 setup installed

Additional verification

  • Fork staging run built one installer from the published v0.1.920-beta payloads and ran that same artifact on native AMD64 and ARM64 runners. Each opened the native setup window and installed a signed app with the corresponding PE machine type.
  • Compared direct and wrapped launches with no arguments, passive mode and quoted arguments, and silent installation to a path containing spaces. Verified a nonzero child exit code reached the caller.
  • Staging used an ephemeral signing certificate for the wrapper and its plugin. Production Azure signing and release publication run in the release workflow.
  • Release workflow and branding tests passed locally (140 passed, 30 skipped). The staging download measured approximately 43.8 MB.

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 generated latest.json verified 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-beta to 0.1.9201-beta. Running the newly built universal installer produced the same signed native executable on each host, verified by hash.

@wasimysaid

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-20T12:58:47.815268Z ff9a1e5 Manual request
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment thread .github/workflows/release-desktop.yml Resolved
@wasimysaid

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Another round soon, please!

Reviewed commit: ff9a1e57b6

ℹ️ 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".

@danielhanchen danielhanchen self-assigned this Nov 23, 2026
@danielhanchen
danielhanchen merged commit facc14a into unslothai:main Nov 23, 2026
danielhanchen added a commit that referenced this pull request Nov 24, 2026
…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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants