3 ms·
Just use redbean and provide a init lua file. Or use a http://cosmo.zip http://cosmo.zip provided interpreter (like python, maybe even bash). Each ape file is
by alganet 3y ago
Just use redbean and provide a init lua file. Or use a http://cosmo.zip http://cosmo.zip provided interpreter (like python, maybe even bash).
Each ape file is also a valid zip file. Add your dependencies as if the ape was an archive:
zip -ur myape.com mydependency.anything
Also add a `.args` file:
zip -ur myape.com .args
For this .args file, put one argument per line. This will run on start. You can use `/zip/mydepencency.anything` to read from files, but if you have an executable dependency you'll need to extract it first (I use the host shell or host powershell for this).
You can do this with any software you can compile with comsocc, by adding a call to LoadZipArgs[1] in the main function.
It's easy to get started, your ideas will branch out as soon as you start playing with it.
[1]: https://github.com/jart/cosmopolitan/blob/master/tool/args/args.c https://github.com/jart/cosmopolitan/blob/master/tool/args/a...