Made npm run dist on Linux build an app image.

As discussed in , 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.
This commit is contained in:
Martin Pärtel 2025-03-14 22:07:16 +02:00
parent ae8c1867d2
commit 885115a731

View file

@ -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}`);
}