mirror of
https://github.com/zotero/zotero.git
synced 2026-09-27 01:21:27 +00:00
Necessary for non-Mozilla C:\ProgramData folder now that we can no longer do a string replace on the official DLL The custom component ZIPs are currently stored in S3 and referenced by SHA-256 hashes, which get committed. This is basically the same as Git LFS, but since we now support per-arch fetch_xulrunner and building, this avoids the need to download large xul.dll files for other architectures. (Git LFS files also can't ever be removed, so particularly while we're testing this, we don't necessarily want to permanently store every copy.)
71 lines
1.8 KiB
Bash
71 lines
1.8 KiB
Bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
|
|
|
# Version of Gecko to build with
|
|
GECKO_VERSION_MAC="140.0esr"
|
|
GECKO_VERSION_LINUX="140.0esr"
|
|
GECKO_VERSION_WIN="140.0esr"
|
|
RUST_VERSION=1.86.0
|
|
|
|
# URL prefix for custom builds of Firefox components
|
|
custom_components_url="https://download.zotero.org/dev/firefox-components/"
|
|
custom_components_hash_mac=""
|
|
custom_components_hash_win_x64="5124fb47abbd7ee1194602179e70e9930ae563af13cdb981984e3f2bad35cfbb"
|
|
custom_components_hash_win_arm64="74350e7c4b2c7a52a3d7337b31ff3786c678e979f32ad223b65827d95be58853"
|
|
custom_components_hash_win32="0aa4b1b62ca25647ce81cfe7f50fe5ea996ae7a09d30d167ec52113471face6a"
|
|
|
|
APP_NAME="Zotero"
|
|
APP_ID="zotero\@zotero.org"
|
|
|
|
# Whether to sign builds
|
|
SIGN=0
|
|
|
|
# OS X Developer ID certificate information
|
|
DEVELOPER_ID=F0F1FE48DB909B263AC51C8215374D87FDC12121
|
|
# Keychain and keychain password, if not building via the GUI
|
|
KEYCHAIN=""
|
|
KEYCHAIN_PASSWORD=""
|
|
NOTARIZATION_BUNDLE_ID=""
|
|
NOTARIZATION_USER=""
|
|
NOTARIZATION_TEAM_ID=""
|
|
NOTARIZATION_PASSWORD=""
|
|
|
|
# Paths for Windows installer build
|
|
NSIS_DIR='C:\Program Files (x86)\NSIS\'
|
|
|
|
SIGNTOOL_DELAY=5
|
|
|
|
# Directory for unpacked binaries
|
|
STAGE_DIR="$DIR/staging"
|
|
# Directory for packed binaries
|
|
DIST_DIR="$DIR/dist"
|
|
|
|
SOURCE_REPO_URL="https://github.com/zotero/zotero"
|
|
S3_BUCKET="zotero-download"
|
|
S3_CI_ZIP_PATH="ci/client"
|
|
S3_DIST_PATH="client"
|
|
|
|
DEPLOY_HOST="deploy.zotero"
|
|
DEPLOY_PATH="www/www-production/public/download/client/manifests"
|
|
DEPLOY_CMD="ssh $DEPLOY_HOST update-site-files"
|
|
|
|
BUILD_PLATFORMS=""
|
|
NUM_INCREMENTALS=6
|
|
|
|
if [ "`uname`" = "Darwin" ]; then
|
|
shopt -s expand_aliases
|
|
fi
|
|
|
|
if [ "`uname -o 2> /dev/null`" = "Cygwin" ]; then
|
|
export WIN_NATIVE=1
|
|
else
|
|
export WIN_NATIVE=0
|
|
fi
|
|
|
|
# Make utilities (mar/mbsdiff) available in the path
|
|
PATH="$DIR/xulrunner/bin:$PATH"
|
|
|
|
if [ -f "$DIR/config-custom.sh" ]; then
|
|
. "$DIR/config-custom.sh"
|
|
fi
|
|
|
|
unset DIR
|