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