Add workaround to skip passing icon to electron packager if output platform is win32

This commit is contained in:
Jia Hao 2016-01-28 22:39:54 +08:00
parent e0bee65cfc
commit 947a8c2a8b
1 changed files with 8 additions and 1 deletions

View File

@ -64,7 +64,14 @@ function buildApp(options, callback) {
},
(tempDir, options, callback) => {
options.dir = tempDir;
packager(options, (error, appPathArray) => {
const packageOptions = JSON.parse(JSON.stringify(options));
if (options.platform === 'win32') {
// todo check if wine exists before doing this
packageOptions.icon = null;
}
packager(packageOptions, (error, appPathArray) => {
callback(error, options, appPathArray);
});
},