fix(desktop): build AppImage with the static runtime toolset (fixes libfuse2 launch failure) (#7765)
Co-authored-by: Julius Marminge <[email protected]>
This commit is contained in:
1 parent
8c61e254fd
commit
9b2c03ee25
2 files changed
+7
No files matched your search
@@ -684,6 +684,9 @@ it.layer(NodeServices.layer)("build-desktop-artifact", (it) => {
|
||||
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);
|
||||
|
||||
@@ -2762,6 +2762,10 @@ export const createBuildConfig = Effect.fn("createBuildConfig")(function* (
|
||||
}
|
||||
|
||||
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
|
||||
|
||||
Reference in new issue
Block a user