Fatal error: Copied file during build
jwoertink opened this issue · comments
When I try building my app, I get this error:
[14:48PM] ard-checkin-client$ grunt
Running "nodewebkit:osx" (nodewebkit) task
Using v0.11.5
Create cache folder in /Users/jeremy/Sites/alice/ard-checkin-client/cache/0.11.5
Using cache for: osx32
Create cache folder in /Users/jeremy/Sites/alice/ard-checkin-client/cache/0.11.5
Using cache for: osx64
Create release folder in /Users/jeremy/Sites/alice/ard-checkin-client/build/ard-checkin-client/osx32
Create release folder in /Users/jeremy/Sites/alice/ard-checkin-client/build/ard-checkin-client/osx64
chmod 16877 on /Users/jeremy/Sites/alice/ard-checkin-client/build/ard-checkin-client/osx32/ard-checkin-client.app failed after copying, ignoring
chmod 16877 on /Users/jeremy/Sites/alice/ard-checkin-client/build/ard-checkin-client/osx64/ard-checkin-client.app failed after copying, ignoring
Fatal error: Copied file (/Users/jeremy/Sites/alice/ard-checkin-client/build/ard-checkin-client/osx32/ard-checkin-client.app/Contents/Resources/nw.icns) doesn't exist in destination after copying
Here is my Gruntfile.js
module.exports = function(grunt) {
var pkg = grunt.file.readJSON('package.json');
var VERSION = '0.11.5';
grunt.initConfig({
pkg: pkg,
nodewebkit: {
osx: {
options: {
version: VERSION,
appName: pkg.name,
appVersion: pkg.version,
platforms: ['osx'],
macIcns: './app/alice.icns'
},
src: ['./app/**']
},
win: {
options: {
version: VERSION,
appName: pkg.name,
appVersion: pkg.version,
platforms: ['win'],
winIco: './app/alice.ico'
},
src: ['./app/**']
},
all: {
options: {
version: VERSION,
appName: pkg.name,
appVersion: pkg.version,
platforms: ['win', 'osx'],
winIco: './app/alice.ico',
macIcns: './app/alice.icns'
},
src: ['./app/**']
}
}
});
grunt.loadNpmTasks('grunt-node-webkit-builder');
var target = grunt.option('target') || 'osx';
grunt.registerTask('default', ['nodewebkit:'+target]);
};
I'm on OSX 10.9.5
Although the error happens, the default version of the node-webkit app still builds. I just don't see my version.
Same problem here.
I noticed that if I keep running grunt
it will eventually just work. I dropped back down to version 0.2.3
and it works every time.
Yeah
+1 for this issue. I'm running this from Windows. It works fine when I target win, but breaks on osx.
0.2.3 works!
Same thing here with grunt-node-webkit-builder 1.0.0 and node v0.10.26 on yosemite. Sometimes it will eventually pass. Generally, it takes 3 tries.
Same error here - eventually builds - usually takes 4 tries.
+1
Likewise, i was encountered the issue.
I have encountered this issue too, unfortunately.
@sergiovilar @jwoertink - you each report 0.2.3
working. Just so I'm 100% clear, version 0.2.3
of what?
Thanks!
0.2.3
of grunt-node-webkit-builder
Same problem here, OS X 10.10.1, grunt-node-webkit-builder 1.0.0
, using node-webkit-builder 1.0.6
It will eventually work, but usually takes a few tries.
+1
same error on windows: filename of download changed: http://dl.nwjs.io/v0.12.0-alpha2/nwjs-v0.12.0-alpha2-win-x64.zip
If you take that awkward retry loop out, it fails every time for me - means I can reproduce reliably. That retry loop is out of place anyway, imo.
I just published version 1.0.8
of node-webkit-builder. It helps but doesn't fix it 100%. Try
npm cache clean
npm install grunt-node-webkit-builder
it works for me! thanks!
Me too. No issues since 1.0.8. Good work.
Closing in favour of nwutils/nw-builder#180 & nwutils/nw-builder#142