Giter VIP home page Giter VIP logo

Comments (15)

abhidaa1233 avatar abhidaa1233 commented on June 16, 2024 1

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.

ayushmanchhabra avatar ayushmanchhabra commented on June 16, 2024 1

Welcome!

Email: info@ayushmamchhabra
LinkedIn: https://www.linkedin.com/in/ayushmanchhabra/

from nw-builder.

ayushmanchhabra avatar ayushmanchhabra commented on June 16, 2024 1

outDir has everything needed to run the executable

from nw-builder.

ayushmanchhabra avatar ayushmanchhabra commented on June 16, 2024

@abhidaa1233 Please elaborate what you mean by "another system"? Different computer same platform and arch or different platform and arch?

from nw-builder.

abhidaa1233 avatar abhidaa1233 commented on June 16, 2024

@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.

ayushmanchhabra avatar ayushmanchhabra commented on June 16, 2024

@abhidaa1233 Whats the output in the console/terminal when trying to run the executable on other system?

from nw-builder.

abhidaa1233 avatar abhidaa1233 commented on June 16, 2024

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.

ayushmanchhabra avatar ayushmanchhabra commented on June 16, 2024

I'll try to debug this on my end. Most probably will be an answer by tomorrow.

from nw-builder.

sysrage avatar sysrage commented on June 16, 2024

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.

ayushmanchhabra avatar ayushmanchhabra commented on June 16, 2024

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.

abhidaa1233 avatar abhidaa1233 commented on June 16, 2024

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.

abhidaa1233 avatar abhidaa1233 commented on June 16, 2024

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.

ayushmanchhabra avatar ayushmanchhabra commented on June 16, 2024

@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.

ayushmanchhabra avatar ayushmanchhabra commented on June 16, 2024

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.

abhidaa1233 avatar abhidaa1233 commented on June 16, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.