Skip to content
Snippets Groups Projects
build.sh 526 B
Newer Older
#!/bin/bash

function build {
    PLATFORM=$1
    ARCH=$2
    TARGET=$PLATFORM-$ARCH

    cd tor-browser-build
    ./rbm/rbm build tor --target release --target torbrowser-$TARGET

    mkdir -p ../tor/$ARCH

    tar xzf out/tor/tor-*-$TARGET-*.tar.gz -C ../tor/$ARCH

    # Move contents of subdir 'tor' here
    cd ../tor/$ARCH
    mv tor tordir
    mv tordir/* .
    rmdir tordir
    rm -rf data

    echo ""
    echo "Binary checksums:"
    sha256sum tor/$ARCH/tor
    sha256sum tor/$ARCH/libevent-*.dylib
}