title: Node.js nwjs package compilation error: Invalid file descriptor to ICU data
body: <p>I'm trying to create my first package with nwjs, so I created a simple app with only nwjs module installed locally with npm. My app main file has only a <code>console.log("Hello World!")</code>. I zipped the app files - keeping them in the root - and renamed to <code>app.nw</code>. I basically followed <a href="https://github.com/nwjs/nw.js/wiki/How-to-package-and-distribute-your-apps#step-1-make-a-package" rel="nofollow">this doc</a>. The package tree is the following:</p>
  
  <pre><code>app.nw 
   - node_modules
     - nw (and all its files inside)
   - package.json
   - app.js
  </code></pre>
  
  <p>And my <code>package.json</code> is:</p>
  
  <pre><code>{
    "name": "app3",
    "version": "1.0.0",
    "description": "",
    "main": "app.js",
    "scripts": {
      "test": "echo \"Error: no test specified\" &amp;&amp; exit 1"
    },
    "author": "",
    "license": "ISC",
    "window": {
    // Some properties here
    }
  }
  </code></pre>
  
  <p>Then I created an empty folder and copied <code>app.nw</code> to it. From the module folder <code>/nw/nwjs</code> I copied the files: <code>nw.exe</code>, <code>nw.dll</code>, <code>nw_elf.dll</code> and <code>ffmpeg.dll</code> to it, and dragged <code>app.nw</code> over <code>nw.exe</code>. The debug.log file shows me the following error:</p>
  
  <blockquote>
    <p>[0524/110408:ERROR:icu_util.cc(157)] Invalid file descriptor to ICU data received.
    [0524/110408:FATAL:icu_util.cc(260)] Check failed: result.</p>
  </blockquote>
  
  <p>I can't find anything related to this error and this tool over the web. I'm running it in a Win7 x64. I also tryied downloading nwjs manually from github and tryied with x64 and x86 binaries, but they all give me the same error.</p>
  
  <p>Below, the backtrace if needed:</p>
  
  <pre><code>v8::OutputStream::WriteHeapStatsChunk [0x000007FEDA1B7AB1+225089]
  std::vector&lt;v8::CpuProfileDeoptFrame,std::allocator&lt;v8::CpuProfileDeoptFrame&gt; &gt;::operator= [0x000007FEDA1640BC+259612]
  v8::OutputStream::WriteHeapStatsChunk [0x000007FEDA1F2E58+467688]
  v8::Extension::auto_enable [0x000007FEDA1203D1+368897]
  v8::Extension::auto_enable [0x000007FEDA11ED19+363081]
  ChromeMain [0x000007FED9CE0EB5+133]
  GetUploadedReportsImpl [0x000000013F201251+3297]
  GetUploadedReportsImpl [0x000000013F20097F+1039]
  IsSandboxedProcess [0x000000013F264628+231640]
  BaseThreadInitThunk [0x0000000076C359BD+13]
  RtlUserThreadStart [0x0000000076E6A2E1+33]
  </code></pre>
  
  <p>What am I missing here?</p>