tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

repack-android-avd-linux.sh (744B)


      1 #!/bin/bash
      2 set -x -e -v
      3 
      4 # Initialize XVFB for the AVD
      5 . /builds/worker/scripts/xvfb.sh
      6 
      7 cleanup() {
      8    local rv=$?
      9    cleanup_xvfb
     10    exit $rv
     11 }
     12 trap cleanup EXIT INT
     13 
     14 start_xvfb '1024x768x24' 2
     15 
     16 # This script is for fetching and repacking the Android SDK (for
     17 # Linux), the tools required to produce Android packages.
     18 
     19 UPLOAD_DIR=/builds/worker/artifacts/
     20 AVD_JSON_CONFIG="$1"
     21 
     22 mkdir -p $HOME/artifacts $UPLOAD_DIR
     23 
     24 # Populate /builds/worker/.mozbuild/android-device
     25 cd $GECKO_PATH
     26 ./mach python python/mozboot/mozboot/android.py --artifact-mode --prewarm-avd --avd-manifest="$AVD_JSON_CONFIG" --no-interactive --list-packages
     27 
     28 tar cavf $UPLOAD_DIR/android-avd-linux.tar.zst -C /builds/worker/.mozbuild android-device
     29 
     30 ls -al $UPLOAD_DIR