2022-09-13 00:45:18 -04:00
|
|
|
#! /usr/bin/env bash
|
|
|
|
|
2023-01-23 16:38:18 +00:00
|
|
|
SCRIPT_DIR=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd -P)/..
|
2022-09-13 00:45:18 -04:00
|
|
|
cd "$SCRIPT_DIR" || exit 1
|
|
|
|
|
|
|
|
. "$SCRIPT_DIR/config.sh"
|
|
|
|
|
2022-09-19 17:15:51 -04:00
|
|
|
if [ -f "$SCRIPT_DIR/config_override.sh" ]; then
|
2022-09-13 00:45:18 -04:00
|
|
|
. "$SCRIPT_DIR/config_override.sh"
|
|
|
|
fi
|
2022-10-09 16:07:02 -04:00
|
|
|
export machine=unix
|
2023-01-23 18:25:48 +00:00
|
|
|
"$SCRIPT_DIR"/buildscripts/clean.sh
|
|
|
|
"$SCRIPT_DIR"/buildscripts/build.sh
|
2022-10-01 21:01:00 -04:00
|
|
|
cd "$SCRIPT_DIR/I2P" || exit 1
|
2022-10-01 22:30:11 -04:00
|
|
|
|
|
|
|
TORSOCKS=$(which torsocks)
|
|
|
|
if [ -f "${TORSOCKS}" ]; then
|
|
|
|
. "${TORSOCKS}" on
|
|
|
|
fi
|
2023-01-23 17:23:58 +00:00
|
|
|
"$SCRIPT_DIR"/src/unix/torbrowser.sh
|
2022-10-01 22:05:58 -04:00
|
|
|
version="$(curl -s https://aus1.torproject.org/torbrowser/update_3/release/downloads.json | jq -r ".version")"
|
2022-10-01 22:30:11 -04:00
|
|
|
. "${TORSOCKS}" off
|
2022-10-01 22:05:58 -04:00
|
|
|
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
|
2022-10-01 22:30:11 -04:00
|
|
|
rm -vrf "tor-browser_${locale}"
|
2022-10-01 21:01:00 -04:00
|
|
|
cd "$SCRIPT_DIR" || exit 1
|
2022-10-01 22:05:58 -04:00
|
|
|
|
|
|
|
tar czvf I2P.tar.gz I2P
|