Forked from
Legacy / gitolite / builders / tor-browser-bundle
48 commits behind, 64 commits ahead of the upstream repository.
-
Georg Koppen authoredGeorg Koppen authored
gitian-firefox.yml 2.84 KiB
---
name: "torbrowser-mac"
distro: "debian"
suites:
- "jessie"
architectures:
- "amd64"
packages:
- "autoconf2.13"
- "unzip"
- "yasm"
- "rsync"
- "zip"
reference_datetime: "2000-01-01 00:00:00"
remotes:
- "url": "https://git.torproject.org/tor-browser.git"
"dir": "tor-browser"
files:
- "clang-linux64-jessie-utils.zip"
- "cctools.tar.gz"
- "MacOSX10.7.sdk.tar.gz"
- "get-moz-build-date"
- "re-dzip.sh"
- "dzip.sh"
- "fix-info-plist.py"
- "versions"
- "24052.patch"
script: |
INSTDIR="$HOME/install/"
source versions
export REFERENCE_DATETIME
export TZ=UTC
export LC_ALL=C
umask 0022
#
mkdir -p $INSTDIR/TorBrowser.app/Contents/MacOS/
mkdir -p $OUTDIR/
cd tor-browser
patch -p1 < ../24052.patch
# Extracting all the necessary tools
tar xaf ../MacOSX10.7.sdk.tar.gz
tar xaf ../cctools.tar.gz
unzip ../clang-linux64-jessie-utils.zip
#
TB_COMMIT_DATE=$(git show -s --format='%ci')
COPYRIGHT_YEAR=${TB_COMMIT_DATE%%-*}
mv .mozconfig-mac .mozconfig
# run get-moz-build-date before removing .git, which is used to get the year
chmod +x ~/build/get-moz-build-date
eval $(~/build/get-moz-build-date $(cat browser/config/version.txt))
# .git and the src takes up a lot of useless space, and we need the space to build
#git archive HEAD | tar -x -C $OUTDIR/src
rm -rf .git
find -type f -print0 | xargs -0 touch --date="$REFERENCE_DATETIME"
rm -f configure
rm -f js/src/configure
make -f client.mk configure CONFIGURE_ARGS="--with-tor-browser-version=${TORBROWSER_VERSION} --with-distribution-id=org.torproject --enable-update-channel=${TORBROWSER_UPDATE_CHANNEL} --enable-bundled-fonts"
find -type f -print0 | xargs -0 touch --date="$REFERENCE_DATETIME"
make $MAKEOPTS -f client.mk build
#
make -C obj-macos package INNER_MAKE_PACKAGE=true
cp -a obj-macos/dist/firefox/* $INSTDIR
# Remove firefox-bin (we don't use it, see ticket #10126)
rm -f $INSTDIR/TorBrowser.app/Contents/MacOS/firefox-bin
#
# Make MAR-based update tools available for use during the bundle phase.
MARTOOLS=~/build/mar-tools
mkdir -p $MARTOOLS
cp -p config/createprecomplete.py $MARTOOLS/