4 ms·
I love the idea of executable single-file containers. I'd take it even farther. I've recently discovered a way to make polyglot scripts that are simultaneously
by modeless 9y ago
I love the idea of executable single-file containers. I'd take it even farther. I've recently discovered a way to make polyglot scripts that are simultaneously executable on Linux, Mac, and Windows[1]. It would be pretty easy to embed binaries in these scripts, and by simply embedding a binary for each OS you'd have a cross-platform binary single-file application.
Of course three copies of the binary is not ideal, but it shouldn't even be necessary. With some deep hacking the platform-specific code could be minimized and the rest of the binary could be shared. Wouldn't it be fun to have truly platform-independent binary executables?
[1] https://gist.github.com/jdarpinian/6860ddfd92b5b458a20ab6055583bc3e https://gist.github.com/jdarpinian/6860ddfd92b5b458a20ab6055...
- heavenlyblue 9y agoI don't really see this. What about packaging - e.g. this file having a proper icon on Windows? What about distribution via the app market platforms? How do I go about upgrading the application?