Skip to content

Commit

Permalink
feat: add just target to build app bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
bonomat committed Sep 5, 2023
1 parent 7a81e12 commit 97d7b4f
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,22 @@ build-apk-regtest:
release-apk-regtest: gen android-release build-apk-regtest

build-app-bundle-regtest:
#!/usr/bin/env bash
BUILD_NAME=$(yq -r .version {{pubspec}})
BUILD_NUMBER=$(git rev-list HEAD --count)
echo "build name: ${BUILD_NAME}"
echo "build number: ${BUILD_NUMBER}"
cd mobile && flutter build appbundle \
--build-name=${BUILD_NAME} \
--build-number=${BUILD_NUMBER} \
--release \
--dart-define="COMMIT=$(git rev-parse HEAD)" \
--dart-define="BRANCH=$(git rev-parse --abbrev-ref HEAD)" \
--dart-define="ESPLORA_ENDPOINT={{public_regtest_esplora}}" \
--dart-define="COORDINATOR_P2P_ENDPOINT={{public_regtest_coordinator}}" \
--dart-define="COORDINATOR_PORT_HTTP={{public_coordinator_http_port}}" --flavor demo
# Run prometheus for local debugging (needs it installed, e.g. `brew install prometheus`)
prometheus:
#!/usr/bin/env bash
Expand Down

0 comments on commit 97d7b4f

Please sign in to comment.