Support to build on linux platform

This commit is contained in:
Nguyen Khanh Binh 2021-10-20 13:42:35 +07:00
parent 3529bb33e5
commit 45aa2a39c9

View file

@ -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}`);
}