question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Package all standalone resources into a single file option

See original GitHub issue

Hello @kayhayen,

Let me first greet you for that project who opens up new horizons, really.

I would like to bring an idea to improve it (at least, for my usages): could you propose an option to pack all standalone resources into one single file like the --onefile option for pyinstaller ? IMHO it’s even more convenient for users to manipulate a single file than rather use entire folders.

Pyinstaller packs all resources into a single zip file (which is executable) and unzip them at runtime (check one of my compiled tools, for instance https://github.com/maaaaz/tibcopasswordrevealer) to see what it looks like).

Cheers!

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:15
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

3reactions
kayhayencommented, Nov 27, 2021

Onefile is implemented for Nuitka and with Nuitka-commercial you can now even protect data files. https://nuitka.net/pages/commercial.html rendering this all obsolete.

2reactions
kayhayencommented, Sep 13, 2018

@brupelo There is no point is telling people to not want what they want, because they still are going to want it, until provided with a better alternative. So please do not discuss this issue in that way. Are you OK with me deleting the comments of yours, that I feel are distracting others from knowing that a solution is actually welcome?

For all I know, it’s possible to package all in one and people do it. Clearly at least pyinstaller does it, and it makes life easy for deployment, surely.

On the mailing list back then, concerns were raised, if this is something in scope of Nuitka, or if it is not to be a third party tool instead. Actually, if somebody were to look at how pyinstaller or py2exe do it, we might well find they are doing the same thing, or using the same library. If integration with Nuitka has any benefits other than convenience, I don’t know yet, I would have to see the solution.

But like I said, one of the people who wants to have it, needs to create the PR and implement it in Nuitka, not necessary by implementing the loading of DLLs, which I understand is duplicating Windows functionality, but by using existing solutions. Feel free to go ahead if you are one of them, that is what the “help_needed” tag is for.

My hope is that this is actually only a matter of research, and not so much going to be a burden for actual Nuitka maintenance, with this being generic work, and that there could be an upstream responsible for problems if there are any.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Create a single file for application deployment - .NET
Bundling all application-dependent files into a single binary provides an application developer with the attractive option to deploy and ...
Read more >
Package for standalone program - java - Stack Overflow
I'm pretty new to Java, and I know what packages do. You use them to sort multiple files of a Java application together....
Read more >
Spark Standalone Mode - Spark 3.3.1 Documentation
To launch a Spark standalone cluster with the launch scripts, you should create a file called conf/workers in your Spark directory, which must...
Read more >
Managing Electronic Resources - Ex Libris Knowledge Center
Electronic collections organize electronic resources for delivery and publication. Resources can include electronic journals, portfolios, ...
Read more >
Deploying JavaFX Applications: Packaging Basics
Packages code and resources needed for the JavaFX application into a JAR file and ... All JAR files must be signed or unsigned...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found