mirror of
https://github.com/Llewellynvdm/nativefier.git
synced 2025-02-04 04:38:24 +00:00
Add workaround to skip passing icon to electron packager if output platform is win32
This commit is contained in:
parent
e0bee65cfc
commit
947a8c2a8b
@ -64,7 +64,14 @@ function buildApp(options, callback) {
|
|||||||
},
|
},
|
||||||
(tempDir, options, callback) => {
|
(tempDir, options, callback) => {
|
||||||
options.dir = tempDir;
|
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);
|
callback(error, options, appPathArray);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user