~soapdog/racket-gemini#6: 
Building fails on macOS

Hi! I’m enjoying fafi so far, and running it via racket main.rkt works fine. I then tried building fafi into a standalone file using the instructions in the README, but it failed as such:

$ racket build.rkt
Compiling bytecode... done.
Building executable... done.
Assembling distribution...with-input-from-file: cannot open input file
 path: ~/dev/fafi-browser/fafi.exe
 system error: path refers to a directory; rktio_err=9
 context...:
 /Applications/Racket v7.5/collects/compiler/distribute.rkt:19:2:
assemble-distribution11
 (submod "~/dev/fafi-browser/build.rkt" main): [running body]
 temp37_0
 for-loop
 run-module-instance!125

This is on macOS Mojave 10.14.6.

Cheers, Borja

Status
RESOLVED FIXED
Submitter
Borja
Assigned to
Submitted
4 years ago
Updated
10 months ago
Labels
bug

~soapdog 4 years ago

Hi Borja,

Just to let you know that I managed to reproduce the error here. It appears to be related to the fact that macOS uses application bundles. The value passed to the assemble-distribution in non-macOS platforms is the binary executable for the platform but on macOS it is a folder. Somehow Racket trips itself in that case.

I am trying to solve this. I wish the documentation on assemble-distribution was better.

~soapdog REPORTED FIXED 4 years ago

This has been fixed in:

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

I am working on some large features right now and a new release will take a bit of time but feel free to pick that commit, it should just work.

Borja 4 years ago · edit

Thanks for the quick fix!

It's not much trouble for me to keep using it as I've been doing now, so I'll wait for the release to build the stand-alone file.

Cheers

On Sun, Aug 30, 2020 at 4:11 PM ~soapdog outgoing@sr.ht wrote:

Ticket resolved: fixed

This has been fixed in:

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

I am working on some large features right now and a new release will take a bit of time but feel free to pick that commit, it should just work.

-- View on the web: https://todo.sr.ht/~soapdog/racket-gemini/6#event-47889

~soapdog 4 years ago

Borja,

I just made a new release. It is v0.9. I tried using it to build a standalone version for the mac and it worked. I've uploaded the generated version to the v0.9 page. I am new to generating releases and I suspect I left debug-mode? set to #t in config.rkt when I generated the mac release, so do not worry if you end up with console output full of debug information.

Anyway, feel free to reach out to me in case you need any support or have any feedback. Thanks!

Borja 4 years ago · edit

Hi, thanks for the work you put into this. I can confirm that it works: I managed to build the standalone .app file, and everything seems to work!

Cheers

On Mon, Aug 31, 2020 at 6:13 PM ~soapdog outgoing@sr.ht wrote:

Borja,

I just made a new release. It is v0.9. I tried using it to build a standalone version for the mac and it worked. I've uploaded the generated version to the [v0.9 page](https://git.sr.ht/~soapdog/fafi- browser/refs/v0.9). I am new to generating releases and I suspect I left debug-mode? set to #t in config.rkt when I generated the mac release, so do not worry if you end up with console output full of debug information.

Anyway, feel free to reach out to me in case you need any support or have any feedback. Thanks!

-- View on the web: https://todo.sr.ht/~soapdog/racket-gemini/6#event-48196

Register here or Log in to comment, or comment via email.