From 60303ae33cab8ea23b6e6878dbeea5232074c6b5 Mon Sep 17 00:00:00 2001 From: idk Date: Sun, 1 Jan 2023 02:43:52 +0000 Subject: [PATCH] add cmd script(valid in both batch and bash) to plugin directory, allowing it to be launched by adding it to routerconsole.browser --- plugin/i2pbrowser.cmd | 3 +++ test/test-chromium.sh | 2 +- test/test-firefox.sh | 2 +- test/test-systray.sh | 2 +- test/test-torbrowser.sh | 2 +- test/test.sh | 2 +- 6 files changed, 8 insertions(+), 5 deletions(-) create mode 100644 plugin/i2pbrowser.cmd diff --git a/plugin/i2pbrowser.cmd b/plugin/i2pbrowser.cmd new file mode 100644 index 0000000..8885a8a --- /dev/null +++ b/plugin/i2pbrowser.cmd @@ -0,0 +1,3 @@ +:; dir=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd); java -cp "$dir"/lib/i2pfirefox.jar net.i2p.i2pfirefox.I2PBrowser; exit $? +@ECHO OFF +java -cp %cd%/lib/i2pfirefox.jar net.i2p.i2pfirefox.I2PBrowser \ No newline at end of file diff --git a/test/test-chromium.sh b/test/test-chromium.sh index 7d921ae..29fc363 100755 --- a/test/test-chromium.sh +++ b/test/test-chromium.sh @@ -1,7 +1,7 @@ #! /usr/bin/env sh ant distclean -ant jar +cd src && ant jar && cd .. rm -rf i2p.chromium.base.profile i2p.chromium.profile i2p.firefox.base.profile i2p.firefox.profile i2p.firefox.usability.profile tor-browser_en-US diff --git a/test/test-firefox.sh b/test/test-firefox.sh index 2c007ab..79ee753 100755 --- a/test/test-firefox.sh +++ b/test/test-firefox.sh @@ -1,7 +1,7 @@ #! /usr/bin/env sh ant distclean -ant jar +cd src && ant jar && cd .. rm -rf i2p.chromium.base.profile i2p.chromium.profile i2p.firefox.base.profile i2p.firefox.profile i2p.firefox.usability.profile tor-browser_en-US diff --git a/test/test-systray.sh b/test/test-systray.sh index ff35792..2eb0f57 100755 --- a/test/test-systray.sh +++ b/test/test-systray.sh @@ -1,7 +1,7 @@ #! /usr/bin/env sh ant distclean -ant jar +cd src && ant jar && cd .. rm -rf i2p.chromium.base.profile i2p.chromium.profile i2p.firefox.base.profile i2p.firefox.profile i2p.firefox.usability.profile tor-browser_en-US diff --git a/test/test-torbrowser.sh b/test/test-torbrowser.sh index 5848016..cca68dd 100755 --- a/test/test-torbrowser.sh +++ b/test/test-torbrowser.sh @@ -1,7 +1,7 @@ #! /usr/bin/env sh ant distclean -ant jar +cd src && ant jar && cd .. rm -rf i2p.chromium.base.profile i2p.chromium.profile i2p.firefox.base.profile i2p.firefox.profile i2p.firefox.usability.profile diff --git a/test/test.sh b/test/test.sh index 84b6b9b..ad23da8 100755 --- a/test/test.sh +++ b/test/test.sh @@ -1,7 +1,7 @@ #! /usr/bin/env sh ant distclean -ant jar +cd src && ant jar && cd .. rm -rf i2p.chromium.base.profile i2p.chromium.profile i2p.firefox.base.profile i2p.firefox.profile i2p.firefox.usability.profile tor-browser_en-US