A Metamask fork with Infura removed and default networks editable
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
set -u
|
|
|
|
set -o pipefail
|
|
|
|
|
|
|
|
extraArgs=()
|
|
|
|
if [[ $# -lt 1 ]]; then
|
|
|
|
extraArgs+=(-m 1)
|
|
|
|
fi
|
|
|
|
|
|
|
|
# Generate LavaMoat policies for the extension background script for each build
|
|
|
|
# type.
|
|
|
|
# ATTN: This may tax your device when running it locally.
|
|
|
|
concurrently --kill-others-on-fail -n main,beta,flask \
|
|
|
|
"${extraArgs[@]}" \
|
|
|
|
"WRITE_AUTO_POLICY=1 yarn build scripts:prod --policy-only" \
|
|
|
|
"WRITE_AUTO_POLICY=1 yarn build scripts:prod --policy-only --build-type beta" \
|
|
|
|
"WRITE_AUTO_POLICY=1 yarn build scripts:prod --policy-only --build-type flask"
|