mirror of
https://github.com/scratchfoundation/scratch-desktop.git
synced 2025-06-15 06:20:56 -04:00
Support to build on linux platform
This commit is contained in:
parent
3529bb33e5
commit
45aa2a39c9
1 changed files with 12 additions and 0 deletions
|
@ -116,6 +116,14 @@ const calculateTargets = function (wrapperConfig) {
|
|||
windowsDirectDownload: {
|
||||
name: 'nsis:ia32',
|
||||
platform: 'win32'
|
||||
},
|
||||
linuxAppImage: {
|
||||
name: 'AppImage',
|
||||
platform: 'linux'
|
||||
},
|
||||
linuxAppImageDeb: {
|
||||
name: 'deb',
|
||||
platform: 'linux'
|
||||
}
|
||||
};
|
||||
const targets = [];
|
||||
|
@ -144,6 +152,10 @@ const calculateTargets = function (wrapperConfig) {
|
|||
}
|
||||
targets.push(availableTargets.macDirectDownload);
|
||||
break;
|
||||
case 'linux':
|
||||
targets.push(availableTargets.linuxAppImage);
|
||||
targets.push(availableTargets.linuxAppImageDeb); // for generate deb file. Need change if not use debian/ubuntu
|
||||
break;
|
||||
default:
|
||||
throw new Error(`Could not determine targets for platform: ${process.platform}`);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue