Skip to content

Commit a3330e8

Browse files
rathbomaclaude
andcommitted
Add minimal Electron runtime dependencies for ARM64
Even with ELECTRON_RUN_AS_NODE=1, Electron needs basic system libraries like libglib, libnss, etc. to run as a Node.js process. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
1 parent 54ad150 commit a3330e8

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/electron-arm64.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,10 @@ jobs:
2323
# Install dependencies in the container
2424
install: |
2525
apt-get update -q -y
26-
apt-get install -q -y ca-certificates curl gnupg build-essential python3 git
27-
# Try to install libasound2t64, fallback to libasound2
28-
apt-get install -q -y libasound2t64 || apt-get install -q -y libasound2
26+
apt-get install -q -y ca-certificates curl gnupg build-essential python3 git \
27+
libglib2.0-0 libnss3 libatk1.0-0 libatk-bridge2.0-0 libcups2 libdrm2 libxkbcommon0 libxcomposite1 libxdamage1 libxfixes3 libxrandr2 libgbm1 libasound2
28+
# Try to install libasound2t64 if available
29+
apt-get install -q -y libasound2t64 2>/dev/null || true
2930
# Install Node.js 20 (for Electron build)
3031
mkdir -p /etc/apt/keyrings
3132
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg

0 commit comments

Comments
 (0)