feat: support development linux builds

This commit is contained in:
Kaloyan Manolov 2025-02-03 16:46:42 +02:00
parent 32f329ed13
commit 650c21e8d5
2 changed files with 16 additions and 0 deletions

View file

@ -45,3 +45,12 @@ appx:
nsis:
oneClick: false # allow user to choose per-user or per-machine
artifactName: "Scratch ${version} Setup.${ext}"
linux:
target: AppImage
executableName: scratch-desktop
# Currently Linux builds are supported only for development and have
# not been tested in a production environment.
category: Development
# Ensure sandbox permissions are set
asarUnpack:
- chrome-sandbox

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