Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(desktop): build AppImage with the static runtime toolset (fixes libfuse2 launch failure) #7765

MergedBombatomica64(GitHub profile, opens in a new tab)merged 2 commits intomain fromrefs/pull/7765/headmerged by juliusmarminge View on GitHub

Showing 2 changed files with 7 additions and 0 deletions.

x
0 of 2 viewed, 2 left
3 additions and 0 deletionsscripts/build-desktop-artifact.test.tsModified
View file
@@ -684,6 +684,9 @@
assert.deepStrictEqual((linux.linux as Record<string, unknown>).protocols, [
{ name: "T3 Code", schemes: ["t3code", "t3code-dev"] },
]);
+ assert.deepStrictEqual(linux.toolsets, { appimage: "1.0.3" });
+ assert.notProperty(mac, "toolsets");
+ assert.notProperty(win, "toolsets");
assert.deepStrictEqual(mac.files, [...DESKTOP_FILE_EXCLUSIONS, ...MAC_FILE_EXCLUSIONS]);
assert.deepStrictEqual(linux.files, [...DESKTOP_FILE_EXCLUSIONS, ...LINUX_FILE_EXCLUSIONS]);
assert.deepStrictEqual(win.files, DESKTOP_FILE_EXCLUSIONS);
4 additions and 0 deletionsscripts/build-desktop-artifact.tsModified
View file
@@ -2762,6 +2762,10 @@
if (platform === "linux") {
+ // electron-builder 26 defaults to its legacy AppImage runtime, which
+ // dynamically loads the system libfuse2 library. Pin the static runtime so
+ // the AppImage also launches on distributions that only provide FUSE 3.
+ buildConfig.toolsets = { appimage: "1.0.3" };
buildConfig.linux = {
// The .deb is built from the same unpacked app after the AppImage.
// electron-builder lists both in latest-linux.yml and writes