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 (!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;

View File

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