From 9d1c81b10d54184481da9560e72936c73d3965c7 Mon Sep 17 00:00:00 2001 From: Adam Lynch Date: Sun, 14 Aug 2016 18:07:39 +0100 Subject: [PATCH] 2.2.7 --- README.md | 1 + lib/index.js | 2 +- package.json | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 36175ff83..39b8b1ae1 100644 --- a/README.md +++ b/README.md @@ -257,6 +257,7 @@ To get around it, run `ulimit -n 1024` (or add it to your `~/.bash_profile`). Fo See [CONTRIBUTING.md](CONTRIBUTING.md). ## Release History +- 2016-08-14 `2.2.7` fix for macIcns option when using NW.js 0.12.3 - 2016-07-31 `2.2.6` fix for OS X caching - 2016-07-03 `2.2.5` fix for update-notifier usage in bin - 2016-07-03 `2.2.4` fix for syntax error in CLI diff --git a/lib/index.js b/lib/index.js index f29d33264..8ddd74479 100644 --- a/lib/index.js +++ b/lib/index.js @@ -596,7 +596,7 @@ NwBuilder.prototype.handleMacApp = function () { // Let's first handle the mac icon if(self.options.macIcns) { - if(self._version.isLegacy) { + if(semver.satisfies(self._version.version, '<=0.12.3')) { allDone.push(Utils.copyFile(self.options.macIcns, path.resolve(self.getResourcesDirectoryPath(platform), 'nw.icns'), self)); } else { diff --git a/package.json b/package.json index 0298b3545..08aec938b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "nw-builder", - "version": "2.2.6", + "version": "2.2.7", "description": "nw-builder", "main": "index.js", "scripts": {