tor-browser

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

build-breakpad-injector.sh (569B)


      1 #!/bin/bash
      2 set -x -e -v
      3 
      4 # This script is for building libbreakpadinjector.so, currently for linux only
      5 
      6 COMPRESS_EXT=zst
      7 
      8 cd $GECKO_PATH
      9 
     10 export MOZ_OBJDIR=obj-injector
     11 
     12 echo ac_add_options --enable-project=tools/crashreporter/injector > .mozconfig
     13 
     14 INJECTOR=libbreakpadinjector.so
     15 
     16 TOOLCHAINS="rustc clang"
     17 
     18 for t in $TOOLCHAINS; do
     19    PATH="$MOZ_FETCHES_DIR/$t/bin:$PATH"
     20 done
     21 
     22 ./mach build -v
     23 
     24 mkdir injector
     25 cp $MOZ_OBJDIR/dist/bin/$INJECTOR injector/
     26 
     27 tar -acf injector.tar.$COMPRESS_EXT injector/
     28 mkdir -p $UPLOAD_DIR
     29 cp injector.tar.$COMPRESS_EXT $UPLOAD_DIR