Skip to content

Commit

Permalink
Added jimp dependency and first windows implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
moimart committed May 24, 2018
1 parent dc6a94d commit 453533d
Show file tree
Hide file tree
Showing 4 changed files with 573 additions and 22 deletions.
11 changes: 7 additions & 4 deletions iconfinder.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const Icns = require('apple-icns');
const resourceFork = require('resourceforkjs').resourceFork;
const fs = require('fs');
const plist = require('plist');
const winIco = require('./windows');
const winIco = require('./windows').default;

const RESOURCEFORK = 'rf';
const APPFOLDER = 'apf';
Expand Down Expand Up @@ -188,9 +188,12 @@ class AbstractFile {
break;
case GNOME:
case WINDOWS:
winIco(this.folder)
.then((png) => resolve(png))
.catch((err) => reject(err));
return new Promise((resolve,reject) => {
winIco(this.folder)
.then((png) => resolve(png))
.catch((err) => reject(err));
console.log('going to do this' + this.folder);
});
break;
default:
break;
Expand Down
Loading

0 comments on commit 453533d

Please sign in to comment.