Files
i2p.firefox/buildscripts/targz.sh

32 lines
850 B
Bash
Raw Permalink Normal View History

2022-09-13 00:45:18 -04:00
#! /usr/bin/env bash
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
export machine=unix
"$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
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