Make the batch scripts launch the router on Windows. If it's already running nothing happens when you run i2p.exe so it's safe to just start it from the .bat script.

This commit is contained in:
idk
2021-03-22 16:07:49 -04:00
parent a5540bc94d
commit c71bdbb77d
+15 -18
View File
@@ -202,12 +202,11 @@ Section Install
# default Firefox path.
FileOpen $0 "$INSTDIR\i2pbrowser.bat" w
FileWrite $0 "@echo off"
# TODO: Test this thoroughly and enable.
# FileWriteByte $0 "13"
# FileWriteByte $0 "10"
# FileWrite $0 'start "" "$I2PINSTEXE\i2prouter" start'
# FileWriteByte $0 "13"
# FileWriteByte $0 "10"
FileWriteByte $0 "13"
FileWriteByte $0 "10"
FileWrite $0 'start "" "$I2PINSTEXE\i2p.exe"'
FileWriteByte $0 "13"
FileWriteByte $0 "10"
FileWriteByte $0 "13"
FileWriteByte $0 "10"
FileWrite $0 'start "" "$FFINSTEXE\firefox.exe" -no-remote -profile "$LOCALAPPDATA\${APPNAME}\firefox.profile.i2p" -url %1'
@@ -220,12 +219,11 @@ Section Install
FileOpen $0 "$INSTDIR\i2pbrowser-private.bat" w
FileWrite $0 "@echo off"
# TODO: Test this thoroughly and enable..
# FileWriteByte $0 "13"
# FileWriteByte $0 "10"
# FileWrite $0 'start "" "$I2PINSTEXE\i2prouter" start'
# FileWriteByte $0 "13"
# FileWriteByte $0 "10"
FileWriteByte $0 "13"
FileWriteByte $0 "10"
FileWrite $0 'start "" "$I2PINSTEXE\i2p.exe"'
FileWriteByte $0 "13"
FileWriteByte $0 "10"
FileWriteByte $0 "13"
FileWriteByte $0 "10"
FileWrite $0 'start "" "$FFINSTEXE\firefox.exe" -no-remote -profile "$LOCALAPPDATA\${APPNAME}\firefox.profile.i2p" -private-window about:blank'
@@ -242,12 +240,11 @@ Section Install
# default Firefox path.
FileOpen $0 "$INSTDIR\i2pconfig.bat" w
FileWrite $0 "@echo off"
# TODO: Test this thoroughly and enable.
# FileWriteByte $0 "13"
# FileWriteByte $0 "10"
# FileWrite $0 'start "" "$I2PINSTEXE\i2prouter" start'
# FileWriteByte $0 "13"
# FileWriteByte $0 "10"
FileWriteByte $0 "13"
FileWriteByte $0 "10"
FileWrite $0 'start "" "$I2PINSTEXE\i2p.exe"'
FileWriteByte $0 "13"
FileWriteByte $0 "10"
FileWriteByte $0 "13"
FileWriteByte $0 "10"
FileWrite $0 'start "" "$FFNONTORINSTEXE\firefox.exe" -no-remote -profile "$LOCALAPPDATA\${APPNAME}\firefox.profile.config.i2p" -url %1'