Skip to content

feat: support MSIX builds - #222

Merged
erickzhao merged 2 commits into
mainfrom
msix
Apr 24, 2026
Merged

erickzhao merged 2 commits into
mainfrom
msix

Conversation

@erickzhao

@erickzhao erickzhao commented Apr 1, 2026 •

Copy link
Copy Markdown
Member

Adds support for MSIX builds to the autoUpdater service.

  • The service now supports a new /:owner/:repo/:platform/:format/:version path format where format is one of squirrel or msix. This falls through to be a no-op on macOS.
  • ia32 (32-bit) MSIX is explicitly unsupported.
  • MSIX follows the Squirrel.Mac JSON updater feed format.

For example, with https://github.com/erickzhao/msix-test as a sample repo:

# tested via `http://localhost:3000`
curl https://update.electronjs.org/erickzhao/msix-test/win32-x64/msix/1.0.0

Usage is documented in the README.md changes:

### Windows Assets (MSIX)
- Asset must be a `.msix` file.
- Asset name must include the `-win32` platform identifier.
- Asset name may specify the architecture (if not specified, will default to `-x64`):
- `-x64` for 64-bit Windows.
- `-arm64` for ARM-based Windows.
- `.msix` files without specific architecture tags or the `-win32` platform identifier are assumed to be `-x64` by default.
**Example asset names:**
- `app-win32-x64.msix`
- `app-1.0.0-win32-x64.msix`
- `app-win32-arm64.msix`
- `app-win32.msix` (no architecture specified - treated as `-x64`)
- `app-installer.msix` (generic `.msix` file with no architecture or platform identifier specified - treated as `-x64`)
To use MSIX updates, include the `msix` format segment in the update feed URL:
```javascript
const server = 'https://update.electronjs.org'
const feed = `${server}/OWNER/REPO/${process.platform}-${process.arch}/msix/${app.getVersion()}`
autoUpdater.setFeedURL(feed)
```
The MSIX updater returns the same JSON format as macOS (`{ name, notes, url }`) and does not use the `RELEASES` endpoint.

@erickzhao
erickzhao marked this pull request as ready for review April 20, 2026 20:15
@erickzhao
erickzhao merged commit 8fa33c0 into main Apr 24, 2026
5 checks passed
@erickzhao
erickzhao deleted the msix branch April 24, 2026 17:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants