Add 7.0 deploy scripts for 'dev' and 'test' channels
This commit is contained in:
parent
ee07d603b1
commit
d9f86a6293
2 changed files with 54 additions and 0 deletions
27
app/scripts/7.0_dev_build_and_deploy
Executable file
27
app/scripts/7.0_dev_build_and_deploy
Executable file
|
@ -0,0 +1,27 @@
|
||||||
|
#!/bin/bash
|
||||||
|
set -euo pipefail
|
||||||
|
|
||||||
|
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||||
|
APP_ROOT_DIR="$(dirname "$SCRIPT_DIR")"
|
||||||
|
ROOT_DIR="$(dirname "$(dirname "$SCRIPT_DIR")")"
|
||||||
|
. "$APP_ROOT_DIR/config.sh"
|
||||||
|
|
||||||
|
CHANNEL="dev"
|
||||||
|
BRANCH="fx102"
|
||||||
|
export SAFARI_APPEX="$ROOT_DIR/../safari-app-extension-builds/dev/ZoteroSafariExtension.appex"
|
||||||
|
|
||||||
|
cd "$SCRIPT_DIR"
|
||||||
|
./check_requirements
|
||||||
|
|
||||||
|
hash=`./get_repo_branch_hash $BRANCH`
|
||||||
|
source_dir=`./get_commit_files $hash`
|
||||||
|
build_dir=`mktemp -d`
|
||||||
|
|
||||||
|
function cleanup {
|
||||||
|
rm -rf "$source_dir"
|
||||||
|
rm -rf "$build_dir"
|
||||||
|
}
|
||||||
|
trap cleanup EXIT
|
||||||
|
|
||||||
|
./prepare_build -s "$source_dir" -o "$build_dir" -c $CHANNEL -m $hash
|
||||||
|
./build_and_deploy -d "$build_dir" -p $BUILD_PLATFORMS -c $CHANNEL -i 1
|
27
app/scripts/7.0_test_build_and_deploy
Executable file
27
app/scripts/7.0_test_build_and_deploy
Executable file
|
@ -0,0 +1,27 @@
|
||||||
|
#!/bin/bash
|
||||||
|
set -euo pipefail
|
||||||
|
|
||||||
|
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||||
|
APP_ROOT_DIR="$(dirname "$SCRIPT_DIR")"
|
||||||
|
ROOT_DIR="$(dirname "$(dirname "$SCRIPT_DIR")")"
|
||||||
|
. "$APP_ROOT_DIR/config.sh"
|
||||||
|
|
||||||
|
CHANNEL="test"
|
||||||
|
BRANCH="fx102"
|
||||||
|
#export SAFARI_APPEX="$ROOT_DIR/../safari-app-extension-builds/dev/ZoteroSafariExtension.appex"
|
||||||
|
|
||||||
|
cd "$SCRIPT_DIR"
|
||||||
|
./check_requirements
|
||||||
|
|
||||||
|
hash=`./get_repo_branch_hash $BRANCH`
|
||||||
|
source_dir=`./get_commit_files $hash`
|
||||||
|
build_dir=`mktemp -d`
|
||||||
|
|
||||||
|
function cleanup {
|
||||||
|
rm -rf "$source_dir"
|
||||||
|
rm -rf "$build_dir"
|
||||||
|
}
|
||||||
|
trap cleanup EXIT
|
||||||
|
|
||||||
|
./prepare_build -s "$source_dir" -o "$build_dir" -c $CHANNEL -m $hash
|
||||||
|
./build_and_deploy -d "$build_dir" -p $BUILD_PLATFORMS -c $CHANNEL -i 1
|
Loading…
Reference in a new issue