mirror of
https://github.com/Llewellynvdm/nativefier.git
synced 2024-11-15 17:27:08 +00:00
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 (options.platform === 'win32') {
|
||||||
if (!iconIsIco(options.icon)) {
|
if (!iconIsIco(options.icon)) {
|
||||||
console.warn('Icon should be an .ico to package for Windows');
|
|
||||||
returnCallback();
|
returnCallback();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -41,7 +40,7 @@ function iconBuild(options, callback) {
|
|||||||
returnCallback();
|
returnCallback();
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.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();
|
returnCallback();
|
||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
|
@ -5,7 +5,7 @@ function isOSX() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function isWindows() {
|
function isWindows() {
|
||||||
return os.platform() === 'windows';
|
return os.platform() === 'win32';
|
||||||
}
|
}
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
Loading…
Reference in New Issue
Block a user