-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature request: Allow combination of zip files with rayjs executable #5
Comments
Hi @EzzypooOfNazareth , I actually thought about it a lot, even checked their code. However I couldn't figure out how Löve does this. If somebody has a hint, please let me know. |
@mode777 I tried doing some digging around, as well as some research into the copy command, and from what I gather I think this is a (at least somewhat accurate) run-through of how love2d handles archive files.
Seems like this might be a huge undertaking to get it to work in a stable way on multiple operating systems. I'm by far no expert in this kind of coding, but I'll try and help in whatever way I can. |
It's fairly trivial to do this on Linux using Just bundle the final game directory containing Let me hear your thoughts! |
I did several attempts with makeself on windows through cygwin. Wasn't able to get it to work, but I do think this could be a good approach, I'm going to try playing around more with makeself and some alternatives and see if I can find something that works. |
I don't think you'll be able to use makeself on Windows, as it is intended for Unix-like systems only. I fiddled a little bit on my Windows machine and was able to compile an executable using NSIS.
If you run the resulting MyGame.exe, it will auto-extract your game contents to a temporary folder, typically
|
Sorry for the delay. I actually thought about this a lot and I think it would be a nice feature to have. Ideally having this functionality built in the actual executable so you can generate these on the fly. However, other than Löve2D, raylib cannot run on zip-files. Even if we can fuse the main.js with the rayjs.exe we still need assets and other scripts to bundle as well. Love can use a zip file as a virtual file system, while I don't think that would be straightforward to add. While it would be possible to implement this in rayjs, I am trying to stick as close to raylib API as possible. So by now I don't think this will be possible. |
Feature request:
Love2d has a method for creating distributable files without exposing the underlying code. Their method involves combining a .zip or .love file into the project using the built in copy methods available on mac/windows/linux. I very much think this is a possibility for rayjs and would allow users to create exes without have js files adjacent to the rayjs executable. I attempted this method myself with rayjs and windows, however it was unable to find the js files.
The command I used to test
cmd /c copy /b rayjs.exe+main.js TestGame.exe
Love2d's distribution documentation
The text was updated successfully, but these errors were encountered: