2
2
mirror of https://github.com/Llewellynvdm/nativefier.git synced 2024-11-15 09:24:03 +00:00

Fix bug in setting icon on windows for windows

This commit is contained in:
Jia Hao 2016-03-10 12:46:09 +08:00
parent c3374618d9
commit b7aada7967
2 changed files with 2 additions and 3 deletions

View File

@ -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;

View File

@ -5,7 +5,7 @@ function isOSX() {
} }
function isWindows() { function isWindows() {
return os.platform() === 'windows'; return os.platform() === 'win32';
} }
export default { export default {