use relative path when calling wsl

This commit is contained in:
eyedeekay
2024-03-12 21:14:06 -04:00
parent f5f4d1c014
commit d32c850ede
3 changed files with 2 additions and 3 deletions

View File

@ -81,7 +81,7 @@ jobs:
git config --global user.name "eyedeekay Github CI Build"
- uses: actions/checkout@v4
- run: wsl apt-get update
- run: wsl apt-get install -y nsis nsis-common nsis-pluginapi wget dos2unix curl jq gpg gettext zip
- run: wsl apt-get install -y nsis nsis-common nsis-pluginapi wget dos2unix curl jq gpg gettext zip 7z
- run: choco install wget
- name: Set up JDK 21
uses: actions/setup-java@v4

View File

@ -16,7 +16,7 @@ TORSOCKS=$(which torsocks)
if [ -f "${TORSOCKS}" ]; then
. "${TORSOCKS}" on
fi
which wsl && wsl "$SCRIPT_DIR"/src/win/torbrowser-windows.sh
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

View File

@ -24,5 +24,4 @@ fi
gpgv --keyring ./tor.keyring "tor-browser-windows-x86_64-portable-${version}.exe.asc" "tor-browser-windows-x86_64-portable-${version}.exe"
WINE=$(which wine)
7z x "tor-browser-windows-x86_64-portable-${version}.exe" -o "Tor Browser"