https://en.wikipedia.org/wiki/The_Legend_of_Zelda_(video_gam...
- Browser: works after renaming to .html
- Linux: "./snake.com: line 20: lzma: command not found". Installing the xz package makes it work (already had XWayland enabled so X11 worked, but may be needed if you have a strict Wayland session).
- Windows: As either .com or renaming to .exe I get "The application was unable to start correctly (0xc0000005). Click OK to close the application." Not sure how to make this one work, it's definitely not AV related though (I have that stripped in this sandbox VM).
Edit: Got it working in all 3 now. On Windows I still had DEP enabled on all programs to test some apps earlier, turning that back off allowed it to launch.
$ chmod +x snake.com
$ ./snake.com
... then it would try to use Mono to launch it: Cannot open assembly './snake.com': File does not contain a valid CIL image.
But, running it explicitly with Bash works: $ bash snake.com
Pretty nifty but doesn't work out of the box on any Linux, at least :p Running Debian 13.That's because of the binfmt handler that Mono installs which matches the PE header.
If you mean the .html rename or whatever my Windows problem was, I must be missing it. Edit: Windows was DEP.
https://web.archive.org/web/20100304155706/http://www.thepro...
The ability to load .html files over the file:// protocol is a powerful, often neglected feature. In practice, it means you can double-click an HTML file and it runs an app in your browser instantly.
https://developer.mozilla.org/en-US/docs/Web/Security/Defens...
https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/COR...
The security risk : https://www.mozilla.org/en-US/security/advisories/mfsa2019-2...
You need a local webserver. Or bundle everything in one html file.
You could distribute it as `.html` only, and use JS to offer a local download link to itself in the correct extension. A polyglot installer, of sorts.
For example, this gist is an HTML that, when opened, offers a download zip of its DOM in whatever state it currently is:
https://gist.github.com/alganet/c904acb57282402fc0bd724f1eeb...
I think you can use something similar to get the entire page contents as a blob, but I never tested with binary data in actual browsers. Perhaps even patch it to avoid the initial windows error.