tor-browser

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

build-sm-package.sh (841B)


      1 #!/bin/bash
      2 
      3 set -xe
      4 
      5 # Default variables values.
      6 : ${WORK:=$HOME/workspace}
      7 
      8 mkdir -p $UPLOAD_DIR
      9 
     10 # Package up the sources into the release tarball.
     11 AUTOMATION=1 DIST=$UPLOAD_DIR $GECKO_PATH/js/src/make-source-package.py
     12 
     13 # Extract the tarball into a new directory in the workspace.
     14 
     15 PACKAGE_DIR=$WORK/sm-package
     16 
     17 # Do not use -p option because the package directory should not exist.
     18 mkdir $PACKAGE_DIR
     19 pushd $PACKAGE_DIR
     20 
     21 tar -xvf $UPLOAD_DIR/mozjs-*.tar.*z*
     22 
     23 : ${PYTHON3:=python3}
     24 
     25 status=0
     26 (
     27    # Build the freshly extracted, packaged SpiderMonkey.
     28    cd ./mozjs-*
     29    AUTOMATION=1 $PYTHON3 js/src/devtools/automation/autospider.py --skip-tests=checks $SPIDERMONKEY_VARIANT
     30 ) || status=$?
     31 
     32 # Copy artifacts for upload by TaskCluster
     33 cp -rL ./mozjs-*/obj-spider/dist/bin/{js,jsapi-tests,js-gdb.py,libmozjs*} $UPLOAD_DIR
     34 
     35 exit $status