nw_elf.cll missing in generated .exe
QuinDennis opened this issue · 10 comments
created Win32 app on Ubuntu16 version, it generated an 'output' folder with an .exe (and nwjs files). Copied the exe to Win32 and ran,
-System Error
The program can't start because nw_elf.dll is missing...
Next, copied the whole output folder from U16 to Win32, ran the exe, seemed to execute but never produced an NWJS app screen
Yes, you need to copy all the files in the output folder in order for the exe to run.
As for the NWJS app screen, there might be some issues with your app starting. What's in your package.json?
OK, copying whole folder was my second try above. But, I was under the impression it would make a single EXE, guess not. In fact, that's exactly what the 'What Is It?' section states.
JSON
{
"name": "awfiles",
"version": "0.1",
"main": "index.html",
"window": {
"toolbar": true
}
}
I've updated the readme to better reflect what actually happens. Unfortunately, bundling as a standalone exe (with libraries inside the exe) is not feasible for me to do.
That's interesting. Is there anything special in your index.html?
Very plain, (and BTW, thanks for your work.
Here is a command in Windows which makes a single working EXE. copy /b nw.exe+app.nw app.exe
<title>APP</title> <script type="text/javascript" src="index.js"></script>You're welcome. If only it worked out of the box most of the time ;)
Maybe check the error log and see if there's anything that jumps out. It's located in ~/.local/share/Web2Executable/files/error.log
on Ubuntu.
Web2Exe basically does the command you just wrote, but in a (supposedly) more friendly way. Sometimes there are errors that cause the build process to silently fail or partially succeed. If I had time these days, I would much improve the build system to show these errors.
no error.log
I've figured out what might be the issue. As a workaround, edit the whitelist section (simply put a space, and then backspace) and this should update the filters to include the package.json. I will fix this asap!
This happens if your project doesn't originally have a package.json and that file is generated by Web2Exe.
@QuinDennis I've fixed the exporting of a simple project. It was just the package.json not being copied if it didn't exist already.