34 lines
1.1 KiB
Bash
Executable File
34 lines
1.1 KiB
Bash
Executable File
#! /usr/bin/env bash
|
|
|
|
SCRIPT_DIR=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd -P)/..
|
|
cd "$SCRIPT_DIR" || cd ../ ; SCRIPT_DIR=$(pwd)
|
|
|
|
. "$SCRIPT_DIR/config.sh"
|
|
|
|
if [ -f "$SCRIPT_DIR/config_override.sh" ]; then
|
|
. "$SCRIPT_DIR/config_override.sh"
|
|
fi
|
|
"$SCRIPT_DIR"/buildscripts/clean.sh
|
|
"$SCRIPT_DIR"/buildscripts/build.sh
|
|
cd "$SCRIPT_DIR/I2P" || exit 1
|
|
|
|
TORSOCKS=$(which torsocks)
|
|
if [ -f "${TORSOCKS}" ]; then
|
|
. "${TORSOCKS}" on
|
|
fi
|
|
which wsl && wsl ../src/win/torbrowser-windows.sh
|
|
which wsl || "$SCRIPT_DIR"/src/win/torbrowser-windows.sh
|
|
version="$(curl -s https://aus1.torproject.org/torbrowser/update_3/release/downloads.json | jq -r ".version")"
|
|
. "${TORSOCKS}" off
|
|
locale="en-US" # mention your locale. default = en-US
|
|
if [ -d /etc/default/locale ]; then
|
|
. /etc/default/locale
|
|
locale=$(echo "${LANG}" | cut -d . -f1)
|
|
fi
|
|
rm -vrf "tor-browser_${locale}"
|
|
cd "$SCRIPT_DIR" || exit 1
|
|
|
|
rm -rf I2P-portable && cp -r I2P I2P-portable
|
|
|
|
which zip && zip -r I2P-windows-portable.zip I2P-portable
|
|
which zip || powershell Compress-Archive -force I2P-portable I2P-windows-portable.zip |