mirror of
https://github.com/scratchfoundation/scratch-desktop.git
synced 2025-07-06 01:20:39 -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:
|
nsis:
|
||||||
oneClick: false # allow user to choose per-user or per-machine
|
oneClick: false # allow user to choose per-user or per-machine
|
||||||
artifactName: "Scratch ${version} Setup.${ext}"
|
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: {
|
windowsDirectDownload: {
|
||||||
name: 'nsis:ia32',
|
name: 'nsis:ia32',
|
||||||
platform: 'win32'
|
platform: 'win32'
|
||||||
|
},
|
||||||
|
linuxAppImage: {
|
||||||
|
name: 'appimage',
|
||||||
|
platform: 'linux'
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
const targets = [];
|
const targets = [];
|
||||||
|
@ -145,6 +149,9 @@ const calculateTargets = function (wrapperConfig) {
|
||||||
}
|
}
|
||||||
targets.push(availableTargets.macDirectDownload);
|
targets.push(availableTargets.macDirectDownload);
|
||||||
break;
|
break;
|
||||||
|
case 'linux':
|
||||||
|
targets.push(availableTargets.linuxAppImage);
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
throw new Error(`Could not determine targets for platform: ${process.platform}`);
|
throw new Error(`Could not determine targets for platform: ${process.platform}`);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue