Skip to content

fix(release): restore Linux RPM and Windows arm64 builds - #232

Merged
jimeh merged 1 commit into
series-1.139.1from
t3code/fix-release-build-failures
Sep 26, 2026
Merged

jimeh merged 1 commit into
series-1.139.1from
t3code/fix-release-build-failures

Conversation

@jimeh

@jimeh jimeh commented Sep 26, 2026 •

Copy link
Copy Markdown
Owner

The v0.0.86 release build failed in two unrelated places, and v0.0.87 fails the same way. This PR fixes both. It also stops the Linux DEB from shipping with upstream's desktop identity.

Linux RPM packaging

VS Code 1.139.0 (microsoft/vscode#332935, the Electron 43 update) added product.linuxDesktopName. Upstream now names the installed Linux files after it:

  • <linuxDesktopName>.desktop
  • <linuxDesktopName>.UrlHandler.desktop
  • <linuxDesktopName>.appdata.xml

Hucode's overlay RPM spec still copied %{name}.desktop, so rpmbuild %install failed on x64, arm64, and armhf:

cp: cannot stat 'usr/share/applications/hucode.desktop': No such file or directory

The DEB built, but the Hucode overlay did not set linuxDesktopName, so it inherited upstream's com.visualstudio.CodeOSS. That DEB would have installed com.visualstudio.CodeOSS.desktop, which collides with a Code - OSS install. The app would also have used that name as its desktop identity through app.setDesktopName().

Changes:

  • Set linuxDesktopName to dev.hucode.app. This matches the existing macOS bundle ID, Windows AppUserModelID, embedder ID, and AppStream component ID.
  • Move the overlay RPM spec to @@DESKTOP_NAME@@ paths in both %install and %files.
  • Set the desktop entry's StartupWMClass to @@DESKTOP_NAME@@, as upstream does. Point the AppStream launchable at dev.hucode.app.desktop.
  • hucode:validate now asserts the generated linuxDesktopName, the StartupWMClass placeholder, and the AppStream launchable.
  • A new hucodeLinuxPackaging test checks that the desktop and appdata paths in the overlay spec match upstream's spec. Upstream keeps its spec in sync with the gulp packaging task, so a future rename fails in CI instead of in a release.

User-visible effect: DEB and RPM installs now provide dev.hucode.app.desktop instead of hucode.desktop. Launchers pinned to the old entry need to be pinned again after upgrading.

Windows arm64 dependency install

The windows-11-arm runner label used to run the windows-11-arm64 image, which has Visual Studio 2022. v0.0.86 got windows-11-vs2026-arm64 instead, and that image has Visual Studio 2026 under Microsoft Visual Studio\18\Enterprise. build/npm/preinstall.ts only looks for 2022 and 2019 directories, so npm ci failed with "Invalid C/C++ Compiler Toolchain" on every retry. Upstream main has the same check.

preinstall.ts now accepts Visual Studio 2026 through its 18 directory or a vs2026_install override. npm's bundled node-gyp already detects Visual Studio 2026 for the native module builds, and the image includes the ARM64 Spectre runtimes. The patch is recorded in upstream-provenance.json with lastSyncedBaseline: 1.139.1. The drift check then flags the upgrade where upstream changes this file, so we can drop the patch once upstream supports Visual Studio 2026.

Testing

  • npm run test-build-scripts: 693 tests pass. The new spec test fails against the previous overlay spec at the desktop-file assertion.
  • npm run hucode:prepare and npm run hucode:validate pass, and the merged product now resolves linuxDesktopName to dev.hucode.app.
  • cd build && npm run typecheck and npm run hucode:check-upstream-provenance pass.
  • The edited preinstall.ts ran during a Linux npm install. Nothing here exercises its Windows branch locally. A release workflow run on this branch will verify the win32-arm64 install and the Linux RPM packaging.

Written on behalf of jimeh by claude-opus-5-5 using Claude Code.

🤖 Generated with Claude Code

Review in cubic

VS Code 1.139 names Linux desktop files after the new
product.linuxDesktopName field. The Hucode RPM spec overlay still
copied hucode.desktop, so rpmbuild failed, and the unset field let the
DEB inherit upstream's com.visualstudio.CodeOSS identity. Set
linuxDesktopName to dev.hucode.app, move the overlay spec, desktop
entry, and appdata to the new names, and check the overlay spec
against upstream's file list.

GitHub's windows-11-arm label now provides Visual Studio 2026, which
installs under "Microsoft Visual Studio/18". Teach preinstall to accept
it and track the patch in upstream provenance.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@jimeh
jimeh merged commit b22ef81 into series-1.139.1 Sep 26, 2026
36 of 37 checks passed
@jimeh
jimeh deleted the t3code/fix-release-build-failures branch September 26, 2026 22:03
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.

1 participant