by amethyst · 4y ago · 0 comments
We do this for Python applications, by combining a ZIP containing the "link tree" of sources/packages/modules, with a shell bootstrap script that automatically sets up the environment, import path, etc, and Python itself has built in support for importing pure-python modules from a ZIP file. All that's needed for native modules is a simple import hook that extracts the native objects into temp space and then loads them appropriately.
https://blog.frankel.ch/creating-self-contained-executable-j...
https://coderwall.com/p/ssuaxa/how-to-make-a-jar-file-linux-...