Repository navigation
fix(release): restore Linux RPM and Windows arm64 builds - #232
Merged
Merged
Conversation
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]>
2 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.xmlHucode's overlay RPM spec still copied
%{name}.desktop, sorpmbuild %installfailed on x64, arm64, and armhf:The DEB built, but the Hucode overlay did not set
linuxDesktopName, so it inherited upstream'scom.visualstudio.CodeOSS. That DEB would have installedcom.visualstudio.CodeOSS.desktop, which collides with a Code - OSS install. The app would also have used that name as its desktop identity throughapp.setDesktopName().Changes:
linuxDesktopNametodev.hucode.app. This matches the existing macOS bundle ID, Windows AppUserModelID, embedder ID, and AppStream component ID.@@DESKTOP_NAME@@paths in both%installand%files.StartupWMClassto@@DESKTOP_NAME@@, as upstream does. Point the AppStreamlaunchableatdev.hucode.app.desktop.hucode:validatenow asserts the generatedlinuxDesktopName, theStartupWMClassplaceholder, and the AppStream launchable.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.desktopinstead ofhucode.desktop. Launchers pinned to the old entry need to be pinned again after upgrading.Windows arm64 dependency install
The
windows-11-armrunner label used to run thewindows-11-arm64image, which has Visual Studio 2022. v0.0.86 gotwindows-11-vs2026-arm64instead, and that image has Visual Studio 2026 underMicrosoft Visual Studio\18\Enterprise.build/npm/preinstall.tsonly looks for2022and2019directories, sonpm cifailed with "Invalid C/C++ Compiler Toolchain" on every retry. Upstreammainhas the same check.preinstall.tsnow accepts Visual Studio 2026 through its18directory or avs2026_installoverride. 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 inupstream-provenance.jsonwithlastSyncedBaseline: 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.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-5using Claude Code.🤖 Generated with Claude Code