2022-11-06 13:38:59 -05:00
|
|
|
#! /usr/bin/env bash
|
|
|
|
|
2023-01-23 16:38:18 +00:00
|
|
|
SCRIPT_DIR=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd -P)/..
|
2024-02-19 17:04:46 -05:00
|
|
|
cd "$SCRIPT_DIR" || cd ../ ; SCRIPT_DIR=$(pwd)
|
2022-11-06 13:38:59 -05:00
|
|
|
|
|
|
|
. "$SCRIPT_DIR/config.sh"
|
|
|
|
|
|
|
|
if [ -f "$SCRIPT_DIR/config_override.sh" ]; then
|
|
|
|
. "$SCRIPT_DIR/config_override.sh"
|
|
|
|
fi
|
2023-01-23 18:25:48 +00:00
|
|
|
"$SCRIPT_DIR"/buildscripts/clean.sh
|
|
|
|
"$SCRIPT_DIR"/buildscripts/build.sh
|
2022-11-06 13:38:59 -05:00
|
|
|
cd "$SCRIPT_DIR/I2P" || exit 1
|
|
|
|
|
|
|
|
TORSOCKS=$(which torsocks)
|
|
|
|
if [ -f "${TORSOCKS}" ]; then
|
|
|
|
. "${TORSOCKS}" on
|
|
|
|
fi
|
2024-03-12 21:14:06 -04:00
|
|
|
which wsl && wsl ../src/win/torbrowser-windows.sh
|
2024-03-12 19:58:16 -04:00
|
|
|
which wsl || "$SCRIPT_DIR"/src/win/torbrowser-windows.sh
|
2022-11-06 13:38:59 -05:00
|
|
|
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
|
|
|
|
|
2022-11-06 14:44:35 -05:00
|
|
|
rm -rf I2P-portable && cp -r I2P I2P-portable
|
2024-02-20 17:11:06 -05:00
|
|
|
|
|
|
|
which zip && zip -r I2P-windows-portable.zip I2P-portable
|
|
|
|
which zip || powershell Compress-Archive -force I2P-portable I2P-windows-portable.zip
|