Skip to content

fix(plugin): use per-platform winCodeSign archives to fix AppX build on Windows#48

Merged
kdroidFilter merged 1 commit into
mainfrom
fix/appx-wincodesign-download-failure
Feb 22, 2026
Merged

fix(plugin): use per-platform winCodeSign archives to fix AppX build on Windows#48
kdroidFilter merged 1 commit into
mainfrom
fix/appx-wincodesign-download-failure

Conversation

@kdroidFilter
Copy link
Copy Markdown
Collaborator

@kdroidFilter kdroidFilter commented Feb 22, 2026

Summary

Fixes #46 — AppX builds fail on Windows with exit status 2 from app-builder when extracting winCodeSign-2.6.0.7z.

Root cause: The legacy combo winCodeSign-2.6.0.7z archive contains macOS symlinks (darwin/10.12/lib/libcrypto.dylib, libssl.dylib). On Windows, creating symlinks requires admin rights or Developer Mode enabled. Without either, the embedded 7-Zip extraction in app-builder fails with exit status 2 (electron-builder#8149).

Fix: Set toolsets.winCodeSign: "1.0.0" in the generated electron-builder.yml config. This makes electron-builder download per-platform code-signing archives (introduced in electron-builder#9430) that do not contain cross-platform symlinks.

Changes

  • ElectronBuilderConfigGenerator.kt: emit toolsets.winCodeSign: "1.0.0" on Windows builds

Test plan

  • Build an AppX package on Windows without admin rights or Developer Mode
  • Verify winCodeSign-2.6.0.7z is no longer downloaded (replaced by per-platform archive)
  • Verify other Windows formats (NSIS, MSI, Portable) still work
  • Verify macOS and Linux builds are unaffected (no toolsets key emitted)

@kdroidFilter kdroidFilter marked this pull request as draft February 22, 2026 12:29
@kdroidFilter kdroidFilter changed the title fix(plugin): use local Windows SDK for AppX builds fix(plugin): use short temp cache paths on Windows to fix AppX build failure Feb 22, 2026
…on Windows

The legacy combo winCodeSign-2.6.0.7z archive contains macOS symlinks
that cannot be created on Windows without admin rights or Developer Mode,
causing app-builder to fail with "exit status 2" during extraction
(electron-builder#8149).

Set toolsets.winCodeSign to "1.0.0" in the generated electron-builder
config to download per-platform archives that do not contain cross-platform
symlinks.
@kdroidFilter kdroidFilter force-pushed the fix/appx-wincodesign-download-failure branch from 8749fda to e9af3a5 Compare February 22, 2026 14:18
@kdroidFilter kdroidFilter changed the title fix(plugin): use short temp cache paths on Windows to fix AppX build failure fix(plugin): use per-platform winCodeSign archives to fix AppX build on Windows Feb 22, 2026
@kdroidFilter kdroidFilter marked this pull request as ready for review February 22, 2026 14:18
@kdroidFilter kdroidFilter merged commit ede31d6 into main Feb 22, 2026
11 checks passed
@kdroidFilter kdroidFilter deleted the fix/appx-wincodesign-download-failure branch March 2, 2026 21:34
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.

Creating an AppX fails

1 participant