Files
i2p.firefox/targz.sh

33 lines
799 B
Bash
Raw Normal View History

2022-09-13 00:45:18 -04:00
#! /usr/bin/env bash
SCRIPT_DIR=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd -P)
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
export machine=unix
2022-09-13 00:45:18 -04:00
./clean.sh
wsl make distclean
./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
./lib/torbrowser.sh
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
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
tar czvf I2P.tar.gz I2P