a3d7b58b83
Minus obsolete 4.0 files
24 lines
626 B
Bash
Executable file
24 lines
626 B
Bash
Executable file
#!/bin/bash
|
|
set -euo pipefail
|
|
|
|
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
|
ROOT_DIR="$(dirname "$SCRIPT_DIR")"
|
|
. "$ROOT_DIR/config.sh"
|
|
|
|
CHANNEL="dev"
|
|
BRANCH="master"
|
|
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`
|
|
|
|
function cleanup {
|
|
rm -rf $source_dir
|
|
}
|
|
trap cleanup EXIT
|
|
|
|
"$ZOTERO_BUILD_DIR/xpi/build_xpi" -s "$source_dir" -c $CHANNEL -m $hash
|
|
./build_and_deploy -d "$ZOTERO_BUILD_DIR/xpi/build/staging" -p $BUILD_PLATFORMS -c $CHANNEL -i 1
|