mirror of
https://github.com/scratchfoundation/scratch-desktop.git
synced 2025-06-15 14:30:56 -04:00
feat: support development linux builds
This commit is contained in:
parent
32f329ed13
commit
650c21e8d5
2 changed files with 16 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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}`);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue