Invalid build for Windows
See original GitHub issueSteps to repro (on Linux):
- clone this repo
npm installDEBUG_PROD=true npm run package-win- 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:
- Created 5 years ago
- Comments:7 (1 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

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.