Verified Commit ebb31c1f authored by Beatriz Rizental's avatar Beatriz Rizental Committed by ma1
Browse files

fixup! TB 41089: Add tor-browser build scripts + Makefile to tor-browser

parent 62ee884c
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -53,6 +53,9 @@ build:
deploy:
	./deploy.sh $(BINARIES) $(BUILD_OUTPUT)

prepare-tests:
	./prepare-tests.sh $(BINARIES) $(BUILD_OUTPUT)

all: build deploy

run:
+25 −0
Original line number Diff line number Diff line
#!/bin/sh
set -e

BINARIES="$1"
BUILD_OUTPUT="$2"

if [ ! -d "$BUILD_OUTPUT" ]; then
    echo "Error: $BUILD_OUTPUT directory does not exist."
    echo "Make sure to run `mach ./build` or `make -C tools/torbrowser build`."
    exit 1
fi

if [ ! -d "$BINARIES" ]; then
    echo "Error: $BINARIES directory does not exist."
    echo "Make sure to run `make -C tools/torbrowser fetch`."
    exit 1
fi

if [ "$(uname)" = "Darwin" ]; then
    cp -r "$BINARIES/Tor Browser.app/Contents/MacOS/Tor" "$BUILD_OUTPUT/dist/firefox/"*.app/Contents/MacOS
    cp -r "$BINARIES/Tor Browser.app/Contents/Resources/fonts" "$BUILD_OUTPUT/dist/firefox/"*.app/Contents/Resources
else
    cp -r "$BINARIES/dev/Browser/fonts" "$BUILD_OUTPUT/dist/bin"
    cp -r "$BINARIES/dev/Browser/TorBrowser" "$BUILD_OUTPUT/dist/bin"
fi