nwjs / grunt-nw-builder

Build NW.js applications for Mac, Windows and Linux using Grunt

Home Page:https://www.npmjs.com/package/grunt-nw-builder

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

node webkit source downloads every time i run task

gowram opened this issue · comments

commented

Hi,
whenever i run task using grunt-node-webki-builder fresh copy of
node-webkit-v0.8.4-win-ia32.zip gets downloaded (which takes longer time to build).

Is it possible to use existing source from local directory instead of downloading fresh copy every time.

regards
Rama

Do you delete the cache folder within your build process? it should only download it once

commented

No, I haven't deleted cache folder, Its automatically delete and download again..

@gowram Could you please post your Grunt configuration please?

commented

//this is my Gruntfile...

module.exports = function(grunt) {
  grunt.initConfig({
    nodewebkit: {
      options: {
        build_dir: './build', // Where the build version of my node-webkit app is saved
       //credits: './public/credits.html',
        win_icns: './octaveApp/logo.png', // Path to the Mac icon file
        mac: false, // We want to build it for mac
        win: true, // We want to build it for win
        linux32: false, // We don't need linux32
        linux64: false, // We don't need linux64
      },
      src: './octaveApp/**/*' // Your node-webkit app
    },
  });
  grunt.loadNpmTasks('grunt-node-webkit-builder');
  grunt.registerTask('default', ['nodewebkit']);
};

apart from there is no win_icns option, this should be ok. Can you do me a favor and try the following:

git clone git@github.com:mllrsohn/grunt-node-webkit-builder.git
cd grunt-node-webkit-builder/example
npm install
grunt

Check if the build was ok and runt it again to see it it downloads the files again

commented

I executed as mentioned ..
yes, even this script also gets downloading fresh copy of node-webkit-v0.8.4-win-ia32.zip file each time while running in grunt in windows xp.

So you are using WindowsXP? I don't really have a XP System lying around for testing. Which node version are you using?

commented

I am using Node v0.10.25 under window XP

@gowram Major changes have been made to this project. Please try updating to the latest version and if this is still an issue please repost to the new parent module https://github.com/mllrsohn/node-webkit-builder/issues. Thanks!