"Invalid Nexe binary" error after using "strip"
See original GitHub issueIs this a BUG or a FEATURE REQUEST?: BUG
What happened: Running binary through strip breaks it.
How to reproduce it (as minimally and precisely as possible): Build binary:
$ nexe index.js --build
ℹ nexe 2.0.0-rc.34
✔ Source already downloaded
✔ Compiling result
✔ Entry: 'index.js' written to: test
✔ Finished in 0.42s
It works:
$ ./test
Hello world
Now it doesn’t work:
$ strip test
$ ./test
_third_party_main.js:8
throw 'Invalid Nexe binary';
^
Invalid Nexe binary
Environment
- Platform(OS/Version): Debian Sid
- Host Node Version: v8.12.0
- Target Node Version: v8.12.0
- Nexe version: 2.0.0-rc.34
- Python Version: 2.7.15+ and 3.6.6+
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
nexe - npm
Start using nexe in your project by running `npm i nexe`. ... This will cause the output to error as an "Invalid Binary"...
Read more >Request, Error: unable to verify the first certificate
When I use your code, it throws me Error: Invalid URI "/" error message. – Mr.D. Mar 24, 2016 at 6:45. Try ...
Read more >invalid data found when processing input ffmpeg
I would start by investigating two possible reasons for this kind of failure: (1) the program isn't using ffmpeg API correctly . To...
Read more >Building - Chrome Developers
The Native Client SDK also has a GCC-based toolchain for building nexe files which uses the glibc ... Use -O0 when debugging, and...
Read more >Download & Update Node.js to the Latest Version! Node v19 ...
The next LTS version, v18 is planned to take over on 2022-10-25. ... can build a Node.js binary with a custom V8 startup...
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
That works - thanks!
This is awesome. That’s a great workaround 😃