Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't add to resources properly #1050

Open
piroposantosdev opened this issue Apr 24, 2023 · 1 comment
Open

Can't add to resources properly #1050

piroposantosdev opened this issue Apr 24, 2023 · 1 comment
Labels

Comments

@piroposantosdev
Copy link

What happened - I'm trying to add a folder to resources using nexe, but it's not working. When I use the command -r "src//*" apparently the folder is added to the .exe, but if I try to run the file without the /src/ folder in the same directory, the program simply won't open.
My index.js file imports the folder using ./src/... do I need to import it another way for it to work?**:

What you expected to happen - I would like to be able to open the .exe file without needing the resources that are on my local disk:

How to reproduce it (as minimally and precisely as possible) - i'm using, as example, camera.ui template and i would like to use it without any resources files, only using a unique .exe file with all elements, can I?:

Environment:

  • Platform(OS/Version): Windows 11, 64bits
  • Host Node Version: v18.13.0
  • Target Node Version: v18.13.0
  • Nexe version: 4.0.0-rc.2
  • Python Version: Python 2.7.18
@balenaultra
Copy link

Maybe is another resource that is missing.
Try to open your executable from the terminal and you will see the actual error.

Depending on my project i need to add 7.. 8 resource folders

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants