Merged
Conversation
The --linux flag without a specific target caused electron-builder to also attempt building a snap package (failing due to missing snapcraft) and to build both x64 and arm64 architectures. Specifying --linux AppImage restricts the build to only the AppImage target. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
There was a problem hiding this comment.
Pull request overview
This PR fixes the ARM64 Linux packaging job in the GitHub Actions release workflow by explicitly specifying the AppImage target for electron-builder. The previous command was building unintended package formats and architectures, causing build failures.
Changes:
- Modified the ARM64 packaging command to explicitly specify
AppImageas the target, preventing electron-builder from building snap packages and restricting the build to only ARM64 architecture
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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.
Summary
--linux --arm64to--linux AppImage --arm64in the ARM64 packaging jobThe previous command had two issues:
--linuxwithout a specific target caused electron-builder to also build a snap package, which failed becausesnapcraftisn't installed on the runner--arm64flag was combined with thex64arch frompackage.jsonconfig, causing it to build both architectures — the x64 build then failed withERR_ELECTRON_BUILDER_CANNOT_EXECUTEbecause the arm64app-builderbinary can't build x64 AppImagesSpecifying
--linux AppImageexplicitly restricts the target to only AppImage for arm64.Test plan
SnCode-*-linux-arm64.AppImageis produced (no snap, no x64)🤖 Generated with Claude Code