add launcher script

This commit is contained in:
idk
2022-03-07 16:25:34 -05:00
parent adb7b5a6ae
commit 52c772a482
3 changed files with 28 additions and 1 deletions

View File

@ -77,7 +77,9 @@ The plugin will not start a Tor instance if a SOCKS proxy is open on port 9050.
- Works on Windows and Linux. Can be done on OSX but needs to be different.
6. Encrypt the "Working directory" with all the plugin data using a password.
- Works on Windows, Linux, and OSX.
7. Option to use BRB in a thread as an in-I2P replacement for `mibbit` IRC client.
7. Use a transparently encrypted filesystem to interact with the host system.
- Not done.
8. Option to use BRB in a thread as an in-I2P replacement for `mibbit` IRC client.
- Not done.
### Usage as a Library

21
browse.cmd Executable file
View File

@ -0,0 +1,21 @@
:; # This is a script which is valid on Linux, OSX, and Windows.
:; # It will automatically pick the correct path for the correct OS.
:; # It is useful if you want to put copies of this software for
:; # different OSes in the same directory on the same storage device.
:; # Each copy will use the same configuration and working directories,
:; # effectively making it a single, portable installation.
:; #
:; # Such an installation will also be freaking huge, roughly ~400MB,
:; # containing JVM's for every platform and multiple baseline copies of
:; # the static embedded resources.
:; #
:; # It enforces password-protected configuration/working directories by
:; # default.
:; TOR_MANAGER_REQUIRE_PASSWORD=${TOR_MANAGER_REQUIRE_PASSWORD:-true}
:; OS=$(uname -s | tr '[:upper:]' '[:lower:]')
:; ARCH=$(uname -m | sed 's/x86_64/amd64/' | sed 's/i[3-6]86/386/')
:; ./i2p.plugins.tor-manager-"$OS-$ARCH"; exit $?
@ECHO OFF
set TOR_MANAGER_REQUIRE_PASSWORD=true
.\i2p.plugins.tor-manager-windows-"%PROCESSOR_ARCHITECTURE%"

View File

@ -106,5 +106,9 @@ func onSnowflakeReady() {
}
func onSnowflakeExit() {
if !*snowflake {
return
}
log.Println("Stopping the Snowflake")
snowflakeProxy.Stop()
}