From 885115a7311b7bc6bcd46210de943d61df748850 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20P=C3=A4rtel?= Date: Fri, 14 Mar 2025 22:07:16 +0200 Subject: [PATCH] Made `npm run dist` on Linux build an app image. As discussed in #117, there is no bandwidth for official Linux releases, but this at least makes getting a working Linux binary from source quite easy. An app image is a self-contained binary. Unlike deb, rpm and flatpak, creating an app image doesn't seem to require installing any external tooling. --- scripts/electron-builder-wrapper.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/scripts/electron-builder-wrapper.js b/scripts/electron-builder-wrapper.js index 303a374d..a693df93 100644 --- a/scripts/electron-builder-wrapper.js +++ b/scripts/electron-builder-wrapper.js @@ -117,6 +117,10 @@ const calculateTargets = function (wrapperConfig) { windowsDirectDownload: { name: 'nsis:ia32', platform: 'win32' + }, + linuxAppImage: { + name: 'appImage', + platform: 'linux' } }; const targets = []; @@ -145,6 +149,9 @@ const calculateTargets = function (wrapperConfig) { } targets.push(availableTargets.macDirectDownload); break; + case 'linux': + targets.push(availableTargets.linuxAppImage); + break; default: throw new Error(`Could not determine targets for platform: ${process.platform}`); }