Help creating a distributable version of my app

37 views
Skip to first unread message

Andre Garzia

unread,
Aug 17, 2020, 12:53:27 PM8/17/20
to Racket Users
Good afternoon friends,

I'm trying to build a distributable version of my little Gemini browser:

  https://git.sr.ht/~soapdog/fafi-browser

The source folder contains a `main.rkt` which has `(module+ main ...)` in it. I thought that selecting that file and using the menu to create a distribution should work. I also tried to come up with a build script based on Alex build script for ActivityLog2:

  https://git.sr.ht/~soapdog/fafi-browser/tree/maybe-build/build.rkt

What is happening is that everything appears to build correctly on first glance but nothing happens when I try running the `Fafi.exe` file. If I try running it like `Fafi.exe -v` I get a `Racket v7.7` banner which makes me think that my main module is not executing. This happens if I use my build script or if I use the menu in DrRacket.

Can someone share some pointers or feedback about where to look to fix this? I greatly appreciate any feedback.

Kind regards
A.

--
Want to support me? Buy me a coffee at https://ko-fi.com/andregarzia

Deren Dohoda

unread,
Aug 17, 2020, 1:35:06 PM8/17/20
to Racket Users
Hello,

The main submodule is intended to be a way to have execution when run from racket/drracket. Maybe there is a way to use ++lib or ++named-lib flags to raco exe but I can't tell from the docs. I just removed your (module+ main ...) wrapper and used the default tool settings from DrRacket and it works fine. So you might consider a separate file which isn't "main" which doesn't have this wrapper simply for distribution packaging purposes.

Regards,
Deren

Reply all
Reply to author
Forward
0 new messages