Commit 450981a
fix(snap): migrate snap to core24 to fix launch on modern Linux
The Linux snap failed to launch on modern systems: native modules built on the
ubuntu-24.04 CI runner (glibc 2.39) couldn't load on the core20 base (glibc 2.31)
-> "libm.so.6: version GLIBC_2.38 not found" loading better_sqlite3.node. The old
gnome-3-28-1804 platform also lacked a working GPU driver for current hardware.
Migrate the snap to base core24 via electron-builder's `snapcraft.core24`:
- base core24 -> glibc 2.39, matching the build toolchain (fixes the fatal load)
- GNOME extension (default) -> gnome-46-2404 + mesa-2404/gpu-2404 (modern GPU)
- XDG_SESSION_TYPE=x11 -> forces XWayland, restoring the old allowNativeWayland:false
behavior (Electron 40 removed ELECTRON_OZONE_PLATFORM_HINT and snapcraft core24
rejects '=' in an app command, so this env var is the supported mechanism)
- plain browser-support plug -> auto-connects on install (snapd only blocks
auto-connect for allow-sandbox:true); electron-builder adds --no-sandbox itself
- network / home / password-manager-service plugs preserved
CI: core24 builds via the snapcraft CLI in an LXD container, so the x64 Linux job
installs snapcraft + lxd, grants the LXD socket, and allows iptables FORWARD (the
runner's Docker sets it to DROP, blocking the build container's network). Gated to
runs where the snap target is actually built.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 89c43a8 commit 450981a
2 files changed
Lines changed: 41 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
122 | 147 | | |
123 | 148 | | |
124 | 149 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
144 | 155 | | |
145 | 156 | | |
146 | 157 | | |
| |||
0 commit comments