livebook/.github/scripts/app/build_mac.sh

16 lines
493 B
Bash
Raw Normal View History

2022-01-18 00:34:38 +08:00
#!/bin/bash
#
2022-01-18 00:34:38 +08:00
# Usage:
#
# $ sh .github/scripts/app/build_mac.sh
# $ open _build/app_prod/Livebook.app
2022-01-18 00:34:38 +08:00
# $ open livebook://github.com/livebook-dev/livebook/blob/main/test/support/notebooks/basic.livemd
# $ open ./test/support/notebooks/basic.livemd
set -e
2022-09-02 18:03:32 +08:00
. .github/scripts/app/bootstrap_mac.sh
2022-06-22 14:04:59 +08:00
mix local.hex --force --if-missing
mix local.rebar --force --if-missing
MIX_ENV=prod MIX_TARGET=app mix deps.get --only prod
MIX_ENV=prod MIX_TARGET=app mix release app --overwrite