Skip to content

Fix ARM64 build: target AppImage explicitly#2

Merged
Snowy7 merged 1 commit intomainfrom
fix/arm64-build-command
Feb 25, 2026
Merged

Fix ARM64 build: target AppImage explicitly#2
Snowy7 merged 1 commit intomainfrom
fix/arm64-build-command

Conversation

@Snowy7
Copy link
Owner

@Snowy7 Snowy7 commented Feb 25, 2026

Summary

  • Changes --linux --arm64 to --linux AppImage --arm64 in the ARM64 packaging job

The previous command had two issues:

  1. --linux without a specific target caused electron-builder to also build a snap package, which failed because snapcraft isn't installed on the runner
  2. The --arm64 flag was combined with the x64 arch from package.json config, causing it to build both architectures — the x64 build then failed with ERR_ELECTRON_BUILDER_CANNOT_EXECUTE because the arm64 app-builder binary can't build x64 AppImages

Specifying --linux AppImage explicitly restricts the target to only AppImage for arm64.

Test plan

  • Re-run the release workflow and verify the ARM64 job succeeds
  • Confirm only SnCode-*-linux-arm64.AppImage is produced (no snap, no x64)

🤖 Generated with Claude Code

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>
Copilot AI review requested due to automatic review settings February 25, 2026 08:20
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 AppImage as 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.

@Snowy7 Snowy7 merged commit 78005d5 into main Feb 25, 2026
4 checks passed
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.

2 participants