Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions electron-builder.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,20 @@ nsis:
oneClick: false # allow user to choose per-user or per-machine
artifactName: "Scratch ${version} Setup.${ext}"
linux:
target: AppImage
target:
- AppImage
- deb
- rpm
executableName: scratch-desktop
# Currently Linux builds are supported only for development and have
# not been tested in a production environment.
category: development
category: Education
# Ensure sandbox permissions are set
asarUnpack:
- chrome-sandbox
# DEB package specific configuration
icon: buildResources/ScratchDesktop.png
synopsis: Scratch 3 Desktop
description: Scratch 3.0 as a self-contained desktop application
maintainer: "Scratch Foundation <[email protected]>"
vendor: "Scratch Foundation"
10 changes: 10 additions & 0 deletions scripts/electron-builder-wrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,14 @@ const calculateTargets = function (wrapperConfig) {
linuxAppImage: {
name: 'appimage',
platform: 'linux'
},
linuxDeb: {
name: 'deb',
platform: 'linux'
},
linuxRpm: {
name: 'rpm',
platform: 'linux'
}
};
const targets = [];
Expand Down Expand Up @@ -154,6 +162,8 @@ const calculateTargets = function (wrapperConfig) {
break;
case 'linux':
targets.push(availableTargets.linuxAppImage);
targets.push(availableTargets.linuxDeb);
targets.push(availableTargets.linuxRpm);
break;
default:
throw new Error(`Could not determine targets for platform: ${process.platform}`);
Expand Down