Fix build

This commit is contained in:
Mikko Ahlroth 2022-08-31 20:44:50 +03:00
parent d332169bcc
commit 922c97c6c2
2 changed files with 7 additions and 4 deletions

View file

@ -31,8 +31,8 @@ if [ -f "$APP_FILE" ]; then
rm "$APP_FILE"
fi
mix assets.deploy && \
mix compile --force && \
mix assets.deploy && \
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"

View file

@ -96,6 +96,9 @@ const char* startErlang(std::string root_dir, std::string log_dir)
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[] = {
"test_main",
"-sbwt",
@ -134,7 +137,7 @@ const char* startErlang(std::string root_dir, std::string log_dir)
"elixir",
"start_cli",
"-mode",
"interactive",
"embedded",
"-config",
config_path.c_str(),
"-boot",