Many thanks Joel,
I do agree that `raco distribute` seems the way to go. Indeed, the setup described in the blog post you shared is just what I’m currently doings (so it’s nice to know I’m not doing something too crazy!).
What gave me pause, however, was that homebrew seems to discourage binary-only packages. You /can/ distribute a pre-built binary — as a “bottle” — but the process to create a bottle requires one to have a distributable source-code version first. (There are also “casks” for pre-built binaries but these seem to be specifically designed for MacOS GUI binaries, whereas I have a command-line utility.) So I feel I ought to follow that practice.
And I am also unsure about whether Racket modules written for an application "should be" distributed as a Racket package. Given how much of the Racket tooling is around packages (scribble, dependencies), I would have thought all of it. So one approach to building an executable might to be to set the collections directory to somewhere local (I’m assuming this is doable), then `raco pkg install my-app`, followed by compilation of the main module. But then, as far as I can tell, one can’t `raco exe` a library module, only a file. So I’m a bit stuck there, too.
These are rather incoherent thoughts to which I don’t except an answer. But I will continue to try to figure out a sensible approach and report back if anyone else is interested.
James
> --
> You received this message because you are subscribed to the Google Groups "Racket Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
racket-users...@googlegroups.com.
> To view this discussion on the web visit
https://groups.google.com/d/msgid/racket-users/06889ecc-cf38-4037-9678-413169c8d5e2%40googlegroups.com.
> For more options, visit
https://groups.google.com/d/optout.