Fix build
This commit is contained in:
parent
d332169bcc
commit
922c97c6c2
2 changed files with 7 additions and 4 deletions
|
@ -31,8 +31,8 @@ if [ -f "$APP_FILE" ]; then
|
||||||
rm "$APP_FILE"
|
rm "$APP_FILE"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
mix assets.deploy && \
|
mix compile --force && \
|
||||||
|
mix assets.deploy && \
|
||||||
mix release --overwrite && \
|
mix release --overwrite && \
|
||||||
cd "_build/${MIX_TARGET}_${MIX_ENV}/rel/todo_app" && \
|
cd "_build/${MIX_TARGET}_${MIX_ENV}/rel/android" && \
|
||||||
zip -9r "$APP_FILE" lib/ releases/ --exclude "*.so"
|
zip -9r "$APP_FILE" lib/ releases/ --exclude "*.so"
|
||||||
|
|
||||||
|
|
|
@ -96,6 +96,9 @@ const char* startErlang(std::string root_dir, std::string log_dir)
|
||||||
update_dir = root_dir + "update";
|
update_dir = root_dir + "update";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
setenv("RELEASE_SYS_CONFIG", config_path.c_str(), 1);
|
||||||
|
setenv("RELEASE_ROOT", root_dir.c_str(), 1);
|
||||||
|
|
||||||
const char *args[] = {
|
const char *args[] = {
|
||||||
"test_main",
|
"test_main",
|
||||||
"-sbwt",
|
"-sbwt",
|
||||||
|
@ -134,7 +137,7 @@ const char* startErlang(std::string root_dir, std::string log_dir)
|
||||||
"elixir",
|
"elixir",
|
||||||
"start_cli",
|
"start_cli",
|
||||||
"-mode",
|
"-mode",
|
||||||
"interactive",
|
"embedded",
|
||||||
"-config",
|
"-config",
|
||||||
config_path.c_str(),
|
config_path.c_str(),
|
||||||
"-boot",
|
"-boot",
|
||||||
|
|
Loading…
Reference in a new issue