|
|
|
|
|
by powersurge360
1416 days ago
|
|
I, too, am interested but I'm not terribly literate in elixir yet. I am aware that you can compile executables in elixir with a release command but I'd be curious to hear more about (or at least be pointed to the specific spots in the code) how the bundling was done to give you a discrete application per platform, with app icon and everything. Having a script that opens a web browser pages is simple enough, but the extra sugar on top to wrap in an app bundle that shows up in your task bar or dock is something I am very curious about. EDIT: Someone further down the thread linked to a more specific place and that led me to the macos.ex file[1] (which is what I was most interested in, being on macOS myself. It looks like at least in the case of macOS it will build the bundle by hand, template in enough swift code to build the application, sign and notarize a bundle, and add the compiled elixir program in there. Pretty interesting. I guess the idea is that you write just enough swift to manage the life cycle of the compiled elixir application. It's an interesting approach but it seems like it would be frustrating and fragile. [1]: https://github.com/livebook-dev/livebook/blob/355527f7e8034e... |
|
[1]: https://github.com/livebook-dev/livebook/blob/920f70817efbac...
[2]: https://github.com/livebook-dev/livebook/blob/920f70817efbac...
[3]: https://github.com/livebook-dev/livebook/blob/920f70817efbac...