1
0
mirror of https://github.com/jiahaog/Nativefier synced 2024-06-26 07:38:59 +02:00

Do not try to make ico singular

This commit is contained in:
Jia Hao 2016-03-11 00:03:28 +08:00
parent 3a6ae0d660
commit cedbb443af

View File

@ -32,19 +32,9 @@ 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'); console.warn('Icon should be an .ico to package for Windows');
returnCallback();
return;
} }
singleIco(options.icon) returnCallback();
.then(outPath => {
options.icon = outPath;
returnCallback();
})
.catch(error => {
console.warn('Skipping process to make .ico icon contain only a single image:', error);
returnCallback();
});
return; return;
} }