mirror of
https://github.com/Llewellynvdm/nativefier.git
synced 2024-12-23 02:28:55 +00:00
Do not try to make ico singular
This commit is contained in:
parent
3a6ae0d660
commit
cedbb443af
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user