mirror of
https://github.com/scratchfoundation/scratch-desktop.git
synced 2025-06-27 21:20:28 -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: {
|
windowsDirectDownload: {
|
||||||
name: 'nsis:ia32',
|
name: 'nsis:ia32',
|
||||||
platform: 'win32'
|
platform: 'win32'
|
||||||
|
},
|
||||||
|
linuxAppImage: {
|
||||||
|
name: 'AppImage',
|
||||||
|
platform: 'linux'
|
||||||
|
},
|
||||||
|
linuxAppImageDeb: {
|
||||||
|
name: 'deb',
|
||||||
|
platform: 'linux'
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
const targets = [];
|
const targets = [];
|
||||||
|
@ -144,6 +152,10 @@ const calculateTargets = function (wrapperConfig) {
|
||||||
}
|
}
|
||||||
targets.push(availableTargets.macDirectDownload);
|
targets.push(availableTargets.macDirectDownload);
|
||||||
break;
|
break;
|
||||||
|
case 'linux':
|
||||||
|
targets.push(availableTargets.linuxAppImage);
|
||||||
|
targets.push(availableTargets.linuxAppImageDeb); // for generate deb file. Need change if not use debian/ubuntu
|
||||||
|
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