-
Notifications
You must be signed in to change notification settings - Fork 13
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
How to create a standalone executable for r-cade? #20
Comments
Well, on Mac I'm not 100% sure since the But, you'll need to package up all the dynamic libraries (dylib) with your app as well. For example, the CSFML dynamic libraries, libsndfile, and OpenAL. I assume you can add these inside the On Windows, I just make a ZIP file of the final executable produced by Racket and copy all the DLL files into the ZIP and they are in the same folder as the EXE file. Let me know if this helps. You may want to ask on the Racket Slack as well. It's possible there's an option when building that will include all the libraries for you? |
@Nixonite I had a couple other thoughts/things to check:
(define (play-game)
(run ...)) That program will "launch" in that will load and then immediate exit because it never actually calls the (define (play-game)
(run ...))
;; actually run the program
(play-game) |
Hello @massung I took your advice and went onto the racket slack channel, seems like it's not so active there :/ even with 1000+ users in general. I tried copying whole directories like /usr/local/Cellar/csfml/ to various locations in the main.app package like under Contents/MacOS/ and Contents/Resources/ and just in Contents/, my friend who tested the variations said "nothing happened". I tried the tetris song, didn't work on my friend's machine. I also tried a drawing program to make a triforce, still nothing full source:
with your modification ^ compiled with
|
@massung I ran this command to package up the libraries you mentioned in your setup page:
At first I didn't include the libffi directory, but after seeing the following error (reported by my friend) I included it
strangely I still get the same error... not sure whatsup there |
Hello!
I was wondering how I could create a distribution with raco and r-cade. I tried something like
raco exe --gui main.rkt
then
raco distribute maindist main.app
it produced a directory called maindist with main.app inside, but when I tried to give it to a friend, they ran it and nothing happened. Just using the tetris music tutorial program as an example. I'm wondering if there are any special instructions for creating a distribution for r-cade that I'm missing? I usually just went into DrRacket to make these but I'm using the cli more for this library.
The text was updated successfully, but these errors were encountered: