fix(release): restore Linux RPM and Windows arm64 builds
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
linuxDesktopNametodev.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%installand%files. - Set the desktop entry's
StartupWMClassto@@DESKTOP_NAME@@, as upstream does. Point the AppStreamlaunchableatdev.hucode.app.desktop. hucode:validatenow asserts the generatedlinuxDesktopName, theStartupWMClassplaceholder, and the AppStream launchable.- A new
hucodeLinuxPackagingtest 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:prepareandnpm run hucode:validatepass, and the merged product now resolveslinuxDesktopNametodev.hucode.app.cd build && npm run typecheckandnpm run hucode:check-upstream-provenancepass.- The edited
preinstall.tsran during a Linuxnpm 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