-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added support for building standalone executable with warp #69
base: master
Are you sure you want to change the base?
Changes from 1 commit
53a550c
6ed8b65
d549137
0d2faf1
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,3 +17,4 @@ _build | |
*.iml | ||
rebar3.crashdump | ||
*~ | ||
warp/aesophia_cli |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,3 +20,13 @@ | |
{profiles, [{test, | ||
[{erl_opts, [debug_info]} | ||
]}]}. | ||
|
||
{relx, [{release, { aesophia_cli, "7.0.1" }, | ||
[sasl, aesophia_cli, aesophia, aeserialization, eblake2]}, | ||
|
||
{dev_mode, false}, | ||
{include_erts, true}, % To include Erlang runtime system | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If it is possible to include Erlang runtime into executable, why do we need warp in macOS and Linux? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's not a single executable like a C program. It creates a self extracting tar file with the command |
||
{extended_start_script, true}, % Should be true | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm not sure why it should be true |
||
|
||
{overlay, [{template, "./warp/launch", "launch"}, | ||
{copy, "_build/default/bin/aesophia_cli", "aesophia_cli"}]}]}. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/bin/sh | ||
|
||
DIR="$(cd "$(dirname "$0")" ; pwd -P)" | ||
APP=$DIR/bin/{{release_name}} | ||
|
||
exec $APP escript aesophia_cli $@ | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sad