Fix bug in setting icon on windows for windows
This commit is contained in:
parent
c3374618d9
commit
b7aada7967
|
@ -30,7 +30,6 @@ function iconBuild(options, callback) {
|
|||
|
||||
if (options.platform === 'win32') {
|
||||
if (!iconIsIco(options.icon)) {
|
||||
console.warn('Icon should be an .ico to package for Windows');
|
||||
returnCallback();
|
||||
return;
|
||||
}
|
||||
|
@ -41,7 +40,7 @@ function iconBuild(options, callback) {
|
|||
returnCallback();
|
||||
})
|
||||
.catch(error => {
|
||||
console.warn('Skipping icon conversion from `.png` to `.icns`: ', error);
|
||||
console.warn('Skipping process to make .ico icon contain only a single image: ', error);
|
||||
returnCallback();
|
||||
});
|
||||
return;
|
||||
|
|
|
@ -5,7 +5,7 @@ function isOSX() {
|
|||
}
|
||||
|
||||
function isWindows() {
|
||||
return os.platform() === 'windows';
|
||||
return os.platform() === 'win32';
|
||||
}
|
||||
|
||||
export default {
|
||||
|
|
Loading…
Reference in New Issue