How would I rebar3 release a graphical application? #2861
-
Hello, I'm finishing up a program I made using Erlang's wx bindings and I'm now in the exciting process of "packaging" and "releasing". There are a few question marks, some more optimistic than others:
Thank you for your responses. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
|
Beta Was this translation helpful? Give feedback.
-
The extended_start_script does not include either a foreground or a daemon mode on Windows. By disabling that I got a slightly better script that can just be doubleclicked to launch, but it still pops out a console on the side. I've already wired it up so that my OTP application terminates when my wx window is closed, but the VM seems to stick around after that. I can even see the system report in the console:
|
Beta Was this translation helpful? Give feedback.
-
I went digging around the relx repository and I found the hidden With a bit of messing around, I've now reached a solution that's Good Enough for me: Use the powershell script along with a shortcut that looks something like As for the hanging, you were correct. I shouldn't have been calling application:stop manually, when I let my gen_server that holds the wx window terminate on its own the OTP design does work and the VM eventually closes. That's all my questions addressed, thank you very much. |
Beta Was this translation helpful? Give feedback.
foreground
mode (with the release script) while detaching from the process when it is invoked (eg.$ <command> &
in a bash shell), or using thedaemon
mode (which uses named pipes)observer
and then kill it witho…