Skip to content

Commit 16326c4

Browse files
7418claude
andcommitted
fix: Linux build — remove hardcoded arch from electron-builder config
electron-builder.yml listed `arch: [x64, arm64]` on every Linux target, causing both architectures to build on each CI job regardless of the --x64/--arm64 CLI flag. This made: - x64 job produce arm64 artifacts (failing verification) - arm64 job attempt x64 native module rebuild (zlib-sync -m64 fails on arm) Fix: remove arch arrays from linux.target entries, let CLI flags control which architecture to build per job. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 270db3a commit 16326c4

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

electron-builder.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,10 @@ linux:
8383
Comment: A native desktop GUI for Claude Code
8484
Categories: Development;IDE;
8585
StartupWMClass: codepilot
86+
# arch is NOT specified here — controlled by CI via --x64 / --arm64 CLI flags.
87+
# Listing both arches here causes electron-builder to build both on every job,
88+
# which fails when cross-compiling native modules (zlib-sync -m64 on arm64).
8689
target:
87-
- target: AppImage
88-
arch: [x64, arm64]
89-
- target: deb
90-
arch: [x64, arm64]
91-
- target: rpm
92-
arch: [x64, arm64]
90+
- AppImage
91+
- deb
92+
- rpm

0 commit comments

Comments
 (0)