Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fatal error: Copied file during build #125

Closed
jwoertink opened this issue Jan 5, 2015 · 19 comments
Closed

Fatal error: Copied file during build #125

jwoertink opened this issue Jan 5, 2015 · 19 comments

Comments

@jwoertink
Copy link

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.

@sergiopvilar
Copy link

Same problem here.

@jwoertink
Copy link
Author

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.

@adam-lynch
Copy link
Contributor

Yeah 😦. See nwutils/nw-builder#142 and nwutils/nw-builder#147

@chimon2000
Copy link

+1 for this issue. I'm running this from Windows. It works fine when I target win, but breaks on osx.

@sergiopvilar
Copy link

0.2.3 works!

@jeandat
Copy link

jeandat commented Jan 11, 2015

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.

@egekhter
Copy link

Same error here - eventually builds - usually takes 4 tries.

@lisposter
Copy link

+1

@developerworks
Copy link

Likewise, i was encountered the issue.

@mdb
Copy link

mdb commented Jan 20, 2015

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!

@jwoertink
Copy link
Author

0.2.3 of grunt-node-webkit-builder

@tphalp
Copy link

tphalp commented Jan 20, 2015

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.

@gyzerok
Copy link

gyzerok commented Jan 28, 2015

+1

@SSilence
Copy link

same error on windows: filename of download changed: http://dl.nwjs.io/v0.12.0-alpha2/nwjs-v0.12.0-alpha2-win-x64.zip

@felixSchl
Copy link

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.

@adam-lynch
Copy link
Contributor

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

@halfabench
Copy link

it works for me! thanks!

@jeandat
Copy link

jeandat commented Feb 5, 2015

Me too. No issues since 1.0.8. Good work.

@adam-lynch
Copy link
Contributor

Closing in favour of nwutils/nw-builder#180 & nwutils/nw-builder#142

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests