Skip to content

Commit

Permalink
update package versions. improve grunt build
Browse files Browse the repository at this point in the history
  • Loading branch information
weblancaster committed Jul 23, 2016
1 parent a099fbb commit 3175946
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 21 deletions.
Binary file modified cache/0.12.3/osx64/nwjs.app/Contents/Resources/nw.icns
Binary file not shown.
20 changes: 10 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Grunt-builder",
"version": "0.0.1",
"version": "0.6.5",
"main": "app/index.html",
"description": "Soundnode App is the Soundcloud for desktop",
"scripts": {
Expand All @@ -18,14 +18,14 @@
"babel-preset-stage-0": "^6.0.15",
"eslint": "^1.8.0",
"eslint-plugin-react": "^3.7.1",
"grunt": "^0.4.5",
"grunt-contrib-clean": "^0.6.0",
"grunt-contrib-jshint": "^0.11.3",
"grunt-contrib-watch": "^0.6.1",
"grunt-nw-builder": "^2.0.0",
"grunt-sass": "^1.0.0",
"grunt-shell": "^1.1.2",
"load-grunt-config": "^0.18.0",
"grunt": "^1.0.1",
"grunt-contrib-clean": "^1.0.0",
"grunt-contrib-jshint": "^1.0.0",
"grunt-contrib-watch": "^1.0.0",
"grunt-nw-builder": "^2.0.3",
"grunt-sass": "^1.2.0",
"grunt-shell": "^1.3.0",
"load-grunt-config": "^0.19.2",
"time-grunt": "^1.2.2",
"webpack": "^1.12.2"
},
Expand All @@ -36,6 +36,6 @@
"dependencies": {
"react": "^0.14.2",
"react-dom": "^0.14.2",
"universal-analytics": "^0.3.9"
"universal-analytics": "^0.3.11"
}
}
27 changes: 16 additions & 11 deletions tasks/nwjs.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,27 @@
// test if OS is windows
var isWin = /^win/.test(process.platform);

var config = {
options: {
buildDir: '<%= settings.dist %>', // Where the build version of my node-webkit app is saved
macIcns: '<%= settings.app %>/soundnode.icns',
downloadUrl: 'http://www.soundnodeapp.com/build/',
platforms: ['linux32', 'linux64', 'osx64', 'win32'],
version: '0.12.3'
winIco: '<%= settings.app %>/soundnode.ico',
platforms: [
'linux32',
'linux64',
'osx64',
'win32'
],
version: '0.12.3',
appVersion: null, // default to package.json version
cacheDir: 'cache',
zip: true
},
src: [
'<%= settings.app %>/index.html',
'<%= settings.app %>/package.json',
'<%= settings.app %>/soundnode.icns',
'<%= settings.app %>/soundnode.ico',
'<%= settings.app %>/soundnode.png',
'<%= settings.app %>/views/**/*',
'<%= settings.app %>/public/js/**/*',
Expand All @@ -19,13 +31,6 @@ var config = {
'./node_modules/universal-analytics/**/*',
'./node_modules/mpris-service/**/*'
]
};

// test if OS is windows
var isWin = /^win/.test(process.platform);

if ( isWin ) {
config.options['winIco'] = '<%= settings.app %>/soundnode.ico';
}
};

module.exports = config;

0 comments on commit 3175946

Please sign in to comment.