tor-browser

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

generic-node-modules.sh (345B)


      1 #!/bin/bash -vex
      2 
      3 set -x -e
      4 
      5 echo "running as" $(id)
      6 
      7 set -v
      8 
      9 cd $GECKO_PATH
     10 
     11 export PATH=$PATH:$MOZ_FETCHES_DIR/node/bin
     12 
     13 rm -rf $2/node_modules
     14 npm ci --prefix $2
     15 
     16 # We have $2/{node_modules,...} and want $1/{node_modules}.
     17 mkdir -p /builds/worker/artifacts
     18 cd $2
     19 cd ..
     20 tar caf /builds/worker/artifacts/$1-node-modules.tar.zst $1/node_modules