mirror of
https://github.com/Llewellynvdm/nativefier.git
synced 2025-01-11 01:32:04 +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) => {
|
||||
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);
|
||||
});
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user