question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Invalid build for Windows

See original GitHub issue

Steps to repro (on Linux):

  1. clone this repo
  2. npm install
  3. DEBUG_PROD=true npm run package-win
  4. Instal and run on Windows from command line, this is output:
{ Error: spawn C:\Users\Joseph\AppData\Local\Programs\electron-react-boilerplate\resources\app.asar\7zip-lite\7z.exe ENOENT
    at exports._errnoException (util.js:1024:11)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:192:19)
    at onErrorNT (internal/child_process.js:374:16)
    at _combinedTickCallback (internal/process/next_tick.js:138:11)
    at process._tickCallback (internal/process/next_tick.js:180:9)
  code: 'ENOENT',
  errno: 'ENOENT',
  syscall: 'spawn C:\\Users\\Joseph\\AppData\\Local\\Programs\\electron-react-boilerplate\\resources\\app.asar\\7zip-lite\\7z.exe',
  path: 'C:\\Users\\Joseph\\AppData\\Local\\Programs\\electron-react-boilerplate\\resources\\app.asar\\7zip-lite\\7z.exe',
  spawnargs:
   [ 'x',
     'C:\\Users\\Joseph\\AppData\\Roaming\\electron-react-boilerplate\\extensions\\fmkadmapgofadopljbjfkapdkoienihi.crx',
     '-y',
     '-oC:\\Users\\Joseph\\AppData\\Roaming\\electron-react-boilerplate\\extensions\\fmkadmapgofadopljbjfkapdkoienihi' ] }

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
amilajackcommented, Sep 19, 2018
screen shot 2018-09-19 at 1 59 36 pm
1reaction
jdpigeoncommented, Sep 22, 2018

Yes, my app uses native dependencies. I hope that 7zip fix helps!

@amilajack was pointing out that, if you’re using native dependencies, you shouldn’t expect to be able to build your app for different platform than the one you’re developing on (e.g. building for Windows on Linux like the OP). AFAIK, this isn’t due to anything specific with this project, but is just generally a limitation of node’s native tooling in general.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Invalid Build Type - MSDN - Microsoft
This occurs when the build service account does not have permissions to read the build type from source control. And the last project...
Read more >
'bind' on Windows 10 docker build of Windows container
I build this Dockerfile with success in a CI system before, but I want to build in my machine for quicker development cycle....
Read more >
"invalid windows mount type: 'bind'" when opening a ... - GitHub
"invalid windows mount type: 'bind'" when opening a windows directory in a container · Issue #7394 · microsoft/vscode-remote-release · GitHub.
Read more >
Build upgrade fails due "Invalid data access trap"
OS: Windows 11 PRO x64 Dev. Manufacturer/Model: Hyper-V Virtual Machine (host in System 2 specs). CPU: Intel Core i7-8550U. Memory: 6 GB. Graphics...
Read more >
Invalid Build - Xcode 10.2 | Apple Developer Forums
Invalid Build - Xcode 10.2 ... Invalid Toolchain - Your app was built with a beta version of Xcode or SDK. ... No...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found