Comments (15)
thankx man @ayushmanchhabra , u saved life. My email is [email protected], please do connect or send me your linkedln link. I know I should not post any personal things here, I will delete this msg after sometime. Thankx again man
from nw-builder.
Welcome!
Email: info@ayushmamchhabra
LinkedIn: https://www.linkedin.com/in/ayushmanchhabra/
from nw-builder.
outDir has everything needed to run the executable
from nw-builder.
@abhidaa1233 Please elaborate what you mean by "another system"? Different computer same platform and arch or different platform and arch?
from nw-builder.
@ayushmanchhabra same platform and architecture..In my case Windows and x64. The executable runs smoothly inside the project folder also if I copy to another directory it runs , but failed when trying to install in another pc. I think it's missing some dependencies, how to pack everything in that exe so that i can run independently
from nw-builder.
@abhidaa1233 Whats the output in the console/terminal when trying to run the executable on other system?
from nw-builder.
There is nothing in the console, also the production version or the executable which we get via npm run prod , when run this the right click menu not coming but its coming for the dev version or when I run "npm run dev". Also when I copy the executable from my project drive to desktop it now giving error "The code execution cannot proceed because nw_elf.dll was not found. Reinstalling the program may fix this"
from nw-builder.
I'll try to debug this on my end. Most probably will be an answer by tomorrow.
from nw-builder.
I can only assume @abhidaa1233 believes nw-builder turns the entire app (including NW.js) into a single executable. That's not how nw-builder works, though. This package allows you to package your application for distribution, but does not generate a single executable. You will always need to copy the entire output directory to the system where you want it to run. The files in this directory other than the executable are necessary dependencies.
from nw-builder.
I can only assume @abhidaa1233 believes nw-builder turns the entire app (including NW.js) into a single executable. That's not how nw-builder works, though. This package allows you to package your application for distribution, but does not generate a single executable. You will always need to copy the entire output directory to the system where you want it to run. The files in this directory other than the executable are necessary dependencies.
AHH that makes sense. Yes the whole outDir
directory is required.
from nw-builder.
So suppose If I have to give someone to execute in their system so I need to give only the outDir (in my case the dist/src folder) and tell them to go inside that and click on the exe file to execute?
Also if possible let me know how to make a single executable. I can understand it may not be possible for you to recommend any third party software here but if its possible to do it manually in any way please do let me know or other options to do it.
Recently I tried with enigma virtualbox, there I had to give my generated executable as input and also add the folder of the executable, this gave me one single executable. It is working normally in my system but in other windows systems it failed to open but in one system which had Windows Server edition it ran there.
from nw-builder.
I tried by sharing the outDir (in my case in dist/src folder), and when they tried it worked but it took more time to open at first time. Also the right click reload or opening console in the app is not working in the generated exe, is there any options to enable it on the generated executable if I wanted to?
from nw-builder.
@abhidaa1233 If you want other people to run your applications you need to package it using installers such as NSIS, MSI or APPX.
from nw-builder.
I tried by sharing the outDir (in my case in dist/src folder), and when they tried it worked but it took more time to open at first time. Also the right click reload or opening console in the app is not working in the generated exe, is there any options to enable it on the generated executable if I wanted to?
The right click on reload etc may be part of the sdk flavor (--flavor=sdk
).
from nw-builder.
One more thing I wanted to ask is, that is the outDir enough for packaging or the executable has some other dependencies in other folders in our project which I should include
from nw-builder.
Related Issues (20)
- unzipper failed. Emitted 'error' event on DuplexWrapper instance at #289 HOT 8
- nw-builder 4.5.3 requires WINE on Windows 11 HOT 3
- Add documentation on how to use package HOT 1
- Migrate back to `yauzl-promise` for unzipping MacOS binaries HOT 1
- Use Google's Release Please bot to automate releases HOT 1
- nw-builder always redownloads nw.js binaries HOT 2
- PR test coverage requirement HOT 5
- Cant use nwbuild HOT 4
- v0.87.0 MacOS builds don't launch with nw-builder v4.7.4 HOT 5
- Download manifest seems to not be cached, which leads to failures when builds are run in parallel HOT 2
- libffmpeg not being installed into correct folder HOT 5
- on some macOS, symbolic links are copied as files and link is lost
- Symlinks are copied as files on decompress HOT 9
- `argv` is not properly handled
- linux platform builds with ffmpeg enabled fail with zlib error '[ ERROR ] incorrect header check' HOT 2
- Enabling and disabling `options.ffmpeg` still uses community FFmpeg on successive build HOT 4
- Rename MacOS Helpers HOT 3
- Node Native Addon (gyp, nan, cmake, ffi)
- Canary builds HOT 1
- nw-builder download stuck HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nw-builder.