Skip to content

Commit 9b2c03e

Browse files
fix(desktop): build AppImage with the static runtime toolset (fixes libfuse2 launch failure) (#7765)
Co-authored-by: Julius Marminge <[email protected]>
1 parent 8c61e25 commit 9b2c03e

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

‎scripts/build-desktop-artifact.test.ts‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -684,6 +684,9 @@ it.layer(NodeServices.layer)("build-desktop-artifact", (it) => {
684684
assert.deepStrictEqual((linux.linux as Record<string, unknown>).protocols, [
685685
{ name: "T3 Code", schemes: ["t3code", "t3code-dev"] },
686686
]);
687+
assert.deepStrictEqual(linux.toolsets, { appimage: "1.0.3" });
688+
assert.notProperty(mac, "toolsets");
689+
assert.notProperty(win, "toolsets");
687690
assert.deepStrictEqual(mac.files, [...DESKTOP_FILE_EXCLUSIONS, ...MAC_FILE_EXCLUSIONS]);
688691
assert.deepStrictEqual(linux.files, [...DESKTOP_FILE_EXCLUSIONS, ...LINUX_FILE_EXCLUSIONS]);
689692
assert.deepStrictEqual(win.files, DESKTOP_FILE_EXCLUSIONS);

‎scripts/build-desktop-artifact.ts‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2762,6 +2762,10 @@ export const createBuildConfig = Effect.fn("createBuildConfig")(function* (
27622762
}
27632763

27642764
if (platform === "linux") {
2765+
// electron-builder 26 defaults to its legacy AppImage runtime, which
2766+
// dynamically loads the system libfuse2 library. Pin the static runtime so
2767+
// the AppImage also launches on distributions that only provide FUSE 3.
2768+
buildConfig.toolsets = { appimage: "1.0.3" };
27652769
buildConfig.linux = {
27662770
// The .deb is built from the same unpacked app after the AppImage.
27672771
// electron-builder lists both in latest-linux.yml and writes

0 commit comments

Comments
 (0)