fix paths for wsl-free windows build

This commit is contained in:
idk
2023-04-18 22:54:12 +00:00
parent e152513043
commit 3b11def66c
2 changed files with 9 additions and 2 deletions

View File

@@ -10,6 +10,13 @@ wget(){
which powershell || powershell wget $@
}
makensis(){
which makensis && makensis $@
NSIS_PATH="/c/Program Files (x86)/NSIS/Bin"
PATH="$NSIS_PATH:$PATH:$NSIS_PATH/"
export PATH="$NSIS_PATH:$PATH:$NSIS_PATH/"
}
if [[ -n "$IS_WSL" || -n "$WSL_DISTRO_NAME" ]]; then
JAVA_HOME=$(java -XshowSettings:properties -version 2>&1 | findstr "java.home" | sed 's| java.home = ||g')
export JAVA_HOME="$JAVA_HOME"

View File

@@ -152,8 +152,8 @@ Function routerDetect
createDirectory "$INSTDIR\"
SetOutPath "$INSTDIR\"
File /a /r "I2P/config/certificates"
File /a /r "I2P/config/geoip"
File /a /r "I2P\config\certificates\"
File /a /r "I2P\config\geoip\"
FunctionEnd
Function installerFunction