Compare commits
150 Commits
Author | SHA1 | Date | |
---|---|---|---|
76d05d0d53 | |||
7e6f11f6b3 | |||
b9c0fc5e38 | |||
5d4b1a4681 | |||
b2f604a4a5 | |||
7e3ae6ad04 | |||
2edb2a3408 | |||
6c1f2bc640 | |||
76292fc7c0 | |||
c354c49128 | |||
9d66efe846 | |||
24a08cf7c5 | |||
4e19c36817 | |||
05dfef06e3 | |||
8397d7415b | |||
f9279f494f | |||
e3c2ab91be | |||
a8a54f6b4c | |||
995e9805a2 | |||
f3e7c28503 | |||
6042f30350 | |||
ab226e5a4c | |||
e632a49933 | |||
beef36b36d | |||
2ed27fa307 | |||
1a5ce21912 | |||
7754c0b43d | |||
b4b2a30935 | |||
81f58b9d48 | |||
02ac99531a | |||
2b2aea0748 | |||
09e6864cb9 | |||
f954bf4893 | |||
21f74306c8 | |||
ccde6b65dc | |||
f348347115 | |||
ef19f681d0 | |||
1b60e74f9d | |||
9a052f4f3c | |||
1e94b34efe | |||
01c19d1ffd | |||
de6b872426 | |||
27cb5b8365 | |||
2d508e1417 | |||
d6a62bb6ee | |||
4095e61ad3 | |||
f107bf92b2 | |||
bf2e964e1a | |||
8c4647f8b3 | |||
62bda1aec5 | |||
5c637e900e | |||
41b927809b | |||
f8b70f2a96 | |||
c9e7a4beba | |||
40f50aefb5 | |||
e9dfeb0288 | |||
5d121e8927 | |||
aad78749b4 | |||
bbaddd3927 | |||
f7c58d0125 | |||
0e2dba7bd5 | |||
23f1e3491f | |||
a36a74a44a | |||
63344656c1 | |||
260d42a7b3 | |||
4c3f5523d2 | |||
0038f9c186 | |||
46469a4e94 | |||
8d8006c956 | |||
4d35d18c99 | |||
8a2b3fee85 | |||
268b791ad7 | |||
37c7ad9640 | |||
6928ff423a | |||
a4bde9e63b | |||
e337f90c0b | |||
89b480cd22 | |||
0c4746e8fb | |||
87b0a07878 | |||
f09599a2fa | |||
2d3071dbb2 | |||
c79018a29a | |||
bc342cc463 | |||
54b427e532 | |||
ebc829c5c9 | |||
ce5240d658 | |||
fdd3aac391 | |||
c5281751bb | |||
a3b9f1abce | |||
f208563c35 | |||
a9e1135ef5 | |||
8d3b46b36c | |||
a7e47cfc15 | |||
71060cd851 | |||
f3dc285ba6 | |||
bce2f0e286 | |||
8e70d9280c | |||
ea778bf5da | |||
a3de60fcb1 | |||
459c16aec2 | |||
d35a60cc01 | |||
733c2b1cc0 | |||
6b7ab66c99 | |||
4647cd4a0b | |||
b47fb744c4 | |||
a179482b95 | |||
0f44a3219b | |||
9c54e16978 | |||
395e1c2c95 | |||
d989337a9c | |||
7dbfdd9cbf | |||
6605220f4a | |||
d0440dcc56 | |||
4640cc528c | |||
94e03d045b | |||
b6a66cf96e | |||
91f44d29f7 | |||
9152da34c9 | |||
e49cd5d470 | |||
02c148ccbd | |||
5216ec40f4 | |||
65e67f661b | |||
adfda72398 | |||
5f320087f0 | |||
86c0c1b68b | |||
07cc177a95 | |||
40299b00fc | |||
1c1e048c50 | |||
084ecb46ff | |||
2b80b4151a | |||
e43468c367 | |||
1f770c01ab | |||
4d79219358 | |||
3725be1d5b | |||
5d1afd8dd4 | |||
6234ffdff1 | |||
8802f9448f | |||
31d654ef4f | |||
04894a0977 | |||
a2733d8ffb | |||
100fe7fd95 | |||
91964508d8 | |||
9d347bdfa2 | |||
93f6e01e53 | |||
03ea5ed52c | |||
78bf32bc06 | |||
4420222d7e | |||
8a3b73599a | |||
68300d78ef | |||
b3fba0449c |
1
.dockerignore
Normal file
1
.dockerignore
Normal file
@ -0,0 +1 @@
|
|||||||
|
.git
|
6
.gitignore
vendored
6
.gitignore
vendored
@ -13,3 +13,9 @@ src/build
|
|||||||
*.err
|
*.err
|
||||||
*.log
|
*.log
|
||||||
i2pbrowser/
|
i2pbrowser/
|
||||||
|
/i2pbrowser*.deb
|
||||||
|
/i2pbrowser*.rpm
|
||||||
|
/logs
|
||||||
|
/*.jar
|
||||||
|
/*.msi
|
||||||
|
/*.exe
|
53
CHANGES.html
53
CHANGES.html
@ -97,6 +97,16 @@
|
|||||||
LICENSE
|
LICENSE
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="PACKAGES.html">
|
||||||
|
PACKAGES
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="RELEASES.html">
|
||||||
|
RELEASES
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a href="TODO.html">
|
<a href="TODO.html">
|
||||||
TODO
|
TODO
|
||||||
@ -118,6 +128,49 @@
|
|||||||
<a id="returnhome" href="/">
|
<a id="returnhome" href="/">
|
||||||
/
|
/
|
||||||
</a>
|
</a>
|
||||||
|
<h2>
|
||||||
|
<a href="#tue-september-6" rel="nofollow">
|
||||||
|
<span></span>
|
||||||
|
</a>
|
||||||
|
Tue, September 6
|
||||||
|
</h2>
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
Run headlessly on first-run on Windows.
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
Add support for building an .exe package.
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
Add support for building an .zip Windows portable package.
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
Add support for building an .rpm package.
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
Destroy headless process if it goes too long.
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
<h2>
|
||||||
|
<a href="#mon-september-5" rel="nofollow">
|
||||||
|
<span></span>
|
||||||
|
</a>
|
||||||
|
Mon, September 5
|
||||||
|
</h2>
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
Fix several issues with running on Windows 11
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
Make tunnel nicknames different to avoid double shared tunnels
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
Add support for building a .deb package.
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
Add support for building an .msi package.
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
<h2>
|
<h2>
|
||||||
<a href="#fri-september-2" rel="nofollow">
|
<a href="#fri-september-2" rel="nofollow">
|
||||||
<span></span>
|
<span></span>
|
||||||
|
17
CHANGES.md
17
CHANGES.md
@ -1,3 +1,20 @@
|
|||||||
|
Tue, September 6
|
||||||
|
----------------
|
||||||
|
|
||||||
|
- Run headlessly on first-run on Windows.
|
||||||
|
- Add support for building an .exe package.
|
||||||
|
- Add support for building an .zip Windows portable package.
|
||||||
|
- Add support for building an .rpm package.
|
||||||
|
- Destroy headless process if it goes too long.
|
||||||
|
|
||||||
|
Mon, September 5
|
||||||
|
----------------
|
||||||
|
|
||||||
|
- Fix several issues with running on Windows 11
|
||||||
|
- Make tunnel nicknames different to avoid double shared tunnels
|
||||||
|
- Add support for building a .deb package.
|
||||||
|
- Add support for building an .msi package.
|
||||||
|
|
||||||
Fri, September 2
|
Fri, September 2
|
||||||
----------------
|
----------------
|
||||||
|
|
||||||
|
6
Dockerfile
Normal file
6
Dockerfile
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
FROM fedora
|
||||||
|
RUN yum -y update
|
||||||
|
RUN yum -y install rpm-build
|
||||||
|
ADD . /src/i2p.plugins.firefox
|
||||||
|
WORKDIR /src/i2p.plugins.firefox
|
||||||
|
CMD ./fedora-docker.sh
|
@ -97,6 +97,16 @@
|
|||||||
LICENSE
|
LICENSE
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="PACKAGES.html">
|
||||||
|
PACKAGES
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="RELEASES.html">
|
||||||
|
RELEASES
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a href="TODO.html">
|
<a href="TODO.html">
|
||||||
TODO
|
TODO
|
||||||
|
@ -97,6 +97,16 @@
|
|||||||
LICENSE
|
LICENSE
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="PACKAGES.html">
|
||||||
|
PACKAGES
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="RELEASES.html">
|
||||||
|
RELEASES
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a href="TODO.html">
|
<a href="TODO.html">
|
||||||
TODO
|
TODO
|
||||||
@ -149,6 +159,8 @@
|
|||||||
<p>
|
<p>
|
||||||
Author: idk
|
Author: idk
|
||||||
<br>
|
<br>
|
||||||
|
Parent class: I2PCommonBrowser
|
||||||
|
<br>
|
||||||
package: net.i2p.i2pfirefox
|
package: net.i2p.i2pfirefox
|
||||||
</p>
|
</p>
|
||||||
<h2>
|
<h2>
|
||||||
@ -537,7 +549,7 @@
|
|||||||
<span></span>
|
<span></span>
|
||||||
</a>
|
</a>
|
||||||
launch
|
launch
|
||||||
<a href="src/java/net/i2p/i2pfirefox/I2PBrowser.java#L156" rel="nofollow">
|
<a href="src/java/net/i2p/i2pfirefox/I2PBrowser.java#L157" rel="nofollow">
|
||||||
[src]
|
[src]
|
||||||
</a>
|
</a>
|
||||||
</h3>
|
</h3>
|
||||||
@ -567,7 +579,7 @@
|
|||||||
<span></span>
|
<span></span>
|
||||||
</a>
|
</a>
|
||||||
launch
|
launch
|
||||||
<a href="src/java/net/i2p/i2pfirefox/I2PBrowser.java#L165" rel="nofollow">
|
<a href="src/java/net/i2p/i2pfirefox/I2PBrowser.java#L166" rel="nofollow">
|
||||||
[src]
|
[src]
|
||||||
</a>
|
</a>
|
||||||
</h3>
|
</h3>
|
||||||
@ -593,7 +605,7 @@
|
|||||||
<span></span>
|
<span></span>
|
||||||
</a>
|
</a>
|
||||||
ValidURL
|
ValidURL
|
||||||
<a href="src/java/net/i2p/i2pfirefox/I2PBrowser.java#L167" rel="nofollow">
|
<a href="src/java/net/i2p/i2pfirefox/I2PBrowser.java#L168" rel="nofollow">
|
||||||
[src]
|
[src]
|
||||||
</a>
|
</a>
|
||||||
</h3>
|
</h3>
|
||||||
@ -626,7 +638,7 @@
|
|||||||
<span></span>
|
<span></span>
|
||||||
</a>
|
</a>
|
||||||
main
|
main
|
||||||
<a href="src/java/net/i2p/i2pfirefox/I2PBrowser.java#L177" rel="nofollow">
|
<a href="src/java/net/i2p/i2pfirefox/I2PBrowser.java#L178" rel="nofollow">
|
||||||
[src]
|
[src]
|
||||||
</a>
|
</a>
|
||||||
</h3>
|
</h3>
|
||||||
|
@ -7,6 +7,7 @@ Description:
|
|||||||
> I2PBrowser.java Copyright C 2022 idk <hankhill19580@gmail.com> This program is free software: you can redistribute it and/or modify it under the terms of the MIT License. See LICENSE.md for details. This program is distributed in the hope that it will be useful but WITHOUT ANY WARRANTY without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. @description I2PBrowser is a that is used to open a browser window to the I2P network. It automatically detects the operating system and available browsers and selects the best one to use with Tor Browser at the top for Firefox and Brave at the top for Chrome.
|
> I2PBrowser.java Copyright C 2022 idk <hankhill19580@gmail.com> This program is free software: you can redistribute it and/or modify it under the terms of the MIT License. See LICENSE.md for details. This program is distributed in the hope that it will be useful but WITHOUT ANY WARRANTY without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. @description I2PBrowser is a that is used to open a browser window to the I2P network. It automatically detects the operating system and available browsers and selects the best one to use with Tor Browser at the top for Firefox and Brave at the top for Chrome.
|
||||||
|
|
||||||
Author: idk
|
Author: idk
|
||||||
|
Parent class: I2PCommonBrowser
|
||||||
package: net.i2p.i2pfirefox
|
package: net.i2p.i2pfirefox
|
||||||
|
|
||||||
## Dependencies
|
## Dependencies
|
||||||
@ -152,7 +153,7 @@ This method has no parameters.
|
|||||||
| url | String[] | |
|
| url | String[] | |
|
||||||
|
|
||||||
|
|
||||||
### launch [[src]](src/java/net/i2p/i2pfirefox/I2PBrowser.java#L156)
|
### launch [[src]](src/java/net/i2p/i2pfirefox/I2PBrowser.java#L157)
|
||||||
|
|
||||||
+ Description: Populates a profile directory with a proxy configuration. Waits for an HTTP proxy on the port 4444 to be ready. Launches either Firefox or Chromium with the profile directory.
|
+ Description: Populates a profile directory with a proxy configuration. Waits for an HTTP proxy on the port 4444 to be ready. Launches either Firefox or Chromium with the profile directory.
|
||||||
+ Access: public
|
+ Access: public
|
||||||
@ -163,7 +164,7 @@ This method has no parameters.
|
|||||||
| privateWindow | boolean | |
|
| privateWindow | boolean | |
|
||||||
|
|
||||||
|
|
||||||
### launch [[src]](src/java/net/i2p/i2pfirefox/I2PBrowser.java#L165)
|
### launch [[src]](src/java/net/i2p/i2pfirefox/I2PBrowser.java#L166)
|
||||||
|
|
||||||
+ Description: Populates a profile directory with a proxy configuration. Waits for an HTTP proxy on the port 4444 to be ready. Launches either Firefox or Chromium with the profile directory.
|
+ Description: Populates a profile directory with a proxy configuration. Waits for an HTTP proxy on the port 4444 to be ready. Launches either Firefox or Chromium with the profile directory.
|
||||||
+ Access: public
|
+ Access: public
|
||||||
@ -172,7 +173,7 @@ This method has no parameters.
|
|||||||
This method has no parameters.
|
This method has no parameters.
|
||||||
|
|
||||||
|
|
||||||
### ValidURL [[src]](src/java/net/i2p/i2pfirefox/I2PBrowser.java#L167)
|
### ValidURL [[src]](src/java/net/i2p/i2pfirefox/I2PBrowser.java#L168)
|
||||||
|
|
||||||
+ Description:
|
+ Description:
|
||||||
+ Access: private
|
+ Access: private
|
||||||
@ -184,7 +185,7 @@ This method has no parameters.
|
|||||||
| inUrl | String | |
|
| inUrl | String | |
|
||||||
|
|
||||||
|
|
||||||
### main [[src]](src/java/net/i2p/i2pfirefox/I2PBrowser.java#L177)
|
### main [[src]](src/java/net/i2p/i2pfirefox/I2PBrowser.java#L178)
|
||||||
|
|
||||||
+ Description:
|
+ Description:
|
||||||
+ Access: public
|
+ Access: public
|
||||||
|
@ -97,6 +97,16 @@
|
|||||||
LICENSE
|
LICENSE
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="PACKAGES.html">
|
||||||
|
PACKAGES
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="RELEASES.html">
|
||||||
|
RELEASES
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a href="TODO.html">
|
<a href="TODO.html">
|
||||||
TODO
|
TODO
|
||||||
@ -149,6 +159,8 @@
|
|||||||
<p>
|
<p>
|
||||||
Author: idk
|
Author: idk
|
||||||
<br>
|
<br>
|
||||||
|
Parent class: I2PCommonBrowser
|
||||||
|
<br>
|
||||||
package: net.i2p.i2pfirefox
|
package: net.i2p.i2pfirefox
|
||||||
</p>
|
</p>
|
||||||
<h2>
|
<h2>
|
||||||
@ -679,7 +691,7 @@
|
|||||||
<span></span>
|
<span></span>
|
||||||
</a>
|
</a>
|
||||||
processBuilder
|
processBuilder
|
||||||
<a href="src/java/net/i2p/i2pfirefox/I2PChromium.java#L397" rel="nofollow">
|
<a href="src/java/net/i2p/i2pfirefox/I2PChromium.java#L399" rel="nofollow">
|
||||||
[src]
|
[src]
|
||||||
</a>
|
</a>
|
||||||
</h3>
|
</h3>
|
||||||
@ -709,7 +721,7 @@
|
|||||||
<span></span>
|
<span></span>
|
||||||
</a>
|
</a>
|
||||||
waitForProxy
|
waitForProxy
|
||||||
<a href="src/java/net/i2p/i2pfirefox/I2PChromium.java#L486" rel="nofollow">
|
<a href="src/java/net/i2p/i2pfirefox/I2PChromium.java#L493" rel="nofollow">
|
||||||
[src]
|
[src]
|
||||||
</a>
|
</a>
|
||||||
</h3>
|
</h3>
|
||||||
@ -735,7 +747,7 @@
|
|||||||
<span></span>
|
<span></span>
|
||||||
</a>
|
</a>
|
||||||
waitForProxy
|
waitForProxy
|
||||||
<a href="src/java/net/i2p/i2pfirefox/I2PChromium.java#L496" rel="nofollow">
|
<a href="src/java/net/i2p/i2pfirefox/I2PChromium.java#L503" rel="nofollow">
|
||||||
[src]
|
[src]
|
||||||
</a>
|
</a>
|
||||||
</h3>
|
</h3>
|
||||||
@ -765,7 +777,7 @@
|
|||||||
<span></span>
|
<span></span>
|
||||||
</a>
|
</a>
|
||||||
waitForProxy
|
waitForProxy
|
||||||
<a href="src/java/net/i2p/i2pfirefox/I2PChromium.java#L508" rel="nofollow">
|
<a href="src/java/net/i2p/i2pfirefox/I2PChromium.java#L515" rel="nofollow">
|
||||||
[src]
|
[src]
|
||||||
</a>
|
</a>
|
||||||
</h3>
|
</h3>
|
||||||
@ -797,7 +809,7 @@
|
|||||||
<span></span>
|
<span></span>
|
||||||
</a>
|
</a>
|
||||||
waitForProxy
|
waitForProxy
|
||||||
<a href="src/java/net/i2p/i2pfirefox/I2PChromium.java#L521" rel="nofollow">
|
<a href="src/java/net/i2p/i2pfirefox/I2PChromium.java#L528" rel="nofollow">
|
||||||
[src]
|
[src]
|
||||||
</a>
|
</a>
|
||||||
</h3>
|
</h3>
|
||||||
@ -831,7 +843,7 @@
|
|||||||
<span></span>
|
<span></span>
|
||||||
</a>
|
</a>
|
||||||
checkifPortIsOccupied
|
checkifPortIsOccupied
|
||||||
<a href="src/java/net/i2p/i2pfirefox/I2PChromium.java#L534" rel="nofollow">
|
<a href="src/java/net/i2p/i2pfirefox/I2PChromium.java#L541" rel="nofollow">
|
||||||
[src]
|
[src]
|
||||||
</a>
|
</a>
|
||||||
</h3>
|
</h3>
|
||||||
@ -863,7 +875,7 @@
|
|||||||
<span></span>
|
<span></span>
|
||||||
</a>
|
</a>
|
||||||
launchAndDetatch
|
launchAndDetatch
|
||||||
<a href="src/java/net/i2p/i2pfirefox/I2PChromium.java#L544" rel="nofollow">
|
<a href="src/java/net/i2p/i2pfirefox/I2PChromium.java#L551" rel="nofollow">
|
||||||
[src]
|
[src]
|
||||||
</a>
|
</a>
|
||||||
</h3>
|
</h3>
|
||||||
@ -895,7 +907,7 @@
|
|||||||
<span></span>
|
<span></span>
|
||||||
</a>
|
</a>
|
||||||
launch
|
launch
|
||||||
<a href="src/java/net/i2p/i2pfirefox/I2PChromium.java#L589" rel="nofollow">
|
<a href="src/java/net/i2p/i2pfirefox/I2PChromium.java#L598" rel="nofollow">
|
||||||
[src]
|
[src]
|
||||||
</a>
|
</a>
|
||||||
</h3>
|
</h3>
|
||||||
@ -927,7 +939,7 @@
|
|||||||
<span></span>
|
<span></span>
|
||||||
</a>
|
</a>
|
||||||
launch
|
launch
|
||||||
<a href="src/java/net/i2p/i2pfirefox/I2PChromium.java#L612" rel="nofollow">
|
<a href="src/java/net/i2p/i2pfirefox/I2PChromium.java#L623" rel="nofollow">
|
||||||
[src]
|
[src]
|
||||||
</a>
|
</a>
|
||||||
</h3>
|
</h3>
|
||||||
@ -957,7 +969,7 @@
|
|||||||
<span></span>
|
<span></span>
|
||||||
</a>
|
</a>
|
||||||
launch
|
launch
|
||||||
<a href="src/java/net/i2p/i2pfirefox/I2PChromium.java#L621" rel="nofollow">
|
<a href="src/java/net/i2p/i2pfirefox/I2PChromium.java#L632" rel="nofollow">
|
||||||
[src]
|
[src]
|
||||||
</a>
|
</a>
|
||||||
</h3>
|
</h3>
|
||||||
@ -983,7 +995,7 @@
|
|||||||
<span></span>
|
<span></span>
|
||||||
</a>
|
</a>
|
||||||
ValidURL
|
ValidURL
|
||||||
<a href="src/java/net/i2p/i2pfirefox/I2PChromium.java#L623" rel="nofollow">
|
<a href="src/java/net/i2p/i2pfirefox/I2PChromium.java#L634" rel="nofollow">
|
||||||
[src]
|
[src]
|
||||||
</a>
|
</a>
|
||||||
</h3>
|
</h3>
|
||||||
@ -1016,7 +1028,7 @@
|
|||||||
<span></span>
|
<span></span>
|
||||||
</a>
|
</a>
|
||||||
main
|
main
|
||||||
<a href="src/java/net/i2p/i2pfirefox/I2PChromium.java#L633" rel="nofollow">
|
<a href="src/java/net/i2p/i2pfirefox/I2PChromium.java#L644" rel="nofollow">
|
||||||
[src]
|
[src]
|
||||||
</a>
|
</a>
|
||||||
</h3>
|
</h3>
|
||||||
@ -1049,7 +1061,7 @@
|
|||||||
<span></span>
|
<span></span>
|
||||||
</a>
|
</a>
|
||||||
sleep
|
sleep
|
||||||
<a href="src/java/net/i2p/i2pfirefox/I2PChromium.java#L658" rel="nofollow">
|
<a href="src/java/net/i2p/i2pfirefox/I2PChromium.java#L672" rel="nofollow">
|
||||||
[src]
|
[src]
|
||||||
</a>
|
</a>
|
||||||
</h3>
|
</h3>
|
||||||
|
@ -7,6 +7,7 @@ Description:
|
|||||||
> I2PChromium.java Copyright C 2022 idk <hankhill19580@gmail.com> This program is free software: you can redistribute it and/or modify it under the terms of the MIT License. See LICENSE.md for details. This program is distributed in the hope that it will be useful but WITHOUT ANY WARRANTY without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
> I2PChromium.java Copyright C 2022 idk <hankhill19580@gmail.com> This program is free software: you can redistribute it and/or modify it under the terms of the MIT License. See LICENSE.md for details. This program is distributed in the hope that it will be useful but WITHOUT ANY WARRANTY without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
|
|
||||||
Author: idk
|
Author: idk
|
||||||
|
Parent class: I2PCommonBrowser
|
||||||
package: net.i2p.i2pfirefox
|
package: net.i2p.i2pfirefox
|
||||||
|
|
||||||
## Dependencies
|
## Dependencies
|
||||||
@ -196,7 +197,7 @@ This method has no parameters.
|
|||||||
| args | String[] | the arguments to pass to the Chromium binary. |
|
| args | String[] | the arguments to pass to the Chromium binary. |
|
||||||
|
|
||||||
|
|
||||||
### processBuilder [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L397)
|
### processBuilder [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L399)
|
||||||
|
|
||||||
+ Description: Build a ProcessBuilder for the top Chromium binary and the default profile with a specific set of extended arguments.
|
+ Description: Build a ProcessBuilder for the top Chromium binary and the default profile with a specific set of extended arguments.
|
||||||
+ Access: public
|
+ Access: public
|
||||||
@ -207,7 +208,7 @@ This method has no parameters.
|
|||||||
| args | String[] | the extended arguments to pass to the Chromium binary. |
|
| args | String[] | the extended arguments to pass to the Chromium binary. |
|
||||||
|
|
||||||
|
|
||||||
### waitForProxy [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L486)
|
### waitForProxy [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L493)
|
||||||
|
|
||||||
+ Description: Waits for an HTTP proxy on port 4444 to be ready. Returns false on timeout of 200 seconds.
|
+ Description: Waits for an HTTP proxy on port 4444 to be ready. Returns false on timeout of 200 seconds.
|
||||||
+ Access: public
|
+ Access: public
|
||||||
@ -216,7 +217,7 @@ This method has no parameters.
|
|||||||
This method has no parameters.
|
This method has no parameters.
|
||||||
|
|
||||||
|
|
||||||
### waitForProxy [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L496)
|
### waitForProxy [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L503)
|
||||||
|
|
||||||
+ Description: Waits for an HTTP proxy on port 4444 to be ready. Returns false on timeout of the specified number of seconds.
|
+ Description: Waits for an HTTP proxy on port 4444 to be ready. Returns false on timeout of the specified number of seconds.
|
||||||
+ Access: public
|
+ Access: public
|
||||||
@ -227,7 +228,7 @@ This method has no parameters.
|
|||||||
| timeout | int | the number of seconds to wait for the proxy to be ready. |
|
| timeout | int | the number of seconds to wait for the proxy to be ready. |
|
||||||
|
|
||||||
|
|
||||||
### waitForProxy [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L508)
|
### waitForProxy [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L515)
|
||||||
|
|
||||||
+ Description: Waits for an HTTP proxy on the specified port to be ready. Returns false on timeout of the specified number of seconds.
|
+ Description: Waits for an HTTP proxy on the specified port to be ready. Returns false on timeout of the specified number of seconds.
|
||||||
+ Access: public
|
+ Access: public
|
||||||
@ -239,7 +240,7 @@ This method has no parameters.
|
|||||||
| port | int | the port to wait for the proxy to be ready on. |
|
| port | int | the port to wait for the proxy to be ready on. |
|
||||||
|
|
||||||
|
|
||||||
### waitForProxy [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L521)
|
### waitForProxy [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L528)
|
||||||
|
|
||||||
+ Description: Waits for an HTTP proxy on the specified port to be ready. Returns false on timeout of the specified number of seconds.
|
+ Description: Waits for an HTTP proxy on the specified port to be ready. Returns false on timeout of the specified number of seconds.
|
||||||
+ Access: public
|
+ Access: public
|
||||||
@ -252,7 +253,7 @@ This method has no parameters.
|
|||||||
| host | String | the host to wait for the proxy to be ready on. |
|
| host | String | the host to wait for the proxy to be ready on. |
|
||||||
|
|
||||||
|
|
||||||
### checkifPortIsOccupied [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L534)
|
### checkifPortIsOccupied [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L541)
|
||||||
|
|
||||||
+ Description:
|
+ Description:
|
||||||
+ Access: private
|
+ Access: private
|
||||||
@ -264,7 +265,7 @@ This method has no parameters.
|
|||||||
| host | String | |
|
| host | String | |
|
||||||
|
|
||||||
|
|
||||||
### launchAndDetatch [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L544)
|
### launchAndDetatch [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L551)
|
||||||
|
|
||||||
+ Description:
|
+ Description:
|
||||||
+ Access: public
|
+ Access: public
|
||||||
@ -276,7 +277,7 @@ This method has no parameters.
|
|||||||
| url | String[] | |
|
| url | String[] | |
|
||||||
|
|
||||||
|
|
||||||
### launch [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L589)
|
### launch [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L598)
|
||||||
|
|
||||||
+ Description: Populates a profile directory with a proxy configuration. Waits for an HTTP proxy on the port 4444 to be ready. Launches Chromium with the profile directory.
|
+ Description: Populates a profile directory with a proxy configuration. Waits for an HTTP proxy on the port 4444 to be ready. Launches Chromium with the profile directory.
|
||||||
+ Access: public
|
+ Access: public
|
||||||
@ -288,7 +289,7 @@ This method has no parameters.
|
|||||||
| url | String[] | |
|
| url | String[] | |
|
||||||
|
|
||||||
|
|
||||||
### launch [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L612)
|
### launch [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L623)
|
||||||
|
|
||||||
+ Description: Populates a profile directory with a proxy configuration. Waits for an HTTP proxy on the port 4444 to be ready. Launches Chromium with the profile directory.
|
+ Description: Populates a profile directory with a proxy configuration. Waits for an HTTP proxy on the port 4444 to be ready. Launches Chromium with the profile directory.
|
||||||
+ Access: public
|
+ Access: public
|
||||||
@ -299,7 +300,7 @@ This method has no parameters.
|
|||||||
| privateWindow | boolean | |
|
| privateWindow | boolean | |
|
||||||
|
|
||||||
|
|
||||||
### launch [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L621)
|
### launch [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L632)
|
||||||
|
|
||||||
+ Description: Populates a profile directory with a proxy configuration. Waits for an HTTP proxy on the port 4444 to be ready. Launches Chromium with the profile directory.
|
+ Description: Populates a profile directory with a proxy configuration. Waits for an HTTP proxy on the port 4444 to be ready. Launches Chromium with the profile directory.
|
||||||
+ Access: public
|
+ Access: public
|
||||||
@ -308,7 +309,7 @@ This method has no parameters.
|
|||||||
This method has no parameters.
|
This method has no parameters.
|
||||||
|
|
||||||
|
|
||||||
### ValidURL [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L623)
|
### ValidURL [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L634)
|
||||||
|
|
||||||
+ Description:
|
+ Description:
|
||||||
+ Access: private
|
+ Access: private
|
||||||
@ -320,7 +321,7 @@ This method has no parameters.
|
|||||||
| inUrl | String | |
|
| inUrl | String | |
|
||||||
|
|
||||||
|
|
||||||
### main [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L633)
|
### main [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L644)
|
||||||
|
|
||||||
+ Description:
|
+ Description:
|
||||||
+ Access: public
|
+ Access: public
|
||||||
@ -332,7 +333,7 @@ This method has no parameters.
|
|||||||
| args | String[] | |
|
| args | String[] | |
|
||||||
|
|
||||||
|
|
||||||
### sleep [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L658)
|
### sleep [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L672)
|
||||||
|
|
||||||
+ Description:
|
+ Description:
|
||||||
+ Access: private
|
+ Access: private
|
||||||
|
@ -97,6 +97,16 @@
|
|||||||
LICENSE
|
LICENSE
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="PACKAGES.html">
|
||||||
|
PACKAGES
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="RELEASES.html">
|
||||||
|
RELEASES
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a href="TODO.html">
|
<a href="TODO.html">
|
||||||
TODO
|
TODO
|
||||||
|
@ -97,6 +97,16 @@
|
|||||||
LICENSE
|
LICENSE
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="PACKAGES.html">
|
||||||
|
PACKAGES
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="RELEASES.html">
|
||||||
|
RELEASES
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a href="TODO.html">
|
<a href="TODO.html">
|
||||||
TODO
|
TODO
|
||||||
@ -149,6 +159,8 @@
|
|||||||
<p>
|
<p>
|
||||||
Author: idk
|
Author: idk
|
||||||
<br>
|
<br>
|
||||||
|
Parent class: I2PCommonBrowser
|
||||||
|
<br>
|
||||||
package: net.i2p.i2pfirefox
|
package: net.i2p.i2pfirefox
|
||||||
</p>
|
</p>
|
||||||
<h2>
|
<h2>
|
||||||
|
@ -7,6 +7,7 @@ Description:
|
|||||||
> I2PChromiumProfileChecker.java Copyright C 2022 idk <hankhill19580@gmail.com> This program is free software: you can redistribute it and/or modify it under the terms of the MIT License. See LICENSE.md for details. This program is distributed in the hope that it will be useful but WITHOUT ANY WARRANTY without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. I2PChromiumProfileChecker is a that checks if the Chromium profile directory exists and is valid.
|
> I2PChromiumProfileChecker.java Copyright C 2022 idk <hankhill19580@gmail.com> This program is free software: you can redistribute it and/or modify it under the terms of the MIT License. See LICENSE.md for details. This program is distributed in the hope that it will be useful but WITHOUT ANY WARRANTY without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. I2PChromiumProfileChecker is a that checks if the Chromium profile directory exists and is valid.
|
||||||
|
|
||||||
Author: idk
|
Author: idk
|
||||||
|
Parent class: I2PCommonBrowser
|
||||||
package: net.i2p.i2pfirefox
|
package: net.i2p.i2pfirefox
|
||||||
|
|
||||||
## Dependencies
|
## Dependencies
|
||||||
|
@ -97,6 +97,16 @@
|
|||||||
LICENSE
|
LICENSE
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="PACKAGES.html">
|
||||||
|
PACKAGES
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="RELEASES.html">
|
||||||
|
RELEASES
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a href="TODO.html">
|
<a href="TODO.html">
|
||||||
TODO
|
TODO
|
||||||
|
@ -97,6 +97,16 @@
|
|||||||
LICENSE
|
LICENSE
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="PACKAGES.html">
|
||||||
|
PACKAGES
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="RELEASES.html">
|
||||||
|
RELEASES
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a href="TODO.html">
|
<a href="TODO.html">
|
||||||
TODO
|
TODO
|
||||||
@ -188,6 +198,15 @@
|
|||||||
<li>
|
<li>
|
||||||
java.nio.file.StandardCopyOption
|
java.nio.file.StandardCopyOption
|
||||||
</li>
|
</li>
|
||||||
|
<li>
|
||||||
|
java.util.logging.FileHandler
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
java.util.logging.Logger
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
java.util.logging.SimpleFormatter
|
||||||
|
</li>
|
||||||
<li>
|
<li>
|
||||||
java.util.zip.ZipEntry
|
java.util.zip.ZipEntry
|
||||||
</li>
|
</li>
|
||||||
@ -197,10 +216,10 @@
|
|||||||
</ul>
|
</ul>
|
||||||
<br>
|
<br>
|
||||||
<h2>
|
<h2>
|
||||||
<a href="#no-member-variables-in-this-class" rel="nofollow">
|
<a href="#member-variables" rel="nofollow">
|
||||||
<span></span>
|
<span></span>
|
||||||
</a>
|
</a>
|
||||||
No member variables in this class
|
Member Variables
|
||||||
</h2>
|
</h2>
|
||||||
<h2>
|
<h2>
|
||||||
<a href="#methods" rel="nofollow">
|
<a href="#methods" rel="nofollow">
|
||||||
@ -208,12 +227,132 @@
|
|||||||
</a>
|
</a>
|
||||||
Methods
|
Methods
|
||||||
</h2>
|
</h2>
|
||||||
|
<h3>
|
||||||
|
<a href="#validateuserdir-src" rel="nofollow">
|
||||||
|
<span></span>
|
||||||
|
</a>
|
||||||
|
validateUserDir
|
||||||
|
<a href="src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L52" rel="nofollow">
|
||||||
|
[src]
|
||||||
|
</a>
|
||||||
|
</h3>
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
Description:
|
||||||
|
<br>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
Access: public
|
||||||
|
<br>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
Modifiers: static
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
return: void
|
||||||
|
<br>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
<p>
|
||||||
|
This method has no parameters.
|
||||||
|
</p>
|
||||||
|
<h3>
|
||||||
|
<a href="#iswindows-src" rel="nofollow">
|
||||||
|
<span></span>
|
||||||
|
</a>
|
||||||
|
isWindows
|
||||||
|
<a href="src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L98" rel="nofollow">
|
||||||
|
[src]
|
||||||
|
</a>
|
||||||
|
</h3>
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
Description:
|
||||||
|
<br>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
Access: protected
|
||||||
|
<br>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
Modifiers: static
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
return: boolean
|
||||||
|
<br>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
<p>
|
||||||
|
This method has no parameters.
|
||||||
|
</p>
|
||||||
|
<h3>
|
||||||
|
<a href="#println-src" rel="nofollow">
|
||||||
|
<span></span>
|
||||||
|
</a>
|
||||||
|
println
|
||||||
|
<a href="src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L110" rel="nofollow">
|
||||||
|
[src]
|
||||||
|
</a>
|
||||||
|
</h3>
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
Description:
|
||||||
|
<br>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
Access: public
|
||||||
|
<br>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
Modifiers: static
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
return: void
|
||||||
|
<br>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
<p>
|
||||||
|
| Name | Type | Description |
|
||||||
|
<br>
|
||||||
|
| ----- | ----- | ----- |
|
||||||
|
<br>
|
||||||
|
| line | String | |
|
||||||
|
</p>
|
||||||
|
<h3>
|
||||||
|
<a href="#logfile-src" rel="nofollow">
|
||||||
|
<span></span>
|
||||||
|
</a>
|
||||||
|
logFile
|
||||||
|
<a href="src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L112" rel="nofollow">
|
||||||
|
[src]
|
||||||
|
</a>
|
||||||
|
</h3>
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
Description:
|
||||||
|
<br>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
Access: private
|
||||||
|
<br>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
Modifiers: static
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
return: File
|
||||||
|
<br>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
<p>
|
||||||
|
This method has no parameters.
|
||||||
|
</p>
|
||||||
<h3>
|
<h3>
|
||||||
<a href="#runtimedirectory-src" rel="nofollow">
|
<a href="#runtimedirectory-src" rel="nofollow">
|
||||||
<span></span>
|
<span></span>
|
||||||
</a>
|
</a>
|
||||||
runtimeDirectory
|
runtimeDirectory
|
||||||
<a href="src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L38" rel="nofollow">
|
<a href="src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L128" rel="nofollow">
|
||||||
[src]
|
[src]
|
||||||
</a>
|
</a>
|
||||||
</h3>
|
</h3>
|
||||||
@ -248,7 +387,7 @@
|
|||||||
<span></span>
|
<span></span>
|
||||||
</a>
|
</a>
|
||||||
runtimeDirectory
|
runtimeDirectory
|
||||||
<a href="src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L55" rel="nofollow">
|
<a href="src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L145" rel="nofollow">
|
||||||
[src]
|
[src]
|
||||||
</a>
|
</a>
|
||||||
</h3>
|
</h3>
|
||||||
@ -281,7 +420,7 @@
|
|||||||
<span></span>
|
<span></span>
|
||||||
</a>
|
</a>
|
||||||
profileDirectory
|
profileDirectory
|
||||||
<a href="src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L102" rel="nofollow">
|
<a href="src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L192" rel="nofollow">
|
||||||
[src]
|
[src]
|
||||||
</a>
|
</a>
|
||||||
</h3>
|
</h3>
|
||||||
@ -316,7 +455,7 @@
|
|||||||
<span></span>
|
<span></span>
|
||||||
</a>
|
</a>
|
||||||
profileDir
|
profileDir
|
||||||
<a href="src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L114" rel="nofollow">
|
<a href="src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L204" rel="nofollow">
|
||||||
[src]
|
[src]
|
||||||
</a>
|
</a>
|
||||||
</h3>
|
</h3>
|
||||||
@ -351,7 +490,7 @@
|
|||||||
<span></span>
|
<span></span>
|
||||||
</a>
|
</a>
|
||||||
unpackProfile
|
unpackProfile
|
||||||
<a href="src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L120" rel="nofollow">
|
<a href="src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L210" rel="nofollow">
|
||||||
[src]
|
[src]
|
||||||
</a>
|
</a>
|
||||||
</h3>
|
</h3>
|
||||||
@ -385,7 +524,7 @@
|
|||||||
<span></span>
|
<span></span>
|
||||||
</a>
|
</a>
|
||||||
copyDirectory
|
copyDirectory
|
||||||
<a href="src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L167" rel="nofollow">
|
<a href="src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L256" rel="nofollow">
|
||||||
[src]
|
[src]
|
||||||
</a>
|
</a>
|
||||||
</h3>
|
</h3>
|
||||||
@ -424,7 +563,7 @@
|
|||||||
<span></span>
|
<span></span>
|
||||||
</a>
|
</a>
|
||||||
copyDirectoryCompatibityMode
|
copyDirectoryCompatibityMode
|
||||||
<a href="src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L183" rel="nofollow">
|
<a href="src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L272" rel="nofollow">
|
||||||
[src]
|
[src]
|
||||||
</a>
|
</a>
|
||||||
</h3>
|
</h3>
|
||||||
@ -463,7 +602,7 @@
|
|||||||
<span></span>
|
<span></span>
|
||||||
</a>
|
</a>
|
||||||
copyFile
|
copyFile
|
||||||
<a href="src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L192" rel="nofollow">
|
<a href="src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L281" rel="nofollow">
|
||||||
[src]
|
[src]
|
||||||
</a>
|
</a>
|
||||||
</h3>
|
</h3>
|
||||||
@ -493,6 +632,39 @@
|
|||||||
<br>
|
<br>
|
||||||
| destinationFile | File | |
|
| destinationFile | File | |
|
||||||
</p>
|
</p>
|
||||||
|
<h3>
|
||||||
|
<a href="#validateprofilefirstrun-src" rel="nofollow">
|
||||||
|
<span></span>
|
||||||
|
</a>
|
||||||
|
validateProfileFirstRun
|
||||||
|
<a href="src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L292" rel="nofollow">
|
||||||
|
[src]
|
||||||
|
</a>
|
||||||
|
</h3>
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
Description:
|
||||||
|
<br>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
Access: public
|
||||||
|
<br>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
Modifiers: static
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
return: boolean
|
||||||
|
<br>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
<p>
|
||||||
|
| Name | Type | Description |
|
||||||
|
<br>
|
||||||
|
| ----- | ----- | ----- |
|
||||||
|
<br>
|
||||||
|
| profileDirectory | String | |
|
||||||
|
</p>
|
||||||
<div id="sourcecode">
|
<div id="sourcecode">
|
||||||
<span id="sourcehead">
|
<span id="sourcehead">
|
||||||
<strong>
|
<strong>
|
||||||
|
@ -24,16 +24,61 @@ package: net.i2p.i2pfirefox
|
|||||||
<li>java.io.OutputStream</li>
|
<li>java.io.OutputStream</li>
|
||||||
<li>java.nio.file.Files</li>
|
<li>java.nio.file.Files</li>
|
||||||
<li>java.nio.file.StandardCopyOption</li>
|
<li>java.nio.file.StandardCopyOption</li>
|
||||||
|
<li>java.util.logging.FileHandler</li>
|
||||||
|
<li>java.util.logging.Logger</li>
|
||||||
|
<li>java.util.logging.SimpleFormatter</li>
|
||||||
<li>java.util.zip.ZipEntry</li>
|
<li>java.util.zip.ZipEntry</li>
|
||||||
<li>java.util.zip.ZipInputStream</li>
|
<li>java.util.zip.ZipInputStream</li>
|
||||||
</ul>
|
</ul>
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
## No member variables in this class
|
## Member Variables
|
||||||
|
|
||||||
## Methods
|
## Methods
|
||||||
|
|
||||||
### runtimeDirectory [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L38)
|
### validateUserDir [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L52)
|
||||||
|
|
||||||
|
+ Description:
|
||||||
|
+ Access: public
|
||||||
|
+ Modifiers: static
|
||||||
|
+ return: void
|
||||||
|
|
||||||
|
This method has no parameters.
|
||||||
|
|
||||||
|
|
||||||
|
### isWindows [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L98)
|
||||||
|
|
||||||
|
+ Description:
|
||||||
|
+ Access: protected
|
||||||
|
+ Modifiers: static
|
||||||
|
+ return: boolean
|
||||||
|
|
||||||
|
This method has no parameters.
|
||||||
|
|
||||||
|
|
||||||
|
### println [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L110)
|
||||||
|
|
||||||
|
+ Description:
|
||||||
|
+ Access: public
|
||||||
|
+ Modifiers: static
|
||||||
|
+ return: void
|
||||||
|
|
||||||
|
| Name | Type | Description |
|
||||||
|
| ----- | ----- | ----- |
|
||||||
|
| line | String | |
|
||||||
|
|
||||||
|
|
||||||
|
### logFile [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L112)
|
||||||
|
|
||||||
|
+ Description:
|
||||||
|
+ Access: private
|
||||||
|
+ Modifiers: static
|
||||||
|
+ return: File
|
||||||
|
|
||||||
|
This method has no parameters.
|
||||||
|
|
||||||
|
|
||||||
|
### runtimeDirectory [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L128)
|
||||||
|
|
||||||
+ Description: get the runtime directory creating it if create=true
|
+ Description: get the runtime directory creating it if create=true
|
||||||
+ Access: protected
|
+ Access: protected
|
||||||
@ -46,7 +91,7 @@ package: net.i2p.i2pfirefox
|
|||||||
| override | String | |
|
| override | String | |
|
||||||
|
|
||||||
|
|
||||||
### runtimeDirectory [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L55)
|
### runtimeDirectory [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L145)
|
||||||
|
|
||||||
+ Description: get the correct runtime directory
|
+ Description: get the correct runtime directory
|
||||||
+ Access: protected
|
+ Access: protected
|
||||||
@ -58,7 +103,7 @@ package: net.i2p.i2pfirefox
|
|||||||
| override | String | |
|
| override | String | |
|
||||||
|
|
||||||
|
|
||||||
### profileDirectory [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L102)
|
### profileDirectory [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L192)
|
||||||
|
|
||||||
+ Description: get the profile directory creating it if necessary
|
+ Description: get the profile directory creating it if necessary
|
||||||
+ Access: protected
|
+ Access: protected
|
||||||
@ -71,7 +116,7 @@ package: net.i2p.i2pfirefox
|
|||||||
| browser | String | |
|
| browser | String | |
|
||||||
|
|
||||||
|
|
||||||
### profileDir [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L114)
|
### profileDir [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L204)
|
||||||
|
|
||||||
+ Description:
|
+ Description:
|
||||||
+ Access: protected
|
+ Access: protected
|
||||||
@ -84,7 +129,7 @@ package: net.i2p.i2pfirefox
|
|||||||
| browser | String | |
|
| browser | String | |
|
||||||
|
|
||||||
|
|
||||||
### unpackProfile [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L120)
|
### unpackProfile [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L210)
|
||||||
|
|
||||||
+ Description:
|
+ Description:
|
||||||
+ Access: protected
|
+ Access: protected
|
||||||
@ -97,7 +142,7 @@ package: net.i2p.i2pfirefox
|
|||||||
| base | String | |
|
| base | String | |
|
||||||
|
|
||||||
|
|
||||||
### copyDirectory [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L167)
|
### copyDirectory [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L256)
|
||||||
|
|
||||||
+ Description:
|
+ Description:
|
||||||
+ Access: protected
|
+ Access: protected
|
||||||
@ -112,7 +157,7 @@ package: net.i2p.i2pfirefox
|
|||||||
| base | String | |
|
| base | String | |
|
||||||
|
|
||||||
|
|
||||||
### copyDirectoryCompatibityMode [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L183)
|
### copyDirectoryCompatibityMode [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L272)
|
||||||
|
|
||||||
+ Description:
|
+ Description:
|
||||||
+ Access: private
|
+ Access: private
|
||||||
@ -127,7 +172,7 @@ package: net.i2p.i2pfirefox
|
|||||||
| base | String | |
|
| base | String | |
|
||||||
|
|
||||||
|
|
||||||
### copyFile [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L192)
|
### copyFile [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L281)
|
||||||
|
|
||||||
+ Description:
|
+ Description:
|
||||||
+ Access: private
|
+ Access: private
|
||||||
@ -140,3 +185,15 @@ package: net.i2p.i2pfirefox
|
|||||||
| destinationFile | File | |
|
| destinationFile | File | |
|
||||||
|
|
||||||
|
|
||||||
|
### validateProfileFirstRun [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L292)
|
||||||
|
|
||||||
|
+ Description:
|
||||||
|
+ Access: public
|
||||||
|
+ Modifiers: static
|
||||||
|
+ return: boolean
|
||||||
|
|
||||||
|
| Name | Type | Description |
|
||||||
|
| ----- | ----- | ----- |
|
||||||
|
| profileDirectory | String | |
|
||||||
|
|
||||||
|
|
||||||
|
103
I2PFirefox.html
103
I2PFirefox.html
@ -97,6 +97,16 @@
|
|||||||
LICENSE
|
LICENSE
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="PACKAGES.html">
|
||||||
|
PACKAGES
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="RELEASES.html">
|
||||||
|
RELEASES
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a href="TODO.html">
|
<a href="TODO.html">
|
||||||
TODO
|
TODO
|
||||||
@ -149,6 +159,8 @@
|
|||||||
<p>
|
<p>
|
||||||
Author: idk
|
Author: idk
|
||||||
<br>
|
<br>
|
||||||
|
Parent class: I2PCommonBrowser
|
||||||
|
<br>
|
||||||
package: net.i2p.i2pfirefox
|
package: net.i2p.i2pfirefox
|
||||||
</p>
|
</p>
|
||||||
<h2>
|
<h2>
|
||||||
@ -180,6 +192,9 @@
|
|||||||
<li>
|
<li>
|
||||||
java.util.ArrayList
|
java.util.ArrayList
|
||||||
</li>
|
</li>
|
||||||
|
<li>
|
||||||
|
java.util.concurrent.TimeUnit
|
||||||
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<br>
|
<br>
|
||||||
<h2>
|
<h2>
|
||||||
@ -272,7 +287,7 @@
|
|||||||
<span></span>
|
<span></span>
|
||||||
</a>
|
</a>
|
||||||
FIND_FIREFOX_SEARCH_PATHS_UNIX
|
FIND_FIREFOX_SEARCH_PATHS_UNIX
|
||||||
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L45" rel="nofollow">
|
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L46" rel="nofollow">
|
||||||
[src]
|
[src]
|
||||||
</a>
|
</a>
|
||||||
</h3>
|
</h3>
|
||||||
@ -301,7 +316,7 @@
|
|||||||
<span></span>
|
<span></span>
|
||||||
</a>
|
</a>
|
||||||
FIND_FIREFOX_SEARCH_PATHS_OSX
|
FIND_FIREFOX_SEARCH_PATHS_OSX
|
||||||
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L60" rel="nofollow">
|
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L61" rel="nofollow">
|
||||||
[src]
|
[src]
|
||||||
</a>
|
</a>
|
||||||
</h3>
|
</h3>
|
||||||
@ -330,7 +345,7 @@
|
|||||||
<span></span>
|
<span></span>
|
||||||
</a>
|
</a>
|
||||||
FIND_FIREFOX_SEARCH_PATHS_WINDOWS
|
FIND_FIREFOX_SEARCH_PATHS_WINDOWS
|
||||||
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L77" rel="nofollow">
|
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L78" rel="nofollow">
|
||||||
[src]
|
[src]
|
||||||
</a>
|
</a>
|
||||||
</h3>
|
</h3>
|
||||||
@ -359,7 +374,7 @@
|
|||||||
<span></span>
|
<span></span>
|
||||||
</a>
|
</a>
|
||||||
FIND_ALL_FIREFOX_SEARCH_PATHS
|
FIND_ALL_FIREFOX_SEARCH_PATHS
|
||||||
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L113" rel="nofollow">
|
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L114" rel="nofollow">
|
||||||
[src]
|
[src]
|
||||||
</a>
|
</a>
|
||||||
</h3>
|
</h3>
|
||||||
@ -388,7 +403,7 @@
|
|||||||
<span></span>
|
<span></span>
|
||||||
</a>
|
</a>
|
||||||
FIND_FIREFOX_SEARCH_PATHS
|
FIND_FIREFOX_SEARCH_PATHS
|
||||||
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L133" rel="nofollow">
|
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L134" rel="nofollow">
|
||||||
[src]
|
[src]
|
||||||
</a>
|
</a>
|
||||||
</h3>
|
</h3>
|
||||||
@ -417,7 +432,7 @@
|
|||||||
<span></span>
|
<span></span>
|
||||||
</a>
|
</a>
|
||||||
NEARBY_FIREFOX_SEARCH_PATHS
|
NEARBY_FIREFOX_SEARCH_PATHS
|
||||||
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L147" rel="nofollow">
|
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L148" rel="nofollow">
|
||||||
[src]
|
[src]
|
||||||
</a>
|
</a>
|
||||||
</h3>
|
</h3>
|
||||||
@ -446,7 +461,7 @@
|
|||||||
<span></span>
|
<span></span>
|
||||||
</a>
|
</a>
|
||||||
FIREFOX_FINDER
|
FIREFOX_FINDER
|
||||||
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L201" rel="nofollow">
|
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L204" rel="nofollow">
|
||||||
[src]
|
[src]
|
||||||
</a>
|
</a>
|
||||||
</h3>
|
</h3>
|
||||||
@ -475,7 +490,7 @@
|
|||||||
<span></span>
|
<span></span>
|
||||||
</a>
|
</a>
|
||||||
getOperatingSystem
|
getOperatingSystem
|
||||||
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L213" rel="nofollow">
|
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L216" rel="nofollow">
|
||||||
[src]
|
[src]
|
||||||
</a>
|
</a>
|
||||||
</h3>
|
</h3>
|
||||||
@ -504,7 +519,7 @@
|
|||||||
<span></span>
|
<span></span>
|
||||||
</a>
|
</a>
|
||||||
onlyValidFirefoxes
|
onlyValidFirefoxes
|
||||||
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L235" rel="nofollow">
|
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L238" rel="nofollow">
|
||||||
[src]
|
[src]
|
||||||
</a>
|
</a>
|
||||||
</h3>
|
</h3>
|
||||||
@ -530,7 +545,7 @@
|
|||||||
<span></span>
|
<span></span>
|
||||||
</a>
|
</a>
|
||||||
topFirefox
|
topFirefox
|
||||||
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L255" rel="nofollow">
|
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L258" rel="nofollow">
|
||||||
[src]
|
[src]
|
||||||
</a>
|
</a>
|
||||||
</h3>
|
</h3>
|
||||||
@ -556,7 +571,7 @@
|
|||||||
<span></span>
|
<span></span>
|
||||||
</a>
|
</a>
|
||||||
topFirefox
|
topFirefox
|
||||||
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L284" rel="nofollow">
|
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L287" rel="nofollow">
|
||||||
[src]
|
[src]
|
||||||
</a>
|
</a>
|
||||||
</h3>
|
</h3>
|
||||||
@ -586,7 +601,7 @@
|
|||||||
<span></span>
|
<span></span>
|
||||||
</a>
|
</a>
|
||||||
defaultProcessBuilder
|
defaultProcessBuilder
|
||||||
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L302" rel="nofollow">
|
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L305" rel="nofollow">
|
||||||
[src]
|
[src]
|
||||||
</a>
|
</a>
|
||||||
</h3>
|
</h3>
|
||||||
@ -612,7 +627,7 @@
|
|||||||
<span></span>
|
<span></span>
|
||||||
</a>
|
</a>
|
||||||
defaultProcessBuilder
|
defaultProcessBuilder
|
||||||
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L314" rel="nofollow">
|
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L317" rel="nofollow">
|
||||||
[src]
|
[src]
|
||||||
</a>
|
</a>
|
||||||
</h3>
|
</h3>
|
||||||
@ -642,7 +657,7 @@
|
|||||||
<span></span>
|
<span></span>
|
||||||
</a>
|
</a>
|
||||||
privateProcessBuilder
|
privateProcessBuilder
|
||||||
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L328" rel="nofollow">
|
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L331" rel="nofollow">
|
||||||
[src]
|
[src]
|
||||||
</a>
|
</a>
|
||||||
</h3>
|
</h3>
|
||||||
@ -668,7 +683,7 @@
|
|||||||
<span></span>
|
<span></span>
|
||||||
</a>
|
</a>
|
||||||
privateProcessBuilder
|
privateProcessBuilder
|
||||||
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L341" rel="nofollow">
|
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L344" rel="nofollow">
|
||||||
[src]
|
[src]
|
||||||
</a>
|
</a>
|
||||||
</h3>
|
</h3>
|
||||||
@ -693,12 +708,42 @@
|
|||||||
<br>
|
<br>
|
||||||
| args | String[] | the arguments to pass to the Firefox binary |
|
| args | String[] | the arguments to pass to the Firefox binary |
|
||||||
</p>
|
</p>
|
||||||
|
<h3>
|
||||||
|
<a href="#headlessprocessbuilder-src" rel="nofollow">
|
||||||
|
<span></span>
|
||||||
|
</a>
|
||||||
|
headlessProcessBuilder
|
||||||
|
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L366" rel="nofollow">
|
||||||
|
[src]
|
||||||
|
</a>
|
||||||
|
</h3>
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
Description: Build a ProcessBuilder for the top Firefox binary and the default profile. Pass the --headless flag to open without a window.
|
||||||
|
<br>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
Access: public
|
||||||
|
<br>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
return: ProcessBuilder
|
||||||
|
<br>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
<p>
|
||||||
|
| Name | Type | Description |
|
||||||
|
<br>
|
||||||
|
| ----- | ----- | ----- |
|
||||||
|
<br>
|
||||||
|
| args | String[] | the arguments to pass to the Firefox binary |
|
||||||
|
</p>
|
||||||
<h3>
|
<h3>
|
||||||
<a href="#processbuilder-src" rel="nofollow">
|
<a href="#processbuilder-src" rel="nofollow">
|
||||||
<span></span>
|
<span></span>
|
||||||
</a>
|
</a>
|
||||||
processBuilder
|
processBuilder
|
||||||
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L362" rel="nofollow">
|
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L389" rel="nofollow">
|
||||||
[src]
|
[src]
|
||||||
</a>
|
</a>
|
||||||
</h3>
|
</h3>
|
||||||
@ -728,7 +773,7 @@
|
|||||||
<span></span>
|
<span></span>
|
||||||
</a>
|
</a>
|
||||||
waitForProxy
|
waitForProxy
|
||||||
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L389" rel="nofollow">
|
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L422" rel="nofollow">
|
||||||
[src]
|
[src]
|
||||||
</a>
|
</a>
|
||||||
</h3>
|
</h3>
|
||||||
@ -754,7 +799,7 @@
|
|||||||
<span></span>
|
<span></span>
|
||||||
</a>
|
</a>
|
||||||
waitForProxy
|
waitForProxy
|
||||||
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L399" rel="nofollow">
|
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L432" rel="nofollow">
|
||||||
[src]
|
[src]
|
||||||
</a>
|
</a>
|
||||||
</h3>
|
</h3>
|
||||||
@ -784,7 +829,7 @@
|
|||||||
<span></span>
|
<span></span>
|
||||||
</a>
|
</a>
|
||||||
waitForProxy
|
waitForProxy
|
||||||
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L411" rel="nofollow">
|
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L444" rel="nofollow">
|
||||||
[src]
|
[src]
|
||||||
</a>
|
</a>
|
||||||
</h3>
|
</h3>
|
||||||
@ -816,7 +861,7 @@
|
|||||||
<span></span>
|
<span></span>
|
||||||
</a>
|
</a>
|
||||||
waitForProxy
|
waitForProxy
|
||||||
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L424" rel="nofollow">
|
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L457" rel="nofollow">
|
||||||
[src]
|
[src]
|
||||||
</a>
|
</a>
|
||||||
</h3>
|
</h3>
|
||||||
@ -850,7 +895,7 @@
|
|||||||
<span></span>
|
<span></span>
|
||||||
</a>
|
</a>
|
||||||
checkifPortIsOccupied
|
checkifPortIsOccupied
|
||||||
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L437" rel="nofollow">
|
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L471" rel="nofollow">
|
||||||
[src]
|
[src]
|
||||||
</a>
|
</a>
|
||||||
</h3>
|
</h3>
|
||||||
@ -882,7 +927,7 @@
|
|||||||
<span></span>
|
<span></span>
|
||||||
</a>
|
</a>
|
||||||
usabilityMode
|
usabilityMode
|
||||||
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L447" rel="nofollow">
|
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L481" rel="nofollow">
|
||||||
[src]
|
[src]
|
||||||
</a>
|
</a>
|
||||||
</h3>
|
</h3>
|
||||||
@ -908,7 +953,7 @@
|
|||||||
<span></span>
|
<span></span>
|
||||||
</a>
|
</a>
|
||||||
launchAndDetatch
|
launchAndDetatch
|
||||||
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L454" rel="nofollow">
|
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L488" rel="nofollow">
|
||||||
[src]
|
[src]
|
||||||
</a>
|
</a>
|
||||||
</h3>
|
</h3>
|
||||||
@ -940,7 +985,7 @@
|
|||||||
<span></span>
|
<span></span>
|
||||||
</a>
|
</a>
|
||||||
launch
|
launch
|
||||||
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L500" rel="nofollow">
|
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L560" rel="nofollow">
|
||||||
[src]
|
[src]
|
||||||
</a>
|
</a>
|
||||||
</h3>
|
</h3>
|
||||||
@ -972,7 +1017,7 @@
|
|||||||
<span></span>
|
<span></span>
|
||||||
</a>
|
</a>
|
||||||
launch
|
launch
|
||||||
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L522" rel="nofollow">
|
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L584" rel="nofollow">
|
||||||
[src]
|
[src]
|
||||||
</a>
|
</a>
|
||||||
</h3>
|
</h3>
|
||||||
@ -1002,7 +1047,7 @@
|
|||||||
<span></span>
|
<span></span>
|
||||||
</a>
|
</a>
|
||||||
launch
|
launch
|
||||||
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L532" rel="nofollow">
|
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L594" rel="nofollow">
|
||||||
[src]
|
[src]
|
||||||
</a>
|
</a>
|
||||||
</h3>
|
</h3>
|
||||||
@ -1028,7 +1073,7 @@
|
|||||||
<span></span>
|
<span></span>
|
||||||
</a>
|
</a>
|
||||||
ValidURL
|
ValidURL
|
||||||
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L534" rel="nofollow">
|
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L596" rel="nofollow">
|
||||||
[src]
|
[src]
|
||||||
</a>
|
</a>
|
||||||
</h3>
|
</h3>
|
||||||
@ -1061,7 +1106,7 @@
|
|||||||
<span></span>
|
<span></span>
|
||||||
</a>
|
</a>
|
||||||
main
|
main
|
||||||
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L545" rel="nofollow">
|
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L607" rel="nofollow">
|
||||||
[src]
|
[src]
|
||||||
</a>
|
</a>
|
||||||
</h3>
|
</h3>
|
||||||
@ -1094,7 +1139,7 @@
|
|||||||
<span></span>
|
<span></span>
|
||||||
</a>
|
</a>
|
||||||
sleep
|
sleep
|
||||||
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L571" rel="nofollow">
|
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L636" rel="nofollow">
|
||||||
[src]
|
[src]
|
||||||
</a>
|
</a>
|
||||||
</h3>
|
</h3>
|
||||||
|
@ -7,6 +7,7 @@ Description:
|
|||||||
> I2PFirefox.java Copyright C 2022 idk <hankhill19580@gmail.com> This program is free software: you can redistribute it and/or modify it under the terms of the MIT License. See LICENSE.md for details. This program is distributed in the hope that it will be useful but WITHOUT ANY WARRANTY without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
> I2PFirefox.java Copyright C 2022 idk <hankhill19580@gmail.com> This program is free software: you can redistribute it and/or modify it under the terms of the MIT License. See LICENSE.md for details. This program is distributed in the hope that it will be useful but WITHOUT ANY WARRANTY without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
|
|
||||||
Author: idk
|
Author: idk
|
||||||
|
Parent class: I2PCommonBrowser
|
||||||
package: net.i2p.i2pfirefox
|
package: net.i2p.i2pfirefox
|
||||||
|
|
||||||
## Dependencies
|
## Dependencies
|
||||||
@ -20,6 +21,7 @@ package: net.i2p.i2pfirefox
|
|||||||
<li>java.io.IOException</li>
|
<li>java.io.IOException</li>
|
||||||
<li>java.net.Socket</li>
|
<li>java.net.Socket</li>
|
||||||
<li>java.util.ArrayList</li>
|
<li>java.util.ArrayList</li>
|
||||||
|
<li>java.util.concurrent.TimeUnit</li>
|
||||||
</ul>
|
</ul>
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
@ -54,7 +56,7 @@ package: net.i2p.i2pfirefox
|
|||||||
|
|
||||||
## Methods
|
## Methods
|
||||||
|
|
||||||
### FIND_FIREFOX_SEARCH_PATHS_UNIX [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L45)
|
### FIND_FIREFOX_SEARCH_PATHS_UNIX [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L46)
|
||||||
|
|
||||||
+ Description:
|
+ Description:
|
||||||
+ Access: private
|
+ Access: private
|
||||||
@ -64,7 +66,7 @@ package: net.i2p.i2pfirefox
|
|||||||
This method has no parameters.
|
This method has no parameters.
|
||||||
|
|
||||||
|
|
||||||
### FIND_FIREFOX_SEARCH_PATHS_OSX [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L60)
|
### FIND_FIREFOX_SEARCH_PATHS_OSX [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L61)
|
||||||
|
|
||||||
+ Description:
|
+ Description:
|
||||||
+ Access: private
|
+ Access: private
|
||||||
@ -74,7 +76,7 @@ This method has no parameters.
|
|||||||
This method has no parameters.
|
This method has no parameters.
|
||||||
|
|
||||||
|
|
||||||
### FIND_FIREFOX_SEARCH_PATHS_WINDOWS [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L77)
|
### FIND_FIREFOX_SEARCH_PATHS_WINDOWS [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L78)
|
||||||
|
|
||||||
+ Description:
|
+ Description:
|
||||||
+ Access: private
|
+ Access: private
|
||||||
@ -84,7 +86,7 @@ This method has no parameters.
|
|||||||
This method has no parameters.
|
This method has no parameters.
|
||||||
|
|
||||||
|
|
||||||
### FIND_ALL_FIREFOX_SEARCH_PATHS [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L113)
|
### FIND_ALL_FIREFOX_SEARCH_PATHS [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L114)
|
||||||
|
|
||||||
+ Description:
|
+ Description:
|
||||||
+ Access: private
|
+ Access: private
|
||||||
@ -94,7 +96,7 @@ This method has no parameters.
|
|||||||
This method has no parameters.
|
This method has no parameters.
|
||||||
|
|
||||||
|
|
||||||
### FIND_FIREFOX_SEARCH_PATHS [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L133)
|
### FIND_FIREFOX_SEARCH_PATHS [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L134)
|
||||||
|
|
||||||
+ Description:
|
+ Description:
|
||||||
+ Access: private
|
+ Access: private
|
||||||
@ -104,7 +106,7 @@ This method has no parameters.
|
|||||||
This method has no parameters.
|
This method has no parameters.
|
||||||
|
|
||||||
|
|
||||||
### NEARBY_FIREFOX_SEARCH_PATHS [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L147)
|
### NEARBY_FIREFOX_SEARCH_PATHS [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L148)
|
||||||
|
|
||||||
+ Description:
|
+ Description:
|
||||||
+ Access: private
|
+ Access: private
|
||||||
@ -114,7 +116,7 @@ This method has no parameters.
|
|||||||
This method has no parameters.
|
This method has no parameters.
|
||||||
|
|
||||||
|
|
||||||
### FIREFOX_FINDER [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L201)
|
### FIREFOX_FINDER [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L204)
|
||||||
|
|
||||||
+ Description:
|
+ Description:
|
||||||
+ Access: private
|
+ Access: private
|
||||||
@ -124,7 +126,7 @@ This method has no parameters.
|
|||||||
This method has no parameters.
|
This method has no parameters.
|
||||||
|
|
||||||
|
|
||||||
### getOperatingSystem [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L213)
|
### getOperatingSystem [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L216)
|
||||||
|
|
||||||
+ Description:
|
+ Description:
|
||||||
+ Access: private
|
+ Access: private
|
||||||
@ -134,7 +136,7 @@ This method has no parameters.
|
|||||||
This method has no parameters.
|
This method has no parameters.
|
||||||
|
|
||||||
|
|
||||||
### onlyValidFirefoxes [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L235)
|
### onlyValidFirefoxes [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L238)
|
||||||
|
|
||||||
+ Description: Check our list of firefox paths for a valid firefox binary. Just an existence check for now but should check versions in the future.
|
+ Description: Check our list of firefox paths for a valid firefox binary. Just an existence check for now but should check versions in the future.
|
||||||
+ Access: public
|
+ Access: public
|
||||||
@ -143,7 +145,7 @@ This method has no parameters.
|
|||||||
This method has no parameters.
|
This method has no parameters.
|
||||||
|
|
||||||
|
|
||||||
### topFirefox [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L255)
|
### topFirefox [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L258)
|
||||||
|
|
||||||
+ Description: Return the best available Firefox from the list of Firefoxes we have.
|
+ Description: Return the best available Firefox from the list of Firefoxes we have.
|
||||||
+ Access: public
|
+ Access: public
|
||||||
@ -152,7 +154,7 @@ This method has no parameters.
|
|||||||
This method has no parameters.
|
This method has no parameters.
|
||||||
|
|
||||||
|
|
||||||
### topFirefox [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L284)
|
### topFirefox [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L287)
|
||||||
|
|
||||||
+ Description: Return the best available Firefox from the list of Firefoxes we have. if override is passed it will be validated and if it validates it will be used.
|
+ Description: Return the best available Firefox from the list of Firefoxes we have. if override is passed it will be validated and if it validates it will be used.
|
||||||
+ Access: public
|
+ Access: public
|
||||||
@ -163,7 +165,7 @@ This method has no parameters.
|
|||||||
| overrideFirefox | String | |
|
| overrideFirefox | String | |
|
||||||
|
|
||||||
|
|
||||||
### defaultProcessBuilder [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L302)
|
### defaultProcessBuilder [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L305)
|
||||||
|
|
||||||
+ Description: Build a ProcessBuilder for the top Firefox binary and the default profile.
|
+ Description: Build a ProcessBuilder for the top Firefox binary and the default profile.
|
||||||
+ Access: public
|
+ Access: public
|
||||||
@ -172,7 +174,7 @@ This method has no parameters.
|
|||||||
This method has no parameters.
|
This method has no parameters.
|
||||||
|
|
||||||
|
|
||||||
### defaultProcessBuilder [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L314)
|
### defaultProcessBuilder [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L317)
|
||||||
|
|
||||||
+ Description: Build a ProcessBuilder for the top Firefox binary and the default profile.
|
+ Description: Build a ProcessBuilder for the top Firefox binary and the default profile.
|
||||||
+ Access: public
|
+ Access: public
|
||||||
@ -183,7 +185,7 @@ This method has no parameters.
|
|||||||
| args | String[] | the args to pass to the Firefox binary |
|
| args | String[] | the args to pass to the Firefox binary |
|
||||||
|
|
||||||
|
|
||||||
### privateProcessBuilder [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L328)
|
### privateProcessBuilder [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L331)
|
||||||
|
|
||||||
+ Description: Build a ProcessBuilder for the top Firefox binary and the default profile. Pass the --private-window flag to open a window.
|
+ Description: Build a ProcessBuilder for the top Firefox binary and the default profile. Pass the --private-window flag to open a window.
|
||||||
+ Access: public
|
+ Access: public
|
||||||
@ -192,7 +194,7 @@ This method has no parameters.
|
|||||||
This method has no parameters.
|
This method has no parameters.
|
||||||
|
|
||||||
|
|
||||||
### privateProcessBuilder [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L341)
|
### privateProcessBuilder [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L344)
|
||||||
|
|
||||||
+ Description: Build a ProcessBuilder for the top Firefox binary and the default profile. Pass the --private-window flag to open a window.
|
+ Description: Build a ProcessBuilder for the top Firefox binary and the default profile. Pass the --private-window flag to open a window.
|
||||||
+ Access: public
|
+ Access: public
|
||||||
@ -203,7 +205,18 @@ This method has no parameters.
|
|||||||
| args | String[] | the arguments to pass to the Firefox binary |
|
| args | String[] | the arguments to pass to the Firefox binary |
|
||||||
|
|
||||||
|
|
||||||
### processBuilder [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L362)
|
### headlessProcessBuilder [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L366)
|
||||||
|
|
||||||
|
+ Description: Build a ProcessBuilder for the top Firefox binary and the default profile. Pass the --headless flag to open without a window.
|
||||||
|
+ Access: public
|
||||||
|
+ return: ProcessBuilder
|
||||||
|
|
||||||
|
| Name | Type | Description |
|
||||||
|
| ----- | ----- | ----- |
|
||||||
|
| args | String[] | the arguments to pass to the Firefox binary |
|
||||||
|
|
||||||
|
|
||||||
|
### processBuilder [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L389)
|
||||||
|
|
||||||
+ Description: Build a ProcessBuilder for the top Firefox binary and the default profile with a specific set of extended arguments.
|
+ Description: Build a ProcessBuilder for the top Firefox binary and the default profile with a specific set of extended arguments.
|
||||||
+ Access: public
|
+ Access: public
|
||||||
@ -214,7 +227,7 @@ This method has no parameters.
|
|||||||
| args | String[] | the extended arguments to pass to the Firefox binary. |
|
| args | String[] | the extended arguments to pass to the Firefox binary. |
|
||||||
|
|
||||||
|
|
||||||
### waitForProxy [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L389)
|
### waitForProxy [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L422)
|
||||||
|
|
||||||
+ Description: Waits for an HTTP proxy on port 4444 to be ready. Returns false on timeout of 200 seconds.
|
+ Description: Waits for an HTTP proxy on port 4444 to be ready. Returns false on timeout of 200 seconds.
|
||||||
+ Access: public
|
+ Access: public
|
||||||
@ -223,7 +236,7 @@ This method has no parameters.
|
|||||||
This method has no parameters.
|
This method has no parameters.
|
||||||
|
|
||||||
|
|
||||||
### waitForProxy [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L399)
|
### waitForProxy [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L432)
|
||||||
|
|
||||||
+ Description: Waits for an HTTP proxy on port 4444 to be ready. Returns false on timeout of the specified number of seconds.
|
+ Description: Waits for an HTTP proxy on port 4444 to be ready. Returns false on timeout of the specified number of seconds.
|
||||||
+ Access: public
|
+ Access: public
|
||||||
@ -234,7 +247,7 @@ This method has no parameters.
|
|||||||
| timeout | int | the number of seconds to wait for the proxy to be ready. |
|
| timeout | int | the number of seconds to wait for the proxy to be ready. |
|
||||||
|
|
||||||
|
|
||||||
### waitForProxy [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L411)
|
### waitForProxy [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L444)
|
||||||
|
|
||||||
+ Description: Waits for an HTTP proxy on the specified port to be ready. Returns false on timeout of the specified number of seconds.
|
+ Description: Waits for an HTTP proxy on the specified port to be ready. Returns false on timeout of the specified number of seconds.
|
||||||
+ Access: public
|
+ Access: public
|
||||||
@ -246,7 +259,7 @@ This method has no parameters.
|
|||||||
| port | int | the port to wait for the proxy to be ready on. |
|
| port | int | the port to wait for the proxy to be ready on. |
|
||||||
|
|
||||||
|
|
||||||
### waitForProxy [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L424)
|
### waitForProxy [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L457)
|
||||||
|
|
||||||
+ Description: Waits for an HTTP proxy on the specified port to be ready. Returns false on timeout of the specified number of seconds.
|
+ Description: Waits for an HTTP proxy on the specified port to be ready. Returns false on timeout of the specified number of seconds.
|
||||||
+ Access: public
|
+ Access: public
|
||||||
@ -259,7 +272,7 @@ This method has no parameters.
|
|||||||
| host | String | the host to wait for the proxy to be ready on. |
|
| host | String | the host to wait for the proxy to be ready on. |
|
||||||
|
|
||||||
|
|
||||||
### checkifPortIsOccupied [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L437)
|
### checkifPortIsOccupied [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L471)
|
||||||
|
|
||||||
+ Description:
|
+ Description:
|
||||||
+ Access: private
|
+ Access: private
|
||||||
@ -271,7 +284,7 @@ This method has no parameters.
|
|||||||
| host | String | |
|
| host | String | |
|
||||||
|
|
||||||
|
|
||||||
### usabilityMode [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L447)
|
### usabilityMode [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L481)
|
||||||
|
|
||||||
+ Description:
|
+ Description:
|
||||||
+ Access: private
|
+ Access: private
|
||||||
@ -280,7 +293,7 @@ This method has no parameters.
|
|||||||
This method has no parameters.
|
This method has no parameters.
|
||||||
|
|
||||||
|
|
||||||
### launchAndDetatch [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L454)
|
### launchAndDetatch [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L488)
|
||||||
|
|
||||||
+ Description:
|
+ Description:
|
||||||
+ Access: public
|
+ Access: public
|
||||||
@ -292,7 +305,7 @@ This method has no parameters.
|
|||||||
| url | String[] | |
|
| url | String[] | |
|
||||||
|
|
||||||
|
|
||||||
### launch [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L500)
|
### launch [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L560)
|
||||||
|
|
||||||
+ Description: Populates a profile directory with a proxy configuration. Waits for an HTTP proxy on the port 4444 to be ready. Launches Firefox with the profile directory.
|
+ Description: Populates a profile directory with a proxy configuration. Waits for an HTTP proxy on the port 4444 to be ready. Launches Firefox with the profile directory.
|
||||||
+ Access: public
|
+ Access: public
|
||||||
@ -304,7 +317,7 @@ This method has no parameters.
|
|||||||
| url | String[] | |
|
| url | String[] | |
|
||||||
|
|
||||||
|
|
||||||
### launch [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L522)
|
### launch [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L584)
|
||||||
|
|
||||||
+ Description: Populates a profile directory with a proxy configuration. Waits for an HTTP proxy on the port 4444 to be ready. Launches Firefox with the profile directory.
|
+ Description: Populates a profile directory with a proxy configuration. Waits for an HTTP proxy on the port 4444 to be ready. Launches Firefox with the profile directory.
|
||||||
+ Access: public
|
+ Access: public
|
||||||
@ -315,7 +328,7 @@ This method has no parameters.
|
|||||||
| privateWindow | boolean | |
|
| privateWindow | boolean | |
|
||||||
|
|
||||||
|
|
||||||
### launch [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L532)
|
### launch [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L594)
|
||||||
|
|
||||||
+ Description: Populates a profile directory with a proxy configuration. Waits for an HTTP proxy on the port 4444 to be ready. Launches Firefox with the profile directory. Uses a semi-permanent profile.
|
+ Description: Populates a profile directory with a proxy configuration. Waits for an HTTP proxy on the port 4444 to be ready. Launches Firefox with the profile directory. Uses a semi-permanent profile.
|
||||||
+ Access: public
|
+ Access: public
|
||||||
@ -324,7 +337,7 @@ This method has no parameters.
|
|||||||
This method has no parameters.
|
This method has no parameters.
|
||||||
|
|
||||||
|
|
||||||
### ValidURL [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L534)
|
### ValidURL [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L596)
|
||||||
|
|
||||||
+ Description:
|
+ Description:
|
||||||
+ Access: private
|
+ Access: private
|
||||||
@ -336,7 +349,7 @@ This method has no parameters.
|
|||||||
| inUrl | String | |
|
| inUrl | String | |
|
||||||
|
|
||||||
|
|
||||||
### main [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L545)
|
### main [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L607)
|
||||||
|
|
||||||
+ Description:
|
+ Description:
|
||||||
+ Access: public
|
+ Access: public
|
||||||
@ -348,7 +361,7 @@ This method has no parameters.
|
|||||||
| args | String[] | |
|
| args | String[] | |
|
||||||
|
|
||||||
|
|
||||||
### sleep [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L571)
|
### sleep [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L636)
|
||||||
|
|
||||||
+ Description:
|
+ Description:
|
||||||
+ Access: private
|
+ Access: private
|
||||||
|
@ -97,6 +97,16 @@
|
|||||||
LICENSE
|
LICENSE
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="PACKAGES.html">
|
||||||
|
PACKAGES
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="RELEASES.html">
|
||||||
|
RELEASES
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a href="TODO.html">
|
<a href="TODO.html">
|
||||||
TODO
|
TODO
|
||||||
@ -409,7 +419,7 @@
|
|||||||
<span></span>
|
<span></span>
|
||||||
</a>
|
</a>
|
||||||
copyStrictOptions
|
copyStrictOptions
|
||||||
<a href="src/java/net/i2p/i2pfirefox/I2PFirefoxProfileBuilder.java#L149" rel="nofollow">
|
<a href="src/java/net/i2p/i2pfirefox/I2PFirefoxProfileBuilder.java#L151" rel="nofollow">
|
||||||
[src]
|
[src]
|
||||||
</a>
|
</a>
|
||||||
</h3>
|
</h3>
|
||||||
|
@ -103,7 +103,7 @@ This method has no parameters.
|
|||||||
| base | String | |
|
| base | String | |
|
||||||
|
|
||||||
|
|
||||||
### copyStrictOptions [[src]](src/java/net/i2p/i2pfirefox/I2PFirefoxProfileBuilder.java#L149)
|
### copyStrictOptions [[src]](src/java/net/i2p/i2pfirefox/I2PFirefoxProfileBuilder.java#L151)
|
||||||
|
|
||||||
+ Description: Copy the strict options from the base profile to the profile
|
+ Description: Copy the strict options from the base profile to the profile
|
||||||
+ Access: public
|
+ Access: public
|
||||||
|
@ -97,6 +97,16 @@
|
|||||||
LICENSE
|
LICENSE
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="PACKAGES.html">
|
||||||
|
PACKAGES
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="RELEASES.html">
|
||||||
|
RELEASES
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a href="TODO.html">
|
<a href="TODO.html">
|
||||||
TODO
|
TODO
|
||||||
@ -149,6 +159,8 @@
|
|||||||
<p>
|
<p>
|
||||||
Author: idk
|
Author: idk
|
||||||
<br>
|
<br>
|
||||||
|
Parent class: I2PCommonBrowser
|
||||||
|
<br>
|
||||||
package: net.i2p.i2pfirefox
|
package: net.i2p.i2pfirefox
|
||||||
</p>
|
</p>
|
||||||
<h2>
|
<h2>
|
||||||
@ -174,6 +186,9 @@
|
|||||||
<li>
|
<li>
|
||||||
java.io.File
|
java.io.File
|
||||||
</li>
|
</li>
|
||||||
|
<li>
|
||||||
|
java.io.FileNotFoundException
|
||||||
|
</li>
|
||||||
<li>
|
<li>
|
||||||
java.io.FileReader
|
java.io.FileReader
|
||||||
</li>
|
</li>
|
||||||
@ -183,6 +198,9 @@
|
|||||||
<li>
|
<li>
|
||||||
java.io.IOException
|
java.io.IOException
|
||||||
</li>
|
</li>
|
||||||
|
<li>
|
||||||
|
java.util.Scanner
|
||||||
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<br>
|
<br>
|
||||||
<h2>
|
<h2>
|
||||||
@ -202,7 +220,7 @@
|
|||||||
<span></span>
|
<span></span>
|
||||||
</a>
|
</a>
|
||||||
main
|
main
|
||||||
<a href="src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L30" rel="nofollow">
|
<a href="src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L32" rel="nofollow">
|
||||||
[src]
|
[src]
|
||||||
</a>
|
</a>
|
||||||
</h3>
|
</h3>
|
||||||
@ -235,7 +253,7 @@
|
|||||||
<span></span>
|
<span></span>
|
||||||
</a>
|
</a>
|
||||||
validateProfileDirectory
|
validateProfileDirectory
|
||||||
<a href="src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L51" rel="nofollow">
|
<a href="src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L53" rel="nofollow">
|
||||||
[src]
|
[src]
|
||||||
</a>
|
</a>
|
||||||
</h3>
|
</h3>
|
||||||
@ -264,11 +282,11 @@
|
|||||||
| profileDirectory | String | the profile directory to check |
|
| profileDirectory | String | the profile directory to check |
|
||||||
</p>
|
</p>
|
||||||
<h3>
|
<h3>
|
||||||
<a href="#derestricthttps-src" rel="nofollow">
|
<a href="#derestricthttpsandsetuphomepage-src" rel="nofollow">
|
||||||
<span></span>
|
<span></span>
|
||||||
</a>
|
</a>
|
||||||
deRestrictHTTPS
|
deRestrictHTTPSAndSetupHomepage
|
||||||
<a href="src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L84" rel="nofollow">
|
<a href="src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L86" rel="nofollow">
|
||||||
[src]
|
[src]
|
||||||
</a>
|
</a>
|
||||||
</h3>
|
</h3>
|
||||||
@ -301,7 +319,7 @@
|
|||||||
<span></span>
|
<span></span>
|
||||||
</a>
|
</a>
|
||||||
undoHttpsOnlyMode
|
undoHttpsOnlyMode
|
||||||
<a href="src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L104" rel="nofollow">
|
<a href="src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L109" rel="nofollow">
|
||||||
[src]
|
[src]
|
||||||
</a>
|
</a>
|
||||||
</h3>
|
</h3>
|
||||||
@ -329,12 +347,82 @@
|
|||||||
<br>
|
<br>
|
||||||
| fileToBeModified | File | |
|
| fileToBeModified | File | |
|
||||||
</p>
|
</p>
|
||||||
|
<h3>
|
||||||
|
<a href="#undohomepage-src" rel="nofollow">
|
||||||
|
<span></span>
|
||||||
|
</a>
|
||||||
|
undoHomepage
|
||||||
|
<a href="src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L115" rel="nofollow">
|
||||||
|
[src]
|
||||||
|
</a>
|
||||||
|
</h3>
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
Description:
|
||||||
|
<br>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
Access: private
|
||||||
|
<br>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
Modifiers: static
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
return: boolean
|
||||||
|
<br>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
<p>
|
||||||
|
| Name | Type | Description |
|
||||||
|
<br>
|
||||||
|
| ----- | ----- | ----- |
|
||||||
|
<br>
|
||||||
|
| fileToBeModified | File | |
|
||||||
|
</p>
|
||||||
|
<h3>
|
||||||
|
<a href="#undovalue-src" rel="nofollow">
|
||||||
|
<span></span>
|
||||||
|
</a>
|
||||||
|
undoValue
|
||||||
|
<a href="src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L138" rel="nofollow">
|
||||||
|
[src]
|
||||||
|
</a>
|
||||||
|
</h3>
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
Description:
|
||||||
|
<br>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
Access: private
|
||||||
|
<br>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
Modifiers: static
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
return: boolean
|
||||||
|
<br>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
<p>
|
||||||
|
| Name | Type | Description |
|
||||||
|
<br>
|
||||||
|
| ----- | ----- | ----- |
|
||||||
|
<br>
|
||||||
|
| oldString | String | |
|
||||||
|
<br>
|
||||||
|
| newString | String | |
|
||||||
|
<br>
|
||||||
|
| fileToBeModified | File | |
|
||||||
|
</p>
|
||||||
<h3>
|
<h3>
|
||||||
<a href="#validatefile-src" rel="nofollow">
|
<a href="#validatefile-src" rel="nofollow">
|
||||||
<span></span>
|
<span></span>
|
||||||
</a>
|
</a>
|
||||||
validateFile
|
validateFile
|
||||||
<a href="src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L140" rel="nofollow">
|
<a href="src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L172" rel="nofollow">
|
||||||
[src]
|
[src]
|
||||||
</a>
|
</a>
|
||||||
</h3>
|
</h3>
|
||||||
@ -367,7 +455,7 @@
|
|||||||
<span></span>
|
<span></span>
|
||||||
</a>
|
</a>
|
||||||
validateExtensionDirectory
|
validateExtensionDirectory
|
||||||
<a href="src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L167" rel="nofollow">
|
<a href="src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L199" rel="nofollow">
|
||||||
[src]
|
[src]
|
||||||
</a>
|
</a>
|
||||||
</h3>
|
</h3>
|
||||||
|
@ -7,6 +7,7 @@ Description:
|
|||||||
> I2PFirefoxProfileChecker.java Copyright C 2022 idk <hankhill19580@gmail.com> This program is free software: you can redistribute it and/or modify it under the terms of the MIT License. See LICENSE.md for details. This program is distributed in the hope that it will be useful but WITHOUT ANY WARRANTY without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. I2PFirefoxProfileChecker is a that checks if the Firefox profile directory exists and is valid.
|
> I2PFirefoxProfileChecker.java Copyright C 2022 idk <hankhill19580@gmail.com> This program is free software: you can redistribute it and/or modify it under the terms of the MIT License. See LICENSE.md for details. This program is distributed in the hope that it will be useful but WITHOUT ANY WARRANTY without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. I2PFirefoxProfileChecker is a that checks if the Firefox profile directory exists and is valid.
|
||||||
|
|
||||||
Author: idk
|
Author: idk
|
||||||
|
Parent class: I2PCommonBrowser
|
||||||
package: net.i2p.i2pfirefox
|
package: net.i2p.i2pfirefox
|
||||||
|
|
||||||
## Dependencies
|
## Dependencies
|
||||||
@ -18,9 +19,11 @@ package: net.i2p.i2pfirefox
|
|||||||
<ul>
|
<ul>
|
||||||
<li>java.io.BufferedReader</li>
|
<li>java.io.BufferedReader</li>
|
||||||
<li>java.io.File</li>
|
<li>java.io.File</li>
|
||||||
|
<li>java.io.FileNotFoundException</li>
|
||||||
<li>java.io.FileReader</li>
|
<li>java.io.FileReader</li>
|
||||||
<li>java.io.FileWriter</li>
|
<li>java.io.FileWriter</li>
|
||||||
<li>java.io.IOException</li>
|
<li>java.io.IOException</li>
|
||||||
|
<li>java.util.Scanner</li>
|
||||||
</ul>
|
</ul>
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
@ -28,7 +31,7 @@ package: net.i2p.i2pfirefox
|
|||||||
|
|
||||||
## Methods
|
## Methods
|
||||||
|
|
||||||
### main [[src]](src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L30)
|
### main [[src]](src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L32)
|
||||||
|
|
||||||
+ Description:
|
+ Description:
|
||||||
+ Access: public
|
+ Access: public
|
||||||
@ -40,7 +43,7 @@ package: net.i2p.i2pfirefox
|
|||||||
| args | String[] | |
|
| args | String[] | |
|
||||||
|
|
||||||
|
|
||||||
### validateProfileDirectory [[src]](src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L51)
|
### validateProfileDirectory [[src]](src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L53)
|
||||||
|
|
||||||
+ Description: Return true if the profile directory is valid.
|
+ Description: Return true if the profile directory is valid.
|
||||||
+ Access: public
|
+ Access: public
|
||||||
@ -52,7 +55,7 @@ package: net.i2p.i2pfirefox
|
|||||||
| profileDirectory | String | the profile directory to check |
|
| profileDirectory | String | the profile directory to check |
|
||||||
|
|
||||||
|
|
||||||
### deRestrictHTTPS [[src]](src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L84)
|
### deRestrictHTTPSAndSetupHomepage [[src]](src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L86)
|
||||||
|
|
||||||
+ Description:
|
+ Description:
|
||||||
+ Access: private
|
+ Access: private
|
||||||
@ -64,7 +67,7 @@ package: net.i2p.i2pfirefox
|
|||||||
| profile | String | |
|
| profile | String | |
|
||||||
|
|
||||||
|
|
||||||
### undoHttpsOnlyMode [[src]](src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L104)
|
### undoHttpsOnlyMode [[src]](src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L109)
|
||||||
|
|
||||||
+ Description:
|
+ Description:
|
||||||
+ Access: private
|
+ Access: private
|
||||||
@ -76,7 +79,33 @@ package: net.i2p.i2pfirefox
|
|||||||
| fileToBeModified | File | |
|
| fileToBeModified | File | |
|
||||||
|
|
||||||
|
|
||||||
### validateFile [[src]](src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L140)
|
### undoHomepage [[src]](src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L115)
|
||||||
|
|
||||||
|
+ Description:
|
||||||
|
+ Access: private
|
||||||
|
+ Modifiers: static
|
||||||
|
+ return: boolean
|
||||||
|
|
||||||
|
| Name | Type | Description |
|
||||||
|
| ----- | ----- | ----- |
|
||||||
|
| fileToBeModified | File | |
|
||||||
|
|
||||||
|
|
||||||
|
### undoValue [[src]](src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L138)
|
||||||
|
|
||||||
|
+ Description:
|
||||||
|
+ Access: private
|
||||||
|
+ Modifiers: static
|
||||||
|
+ return: boolean
|
||||||
|
|
||||||
|
| Name | Type | Description |
|
||||||
|
| ----- | ----- | ----- |
|
||||||
|
| oldString | String | |
|
||||||
|
| newString | String | |
|
||||||
|
| fileToBeModified | File | |
|
||||||
|
|
||||||
|
|
||||||
|
### validateFile [[src]](src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L172)
|
||||||
|
|
||||||
+ Description: Return true if the file is valid.
|
+ Description: Return true if the file is valid.
|
||||||
+ Access: public
|
+ Access: public
|
||||||
@ -88,7 +117,7 @@ package: net.i2p.i2pfirefox
|
|||||||
| file | String | the file to check |
|
| file | String | the file to check |
|
||||||
|
|
||||||
|
|
||||||
### validateExtensionDirectory [[src]](src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L167)
|
### validateExtensionDirectory [[src]](src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L199)
|
||||||
|
|
||||||
+ Description: Return true if the extension directory is valid.
|
+ Description: Return true if the extension directory is valid.
|
||||||
+ Access: public
|
+ Access: public
|
||||||
|
@ -97,6 +97,16 @@
|
|||||||
LICENSE
|
LICENSE
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="PACKAGES.html">
|
||||||
|
PACKAGES
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="RELEASES.html">
|
||||||
|
RELEASES
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a href="TODO.html">
|
<a href="TODO.html">
|
||||||
TODO
|
TODO
|
||||||
|
@ -97,6 +97,16 @@
|
|||||||
LICENSE
|
LICENSE
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="PACKAGES.html">
|
||||||
|
PACKAGES
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="RELEASES.html">
|
||||||
|
RELEASES
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a href="TODO.html">
|
<a href="TODO.html">
|
||||||
TODO
|
TODO
|
||||||
@ -407,7 +417,7 @@
|
|||||||
<span></span>
|
<span></span>
|
||||||
</a>
|
</a>
|
||||||
deleteRuntimeDirectory
|
deleteRuntimeDirectory
|
||||||
<a href="src/java/net/i2p/i2pfirefox/I2PGenericUnsafeBrowser.java#L226" rel="nofollow">
|
<a href="src/java/net/i2p/i2pfirefox/I2PGenericUnsafeBrowser.java#L229" rel="nofollow">
|
||||||
[src]
|
[src]
|
||||||
</a>
|
</a>
|
||||||
</h3>
|
</h3>
|
||||||
@ -436,7 +446,7 @@
|
|||||||
<span></span>
|
<span></span>
|
||||||
</a>
|
</a>
|
||||||
runtimeDirectory
|
runtimeDirectory
|
||||||
<a href="src/java/net/i2p/i2pfirefox/I2PGenericUnsafeBrowser.java#L242" rel="nofollow">
|
<a href="src/java/net/i2p/i2pfirefox/I2PGenericUnsafeBrowser.java#L245" rel="nofollow">
|
||||||
[src]
|
[src]
|
||||||
</a>
|
</a>
|
||||||
</h3>
|
</h3>
|
||||||
@ -469,7 +479,7 @@
|
|||||||
<span></span>
|
<span></span>
|
||||||
</a>
|
</a>
|
||||||
runtimeDirectory
|
runtimeDirectory
|
||||||
<a href="src/java/net/i2p/i2pfirefox/I2PGenericUnsafeBrowser.java#L253" rel="nofollow">
|
<a href="src/java/net/i2p/i2pfirefox/I2PGenericUnsafeBrowser.java#L256" rel="nofollow">
|
||||||
[src]
|
[src]
|
||||||
</a>
|
</a>
|
||||||
</h3>
|
</h3>
|
||||||
@ -498,7 +508,7 @@
|
|||||||
<span></span>
|
<span></span>
|
||||||
</a>
|
</a>
|
||||||
waitForProxy
|
waitForProxy
|
||||||
<a href="src/java/net/i2p/i2pfirefox/I2PGenericUnsafeBrowser.java#L275" rel="nofollow">
|
<a href="src/java/net/i2p/i2pfirefox/I2PGenericUnsafeBrowser.java#L278" rel="nofollow">
|
||||||
[src]
|
[src]
|
||||||
</a>
|
</a>
|
||||||
</h3>
|
</h3>
|
||||||
@ -524,7 +534,7 @@
|
|||||||
<span></span>
|
<span></span>
|
||||||
</a>
|
</a>
|
||||||
waitForProxy
|
waitForProxy
|
||||||
<a href="src/java/net/i2p/i2pfirefox/I2PGenericUnsafeBrowser.java#L285" rel="nofollow">
|
<a href="src/java/net/i2p/i2pfirefox/I2PGenericUnsafeBrowser.java#L288" rel="nofollow">
|
||||||
[src]
|
[src]
|
||||||
</a>
|
</a>
|
||||||
</h3>
|
</h3>
|
||||||
@ -554,7 +564,7 @@
|
|||||||
<span></span>
|
<span></span>
|
||||||
</a>
|
</a>
|
||||||
waitForProxy
|
waitForProxy
|
||||||
<a href="src/java/net/i2p/i2pfirefox/I2PGenericUnsafeBrowser.java#L297" rel="nofollow">
|
<a href="src/java/net/i2p/i2pfirefox/I2PGenericUnsafeBrowser.java#L300" rel="nofollow">
|
||||||
[src]
|
[src]
|
||||||
</a>
|
</a>
|
||||||
</h3>
|
</h3>
|
||||||
@ -586,7 +596,7 @@
|
|||||||
<span></span>
|
<span></span>
|
||||||
</a>
|
</a>
|
||||||
waitForProxy
|
waitForProxy
|
||||||
<a href="src/java/net/i2p/i2pfirefox/I2PGenericUnsafeBrowser.java#L311" rel="nofollow">
|
<a href="src/java/net/i2p/i2pfirefox/I2PGenericUnsafeBrowser.java#L314" rel="nofollow">
|
||||||
[src]
|
[src]
|
||||||
</a>
|
</a>
|
||||||
</h3>
|
</h3>
|
||||||
@ -620,7 +630,7 @@
|
|||||||
<span></span>
|
<span></span>
|
||||||
</a>
|
</a>
|
||||||
launchAndDetatch
|
launchAndDetatch
|
||||||
<a href="src/java/net/i2p/i2pfirefox/I2PGenericUnsafeBrowser.java#L325" rel="nofollow">
|
<a href="src/java/net/i2p/i2pfirefox/I2PGenericUnsafeBrowser.java#L328" rel="nofollow">
|
||||||
[src]
|
[src]
|
||||||
</a>
|
</a>
|
||||||
</h3>
|
</h3>
|
||||||
@ -652,7 +662,7 @@
|
|||||||
<span></span>
|
<span></span>
|
||||||
</a>
|
</a>
|
||||||
launch
|
launch
|
||||||
<a href="src/java/net/i2p/i2pfirefox/I2PGenericUnsafeBrowser.java#L346" rel="nofollow">
|
<a href="src/java/net/i2p/i2pfirefox/I2PGenericUnsafeBrowser.java#L350" rel="nofollow">
|
||||||
[src]
|
[src]
|
||||||
</a>
|
</a>
|
||||||
</h3>
|
</h3>
|
||||||
@ -684,7 +694,7 @@
|
|||||||
<span></span>
|
<span></span>
|
||||||
</a>
|
</a>
|
||||||
sleep
|
sleep
|
||||||
<a href="src/java/net/i2p/i2pfirefox/I2PGenericUnsafeBrowser.java#L364" rel="nofollow">
|
<a href="src/java/net/i2p/i2pfirefox/I2PGenericUnsafeBrowser.java#L367" rel="nofollow">
|
||||||
[src]
|
[src]
|
||||||
</a>
|
</a>
|
||||||
</h3>
|
</h3>
|
||||||
@ -717,7 +727,7 @@
|
|||||||
<span></span>
|
<span></span>
|
||||||
</a>
|
</a>
|
||||||
ValidURL
|
ValidURL
|
||||||
<a href="src/java/net/i2p/i2pfirefox/I2PGenericUnsafeBrowser.java#L372" rel="nofollow">
|
<a href="src/java/net/i2p/i2pfirefox/I2PGenericUnsafeBrowser.java#L375" rel="nofollow">
|
||||||
[src]
|
[src]
|
||||||
</a>
|
</a>
|
||||||
</h3>
|
</h3>
|
||||||
@ -750,7 +760,7 @@
|
|||||||
<span></span>
|
<span></span>
|
||||||
</a>
|
</a>
|
||||||
checkifPortIsOccupied
|
checkifPortIsOccupied
|
||||||
<a href="src/java/net/i2p/i2pfirefox/I2PGenericUnsafeBrowser.java#L382" rel="nofollow">
|
<a href="src/java/net/i2p/i2pfirefox/I2PGenericUnsafeBrowser.java#L385" rel="nofollow">
|
||||||
[src]
|
[src]
|
||||||
</a>
|
</a>
|
||||||
</h3>
|
</h3>
|
||||||
|
@ -103,7 +103,7 @@ This method has no parameters.
|
|||||||
This method has no parameters.
|
This method has no parameters.
|
||||||
|
|
||||||
|
|
||||||
### deleteRuntimeDirectory [[src]](src/java/net/i2p/i2pfirefox/I2PGenericUnsafeBrowser.java#L226)
|
### deleteRuntimeDirectory [[src]](src/java/net/i2p/i2pfirefox/I2PGenericUnsafeBrowser.java#L229)
|
||||||
|
|
||||||
+ Description: delete the runtime directory
|
+ Description: delete the runtime directory
|
||||||
+ Access: public
|
+ Access: public
|
||||||
@ -113,7 +113,7 @@ This method has no parameters.
|
|||||||
This method has no parameters.
|
This method has no parameters.
|
||||||
|
|
||||||
|
|
||||||
### runtimeDirectory [[src]](src/java/net/i2p/i2pfirefox/I2PGenericUnsafeBrowser.java#L242)
|
### runtimeDirectory [[src]](src/java/net/i2p/i2pfirefox/I2PGenericUnsafeBrowser.java#L245)
|
||||||
|
|
||||||
+ Description: get the runtime directory creating it if create=true
|
+ Description: get the runtime directory creating it if create=true
|
||||||
+ Access: public
|
+ Access: public
|
||||||
@ -125,7 +125,7 @@ This method has no parameters.
|
|||||||
| create | boolean | if true create the runtime directory if it does not exist |
|
| create | boolean | if true create the runtime directory if it does not exist |
|
||||||
|
|
||||||
|
|
||||||
### runtimeDirectory [[src]](src/java/net/i2p/i2pfirefox/I2PGenericUnsafeBrowser.java#L253)
|
### runtimeDirectory [[src]](src/java/net/i2p/i2pfirefox/I2PGenericUnsafeBrowser.java#L256)
|
||||||
|
|
||||||
+ Description: get the correct runtime directory
|
+ Description: get the correct runtime directory
|
||||||
+ Access: public
|
+ Access: public
|
||||||
@ -135,7 +135,7 @@ This method has no parameters.
|
|||||||
This method has no parameters.
|
This method has no parameters.
|
||||||
|
|
||||||
|
|
||||||
### waitForProxy [[src]](src/java/net/i2p/i2pfirefox/I2PGenericUnsafeBrowser.java#L275)
|
### waitForProxy [[src]](src/java/net/i2p/i2pfirefox/I2PGenericUnsafeBrowser.java#L278)
|
||||||
|
|
||||||
+ Description: Waits for an HTTP proxy on port 4444 to be ready. Returns false on timeout of 200 seconds.
|
+ Description: Waits for an HTTP proxy on port 4444 to be ready. Returns false on timeout of 200 seconds.
|
||||||
+ Access: public
|
+ Access: public
|
||||||
@ -144,7 +144,7 @@ This method has no parameters.
|
|||||||
This method has no parameters.
|
This method has no parameters.
|
||||||
|
|
||||||
|
|
||||||
### waitForProxy [[src]](src/java/net/i2p/i2pfirefox/I2PGenericUnsafeBrowser.java#L285)
|
### waitForProxy [[src]](src/java/net/i2p/i2pfirefox/I2PGenericUnsafeBrowser.java#L288)
|
||||||
|
|
||||||
+ Description: Waits for an HTTP proxy on port 4444 to be ready. Returns false on timeout of the specified number of seconds.
|
+ Description: Waits for an HTTP proxy on port 4444 to be ready. Returns false on timeout of the specified number of seconds.
|
||||||
+ Access: public
|
+ Access: public
|
||||||
@ -155,7 +155,7 @@ This method has no parameters.
|
|||||||
| timeout | int | the number of seconds to wait for the proxy to be ready. |
|
| timeout | int | the number of seconds to wait for the proxy to be ready. |
|
||||||
|
|
||||||
|
|
||||||
### waitForProxy [[src]](src/java/net/i2p/i2pfirefox/I2PGenericUnsafeBrowser.java#L297)
|
### waitForProxy [[src]](src/java/net/i2p/i2pfirefox/I2PGenericUnsafeBrowser.java#L300)
|
||||||
|
|
||||||
+ Description: Waits for an HTTP proxy on the specified port to be ready. Returns false on timeout of the specified number of seconds.
|
+ Description: Waits for an HTTP proxy on the specified port to be ready. Returns false on timeout of the specified number of seconds.
|
||||||
+ Access: public
|
+ Access: public
|
||||||
@ -167,7 +167,7 @@ This method has no parameters.
|
|||||||
| port | int | the port to wait for the proxy to be ready on. |
|
| port | int | the port to wait for the proxy to be ready on. |
|
||||||
|
|
||||||
|
|
||||||
### waitForProxy [[src]](src/java/net/i2p/i2pfirefox/I2PGenericUnsafeBrowser.java#L311)
|
### waitForProxy [[src]](src/java/net/i2p/i2pfirefox/I2PGenericUnsafeBrowser.java#L314)
|
||||||
|
|
||||||
+ Description: Waits for an HTTP proxy on the specified port to be ready. Returns false on timeout of the specified number of seconds.
|
+ Description: Waits for an HTTP proxy on the specified port to be ready. Returns false on timeout of the specified number of seconds.
|
||||||
+ Access: public
|
+ Access: public
|
||||||
@ -180,7 +180,7 @@ This method has no parameters.
|
|||||||
| host | String | the host to wait for the proxy to be ready on. |
|
| host | String | the host to wait for the proxy to be ready on. |
|
||||||
|
|
||||||
|
|
||||||
### launchAndDetatch [[src]](src/java/net/i2p/i2pfirefox/I2PGenericUnsafeBrowser.java#L325)
|
### launchAndDetatch [[src]](src/java/net/i2p/i2pfirefox/I2PGenericUnsafeBrowser.java#L328)
|
||||||
|
|
||||||
+ Description:
|
+ Description:
|
||||||
+ Access: public
|
+ Access: public
|
||||||
@ -192,7 +192,7 @@ This method has no parameters.
|
|||||||
| url | String[] | |
|
| url | String[] | |
|
||||||
|
|
||||||
|
|
||||||
### launch [[src]](src/java/net/i2p/i2pfirefox/I2PGenericUnsafeBrowser.java#L346)
|
### launch [[src]](src/java/net/i2p/i2pfirefox/I2PGenericUnsafeBrowser.java#L350)
|
||||||
|
|
||||||
+ Description:
|
+ Description:
|
||||||
+ Access: public
|
+ Access: public
|
||||||
@ -204,7 +204,7 @@ This method has no parameters.
|
|||||||
| url | String[] | |
|
| url | String[] | |
|
||||||
|
|
||||||
|
|
||||||
### sleep [[src]](src/java/net/i2p/i2pfirefox/I2PGenericUnsafeBrowser.java#L364)
|
### sleep [[src]](src/java/net/i2p/i2pfirefox/I2PGenericUnsafeBrowser.java#L367)
|
||||||
|
|
||||||
+ Description:
|
+ Description:
|
||||||
+ Access: private
|
+ Access: private
|
||||||
@ -216,7 +216,7 @@ This method has no parameters.
|
|||||||
| millis | int | |
|
| millis | int | |
|
||||||
|
|
||||||
|
|
||||||
### ValidURL [[src]](src/java/net/i2p/i2pfirefox/I2PGenericUnsafeBrowser.java#L372)
|
### ValidURL [[src]](src/java/net/i2p/i2pfirefox/I2PGenericUnsafeBrowser.java#L375)
|
||||||
|
|
||||||
+ Description:
|
+ Description:
|
||||||
+ Access: private
|
+ Access: private
|
||||||
@ -228,7 +228,7 @@ This method has no parameters.
|
|||||||
| inUrl | String | |
|
| inUrl | String | |
|
||||||
|
|
||||||
|
|
||||||
### checkifPortIsOccupied [[src]](src/java/net/i2p/i2pfirefox/I2PGenericUnsafeBrowser.java#L382)
|
### checkifPortIsOccupied [[src]](src/java/net/i2p/i2pfirefox/I2PGenericUnsafeBrowser.java#L385)
|
||||||
|
|
||||||
+ Description:
|
+ Description:
|
||||||
+ Access: private
|
+ Access: private
|
||||||
|
10
LICENSE.html
10
LICENSE.html
@ -97,6 +97,16 @@
|
|||||||
LICENSE
|
LICENSE
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="PACKAGES.html">
|
||||||
|
PACKAGES
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="RELEASES.html">
|
||||||
|
RELEASES
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a href="TODO.html">
|
<a href="TODO.html">
|
||||||
TODO
|
TODO
|
||||||
|
1254
PACKAGES.html
Normal file
1254
PACKAGES.html
Normal file
File diff suppressed because it is too large
Load Diff
91
PACKAGES.md
Normal file
91
PACKAGES.md
Normal file
@ -0,0 +1,91 @@
|
|||||||
|
Packages for various operating systems
|
||||||
|
======================================
|
||||||
|
|
||||||
|
Making a new release:
|
||||||
|
---------------------
|
||||||
|
|
||||||
|
Releases can be created in a mostly automatic way. With a working Java toolchain
|
||||||
|
including jpackage installed:
|
||||||
|
|
||||||
|
0. Set a `GITHUB_TOKEN` in the environment containing an API key.
|
||||||
|
1. Update the version number(`GITHUB_TAG`) and version title(`GITHUB_NAME`) in `config.sh`
|
||||||
|
2. On a Linux machine, run `./release.sh`
|
||||||
|
3. On a Windows machine, run `./windows-release.sh`
|
||||||
|
|
||||||
|
|
||||||
|
Windows
|
||||||
|
-------
|
||||||
|
|
||||||
|
All Windows packages require building on a Windows machine. In order to build
|
||||||
|
them, check out i2p.firefox in an adjacent directory and `source` i2p.firefox/config.sh
|
||||||
|
to set the path to the Java toolchain you want to use.
|
||||||
|
|
||||||
|
run: `ant jar` before any of these scripts.
|
||||||
|
|
||||||
|
run: `windows-release.sh` only *after* release.sh on a Linux machine.
|
||||||
|
|
||||||
|
### MSI
|
||||||
|
|
||||||
|
Requires the Wixl toolset.
|
||||||
|
|
||||||
|
#### Status: Works. Maintained.
|
||||||
|
|
||||||
|
run: `./windows.sh`
|
||||||
|
|
||||||
|
#### EXE
|
||||||
|
|
||||||
|
No special requirements.
|
||||||
|
|
||||||
|
#### Status: Works. Maintained.
|
||||||
|
|
||||||
|
run: `./windows-exe.sh`
|
||||||
|
|
||||||
|
### Portable(.zip)
|
||||||
|
|
||||||
|
No special requirements.
|
||||||
|
|
||||||
|
#### Status: Unknown. Maintained.
|
||||||
|
|
||||||
|
run: `./windows-portable.sh`
|
||||||
|
|
||||||
|
Linux
|
||||||
|
-----
|
||||||
|
|
||||||
|
All Linux packages require building on a Linux machines. Debian packages must
|
||||||
|
be built on Debian, Fedora packages must be built on Fedora. Some leeway for
|
||||||
|
derivative distros. Portable can be b build anywhere with a jpackage. Have
|
||||||
|
Java tools in your `PATH`.
|
||||||
|
|
||||||
|
### Debian
|
||||||
|
|
||||||
|
Make sure you have a recent Java and jpackage.
|
||||||
|
|
||||||
|
#### Status: Works. Maintained.
|
||||||
|
|
||||||
|
run: `ant debian`
|
||||||
|
|
||||||
|
### Fedora
|
||||||
|
|
||||||
|
I'm a Debian user and don't have a Fedora machine set up right now. Therefore,
|
||||||
|
I build Fedora packages in a container.
|
||||||
|
|
||||||
|
Fedora doesn't have a jpackage in their repositories as far as I can tell so I use
|
||||||
|
Adoptium's third-party repository to supply the JDK I use to build the fedora
|
||||||
|
package.
|
||||||
|
|
||||||
|
#### Status: Unknown. Maintained.
|
||||||
|
|
||||||
|
run: `ant fedora`
|
||||||
|
|
||||||
|
### Portable(.zip)
|
||||||
|
|
||||||
|
Details are platform dependent. Same build-deps as everything else.
|
||||||
|
|
||||||
|
#### Status: Works. Maintained.
|
||||||
|
|
||||||
|
run: `ant jpackage`
|
||||||
|
|
||||||
|
OSX
|
||||||
|
---
|
||||||
|
|
||||||
|
### TODO
|
13
README.md
13
README.md
@ -2,6 +2,19 @@
|
|||||||
|
|
||||||
A port of the batch scripts from i2p.firefox to Java.
|
A port of the batch scripts from i2p.firefox to Java.
|
||||||
|
|
||||||
|
**Status:** This package is maintained. It cannot solve all your problems. Fingerprinting
|
||||||
|
is a reality in modern browsers. Exploits are too. This software attempts to provide a
|
||||||
|
best-possible baseline of privacy first, security a close second for browsing the web that
|
||||||
|
exists within I2P. Do not expect it to withstand attacks from very powerful adversaries
|
||||||
|
who can spend time and money to screw up your life. Do expect it to resist advertisers,
|
||||||
|
trackers, and jerks using off-the-shelf techniques and exploits. It is fundamentally unable
|
||||||
|
to make changes which un-trust your browser vendor, your OS, your package manager or any
|
||||||
|
other system that exists underneath it. **It is just a profile manager.**
|
||||||
|
|
||||||
|
**All packages require a running I2P router.**
|
||||||
|
|
||||||
|
**[Windows users should see the Easy-Install Bundle](https://i2pgit.org/i2p-hackers/i2p.firefox)**
|
||||||
|
|
||||||
## Getting started
|
## Getting started
|
||||||
|
|
||||||
### Using a Binary
|
### Using a Binary
|
||||||
|
1062
RELEASES.html
Normal file
1062
RELEASES.html
Normal file
File diff suppressed because it is too large
Load Diff
12
RELEASES.md
Normal file
12
RELEASES.md
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
Sums for release 0.0.31
|
||||||
|
==============================
|
||||||
|
|
||||||
|
- [b4281b944433069681ece1124bf5ac1a527dcef9d29ce999ab0dac7a0bbee70e i2pfirefox.jar](https://github.com/eyedeekay/i2p.plugins.firefox/releases/download/0.0.31/i2pfirefox.jar)
|
||||||
|
- [5b21bb74ce6715bd48bcc019a1165f1f27a15bd831c1a723d8b90f7cb82498df i2pfirefox.zip](https://github.com/eyedeekay/i2p.plugins.firefox/releases/download/0.0.31/i2pfirefox.zip)
|
||||||
|
- [86b0ae9040d64651cc13027a9861d0fdf2afaac4a4cdb9cbef69e82cc92adb67 i2pbrowser.zip](https://github.com/eyedeekay/i2p.plugins.firefox/releases/download/0.0.31/i2pbrowser.zip)
|
||||||
|
- [3a08a52a41463e0b5324101eb097f533bbac8b7db44964a2f90d305247320ecc i2pbrowser_0.0.31_.deb](https://github.com/eyedeekay/i2p.plugins.firefox/releases/download/0.0.31/i2pbrowser_0.0.31_.deb)
|
||||||
|
- [67739c09653b52d8bdb75b2c742aa8c21a8a7c278b7c05e25957747afede218b i2pbrowser-0.0.31_.rpm](https://github.com/eyedeekay/i2p.plugins.firefox/releases/download/0.0.31/i2pbrowser-0.0.31_.rpm)
|
||||||
|
- [f40ef6126af9fd93272c2935e1fb056a6aceb2dfbbb0aafe1847708c40a3220a i2pbrowser.msi](https://github.com/eyedeekay/i2p.plugins.firefox/releases/download/0.0.31/i2pbrowser.msi)
|
||||||
|
- [33ecc96815f3e6934112f138b54bb64fde93565dcafae000d73b2539449f10ed i2pbrowser.exe](https://github.com/eyedeekay/i2p.plugins.firefox/releases/download/0.0.31/i2pbrowser.exe)
|
||||||
|
- [6a620cd58fda291945fa010e3411fac817f2b9f87f572b67697de0e16e694efd i2pbrowser-portable.zip](https://github.com/eyedeekay/i2p.plugins.firefox/releases/download/0.0.31/i2pbrowser-portable.zip)
|
||||||
|
|
10
TODO.html
10
TODO.html
@ -97,6 +97,16 @@
|
|||||||
LICENSE
|
LICENSE
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="PACKAGES.html">
|
||||||
|
PACKAGES
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="RELEASES.html">
|
||||||
|
RELEASES
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a href="TODO.html">
|
<a href="TODO.html">
|
||||||
TODO
|
TODO
|
||||||
|
10
USAGE.html
10
USAGE.html
@ -97,6 +97,16 @@
|
|||||||
LICENSE
|
LICENSE
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="PACKAGES.html">
|
||||||
|
PACKAGES
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="RELEASES.html">
|
||||||
|
RELEASES
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a href="TODO.html">
|
<a href="TODO.html">
|
||||||
TODO
|
TODO
|
||||||
|
23
build.xml
23
build.xml
@ -298,6 +298,12 @@ Linux(because the top command will be run and the script will exit).\n\nBoth det
|
|||||||
<arg value="src/build/i2pfirefox.jar"/>
|
<arg value="src/build/i2pfirefox.jar"/>
|
||||||
<arg value="i2pfirefox.cmd"/>
|
<arg value="i2pfirefox.cmd"/>
|
||||||
<arg value="i2pchromium.cmd"/>
|
<arg value="i2pchromium.cmd"/>
|
||||||
|
<arg value="i2pfirefox-private.cmd"/>
|
||||||
|
<arg value="i2pchromium-private.cmd"/>
|
||||||
|
<arg value="i2pfirefox-usability.cmd"/>
|
||||||
|
<arg value="i2pchromium-usability.cmd"/>
|
||||||
|
<arg value="i2pfirefox-usability-private.cmd"/>
|
||||||
|
<arg value="i2pchromium-usability-private.cmd"/>
|
||||||
<arg value="LICENSE.md"/>
|
<arg value="LICENSE.md"/>
|
||||||
<arg value="README.md"/>
|
<arg value="README.md"/>
|
||||||
</exec>
|
</exec>
|
||||||
@ -311,7 +317,7 @@ Linux(because the top command will be run and the script will exit).\n\nBoth det
|
|||||||
<delete dir="plugin/eepsite/docroot/torrents/" />
|
<delete dir="plugin/eepsite/docroot/torrents/" />
|
||||||
<!-- get version number -->
|
<!-- get version number -->
|
||||||
<buildnumber file="scripts/build.number" />
|
<buildnumber file="scripts/build.number" />
|
||||||
<property name="release.number" value="0.0.20" />
|
<property name="release.number" value="0.0.33" />
|
||||||
|
|
||||||
<!-- make the update xpi2p -->
|
<!-- make the update xpi2p -->
|
||||||
<!-- this contains everything except i2ptunnel.config -->
|
<!-- this contains everything except i2ptunnel.config -->
|
||||||
@ -386,6 +392,7 @@ Linux(because the top command will be run and the script will exit).\n\nBoth det
|
|||||||
<delete dir="i2p.firefox.profile" />
|
<delete dir="i2p.firefox.profile" />
|
||||||
<delete dir="src/i2p.firefox.profile.zip" />
|
<delete dir="src/i2p.firefox.profile.zip" />
|
||||||
<delete dir="i2p.chromium.base.profile" />
|
<delete dir="i2p.chromium.base.profile" />
|
||||||
|
<delete dir="i2p.chromium.usability.profile" />
|
||||||
<delete dir="i2p.chromium.profile" />
|
<delete dir="i2p.chromium.profile" />
|
||||||
<delete dir="src/i2p.chromium.profile.zip" />
|
<delete dir="src/i2p.chromium.profile.zip" />
|
||||||
<delete file="plugin/i2ptunnel.config" />
|
<delete file="plugin/i2ptunnel.config" />
|
||||||
@ -428,4 +435,18 @@ Linux(because the top command will be run and the script will exit).\n\nBoth det
|
|||||||
<arg value="i2pbrowser"/>
|
<arg value="i2pbrowser"/>
|
||||||
</exec>
|
</exec>
|
||||||
</target>
|
</target>
|
||||||
|
<target name="debian" depends="jar">
|
||||||
|
<exec executable="bash" failonerror="true">
|
||||||
|
<arg value="--verbose"/>
|
||||||
|
<arg value="-c"/>
|
||||||
|
<arg value="./debian.sh"/>
|
||||||
|
</exec>
|
||||||
|
</target>
|
||||||
|
<target name="fedora" depends="jar">
|
||||||
|
<exec executable="bash" failonerror="true">
|
||||||
|
<arg value="--verbose"/>
|
||||||
|
<arg value="-c"/>
|
||||||
|
<arg value="./fedora.sh"/>
|
||||||
|
</exec>
|
||||||
|
</target>
|
||||||
</project>
|
</project>
|
||||||
|
6
config.sh
Executable file
6
config.sh
Executable file
@ -0,0 +1,6 @@
|
|||||||
|
#! /usr/bin/env sh
|
||||||
|
export GITHUB_USER=eyedeekay
|
||||||
|
export GITHUB_REPO=i2p.plugins.firefox
|
||||||
|
export GITHUB_NAME="Fix unclosed scanner"
|
||||||
|
export GITHUB_DESCRIPTION=$(cat CHANGES.md)
|
||||||
|
export GITHUB_TAG=0.0.33
|
16
debian.sh
Executable file
16
debian.sh
Executable file
@ -0,0 +1,16 @@
|
|||||||
|
#! /usr/bin/env sh
|
||||||
|
|
||||||
|
. ./config.sh
|
||||||
|
jpackage --verbose \
|
||||||
|
--type deb \
|
||||||
|
--linux-deb-maintainer hankhill19580@gmail.com \
|
||||||
|
--linux-menu-group "Network;WebBrowser;P2P" \
|
||||||
|
--linux-app-category "Network" \
|
||||||
|
--linux-package-deps "firefox|chromium|brave|firefox-esr|librewolf|icecat" \
|
||||||
|
--linux-shortcut \
|
||||||
|
--license-file LICENSE.md \
|
||||||
|
--name i2pbrowser \
|
||||||
|
--app-version "$GITHUB_TAG" \
|
||||||
|
--input src/build \
|
||||||
|
--main-jar i2pfirefox.jar \
|
||||||
|
--main-class net.i2p.i2pfirefox.I2PBrowser
|
28
fedora-docker.sh
Executable file
28
fedora-docker.sh
Executable file
@ -0,0 +1,28 @@
|
|||||||
|
#! /usr/bin/env sh
|
||||||
|
|
||||||
|
. ./config.sh
|
||||||
|
|
||||||
|
cat <<EOF > /etc/yum.repos.d/adoptium.repo
|
||||||
|
[Adoptium]
|
||||||
|
name=Adoptium
|
||||||
|
baseurl=https://packages.adoptium.net/artifactory/rpm/${DISTRIBUTION_NAME:-$(. /etc/os-release; echo $ID)}/\$releasever/\$basearch
|
||||||
|
enabled=1
|
||||||
|
gpgcheck=1
|
||||||
|
gpgkey=https://packages.adoptium.net/artifactory/api/gpg/key/public
|
||||||
|
EOF
|
||||||
|
yum -y update
|
||||||
|
yum -y install temurin-18-jdk
|
||||||
|
|
||||||
|
jpackage --verbose \
|
||||||
|
--type rpm \
|
||||||
|
--linux-menu-group "Network;WebBrowser;P2P" \
|
||||||
|
--linux-app-category "Network" \
|
||||||
|
--linux-package-deps "firefox|chromium|brave|firefox-esr|librewolf|icecat" \
|
||||||
|
--linux-shortcut \
|
||||||
|
--license-file LICENSE.md \
|
||||||
|
--name i2pbrowser \
|
||||||
|
--app-version "$GITHUB_TAG" \
|
||||||
|
--input src/build \
|
||||||
|
--main-jar i2pfirefox.jar \
|
||||||
|
--main-class net.i2p.i2pfirefox.I2PBrowser
|
||||||
|
ls *.rpm
|
7
fedora.sh
Executable file
7
fedora.sh
Executable file
@ -0,0 +1,7 @@
|
|||||||
|
#! /usr/bin/env sh
|
||||||
|
|
||||||
|
. ./config.sh
|
||||||
|
docker build -t eyedeekay/i2p.plugins.firefox .
|
||||||
|
docker rm -f i2pbrowser-fedora
|
||||||
|
docker run --name i2pbrowser-fedora eyedeekay/i2p.plugins.firefox
|
||||||
|
docker cp i2pbrowser-fedora:/src/i2p.plugins.firefox/i2pbrowser-${GITHUB_TAG}-1.x86_64.rpm .
|
38
index.html
38
index.html
@ -97,6 +97,16 @@
|
|||||||
LICENSE
|
LICENSE
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="PACKAGES.html">
|
||||||
|
PACKAGES
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="RELEASES.html">
|
||||||
|
RELEASES
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a href="TODO.html">
|
<a href="TODO.html">
|
||||||
TODO
|
TODO
|
||||||
@ -127,6 +137,34 @@
|
|||||||
<p>
|
<p>
|
||||||
A port of the batch scripts from i2p.firefox to Java.
|
A port of the batch scripts from i2p.firefox to Java.
|
||||||
</p>
|
</p>
|
||||||
|
<p>
|
||||||
|
<strong>
|
||||||
|
Status:
|
||||||
|
</strong>
|
||||||
|
This package is maintained. It cannot solve all your problems. Fingerprinting
|
||||||
|
is a reality in modern browsers. Exploits are too. This software attempts to provide a
|
||||||
|
best-possible baseline of privacy first, security a close second for browsing the web that
|
||||||
|
exists within I2P. Do not expect it to withstand attacks from very powerful adversaries
|
||||||
|
who can spend time and money to screw up your life. Do expect it to resist advertisers,
|
||||||
|
trackers, and jerks using off-the-shelf techniques and exploits. It is fundamentally unable
|
||||||
|
to make changes which un-trust your browser vendor, your OS, your package manager or any
|
||||||
|
other system that exists underneath it.
|
||||||
|
<strong>
|
||||||
|
It is just a profile manager.
|
||||||
|
</strong>
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
<strong>
|
||||||
|
All packages require a running I2P router.
|
||||||
|
</strong>
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
<strong>
|
||||||
|
<a href="https://i2pgit.org/i2p-hackers/i2p.firefox" rel="nofollow">
|
||||||
|
Windows users should see the Easy-Install Bundle
|
||||||
|
</a>
|
||||||
|
</strong>
|
||||||
|
</p>
|
||||||
<h2>
|
<h2>
|
||||||
<a href="#getting-started" rel="nofollow">
|
<a href="#getting-started" rel="nofollow">
|
||||||
<span></span>
|
<span></span>
|
||||||
|
11
osx-dmg.sh
Executable file
11
osx-dmg.sh
Executable file
@ -0,0 +1,11 @@
|
|||||||
|
#! /usr/bin/env sh
|
||||||
|
. ./config.sh
|
||||||
|
jpackage \
|
||||||
|
--verbose \
|
||||||
|
--type dmg \
|
||||||
|
--license-file LICENSE.md \
|
||||||
|
--name i2pbrowser \
|
||||||
|
--app-version "$GITHUB_TAG" \
|
||||||
|
--input src/build \
|
||||||
|
--main-jar i2pfirefox.jar \
|
||||||
|
--main-class net.i2p.i2pfirefox.I2PBrowser
|
61
packages.sh
Executable file
61
packages.sh
Executable file
@ -0,0 +1,61 @@
|
|||||||
|
#! /usr/bin/env sh
|
||||||
|
|
||||||
|
. ./config.sh
|
||||||
|
github-release download --user "${GITHUB_USER}" \
|
||||||
|
--repo "${GITHUB_REPO}" \
|
||||||
|
--tag "${GITHUB_TAG}" \
|
||||||
|
--name "i2pfirefox.jar"
|
||||||
|
echo "Downloaded jar"
|
||||||
|
github-release download --user "${GITHUB_USER}" \
|
||||||
|
--repo "${GITHUB_REPO}" \
|
||||||
|
--tag "${GITHUB_TAG}" \
|
||||||
|
--name "i2pfirefox.zip"
|
||||||
|
echo "Downloaded freestanding zip"
|
||||||
|
github-release download --user "${GITHUB_USER}" \
|
||||||
|
--repo "${GITHUB_REPO}" \
|
||||||
|
--tag "${GITHUB_TAG}" \
|
||||||
|
--name "i2pbrowser.zip"
|
||||||
|
echo "Downloaded jpackage zip"
|
||||||
|
github-release download --user "${GITHUB_USER}" \
|
||||||
|
--repo "${GITHUB_REPO}" \
|
||||||
|
--tag "${GITHUB_TAG}" \
|
||||||
|
--name "i2pbrowser_${GITHUB_TAG}_.deb"
|
||||||
|
echo "Downloaded debian package"
|
||||||
|
github-release download --user "${GITHUB_USER}" \
|
||||||
|
--repo "${GITHUB_REPO}" \
|
||||||
|
--tag "${GITHUB_TAG}" \
|
||||||
|
--name "i2pbrowser-${GITHUB_TAG}_.rpm"
|
||||||
|
echo "Downloaded fedora package"
|
||||||
|
github-release download --user "${GITHUB_USER}" \
|
||||||
|
--repo "${GITHUB_REPO}" \
|
||||||
|
--tag "${GITHUB_TAG}" \
|
||||||
|
--name "i2pbrowser.msi"
|
||||||
|
echo "Downloaded MSI package"
|
||||||
|
github-release download --user "${GITHUB_USER}" \
|
||||||
|
--repo "${GITHUB_REPO}" \
|
||||||
|
--tag "${GITHUB_TAG}" \
|
||||||
|
--name "i2pbrowser.exe"
|
||||||
|
echo "Downloaded EXE package"
|
||||||
|
github-release download --user "${GITHUB_USER}" \
|
||||||
|
--repo "${GITHUB_REPO}" \
|
||||||
|
--tag "${GITHUB_TAG}" \
|
||||||
|
--name "i2pbrowser-portable.zip"
|
||||||
|
echo "Downloaded Windows ZIP package"
|
||||||
|
|
||||||
|
echo "Sums for release ${GITHUB_TAG}" | tee RELEASES.md
|
||||||
|
echo "==============================" | tee -a RELEASES.md
|
||||||
|
echo "" | tee -a RELEASES.md
|
||||||
|
echo "- [$(sha256sum i2pfirefox.jar)](https://github.com/eyedeekay/i2p.plugins.firefox/releases/download/${GITHUB_TAG}/i2pfirefox.jar)" | tee -a RELEASES.md
|
||||||
|
echo "- [$(sha256sum i2pfirefox.zip)](https://github.com/eyedeekay/i2p.plugins.firefox/releases/download/${GITHUB_TAG}/i2pfirefox.zip)" | tee -a RELEASES.md
|
||||||
|
echo "- [$(sha256sum i2pbrowser.zip)](https://github.com/eyedeekay/i2p.plugins.firefox/releases/download/${GITHUB_TAG}/i2pbrowser.zip)" | tee -a RELEASES.md
|
||||||
|
echo "- [$(sha256sum i2pbrowser_${GITHUB_TAG}_.deb)](https://github.com/eyedeekay/i2p.plugins.firefox/releases/download/${GITHUB_TAG}/i2pbrowser_${GITHUB_TAG}_amd64.deb)" | tee -a RELEASES.md
|
||||||
|
echo "- [$(sha256sum i2pbrowser-${GITHUB_TAG}_.rpm)](https://github.com/eyedeekay/i2p.plugins.firefox/releases/download/${GITHUB_TAG}/i2pbrowser-${GITHUB_TAG}-1.x86_64.rpm.rpm)" | tee -a RELEASES.md
|
||||||
|
echo "- [$(sha256sum i2pbrowser.msi)](https://github.com/eyedeekay/i2p.plugins.firefox/releases/download/${GITHUB_TAG}/i2pbrowser.msi)" | tee -a RELEASES.md
|
||||||
|
echo "- [$(sha256sum i2pbrowser.exe)](https://github.com/eyedeekay/i2p.plugins.firefox/releases/download/${GITHUB_TAG}/i2pbrowser.exe)" | tee -a RELEASES.md
|
||||||
|
echo "- [$(sha256sum i2pbrowser-portable.zip)](https://github.com/eyedeekay/i2p.plugins.firefox/releases/download/${GITHUB_TAG}/i2pbrowser-portable.zip)" | tee -a RELEASES.md
|
||||||
|
echo "" | tee -a RELEASES.md
|
||||||
|
|
||||||
|
git add RELEASES.md
|
||||||
|
edgar
|
||||||
|
git commit -am "Update releases page"
|
||||||
|
git push --all
|
41
release.sh
41
release.sh
@ -1,16 +1,12 @@
|
|||||||
#! /usr/bin/env sh
|
#! /usr/bin/env sh
|
||||||
|
|
||||||
GITHUB_USER=eyedeekay
|
. ./config.sh
|
||||||
GITHUB_REPO=i2p.plugins.firefox
|
ant distclean clangFmt
|
||||||
GITHUB_NAME="That unsets HTTPS-Only mode in favor of HTTPS-first mode so we don't require the interstitial."
|
|
||||||
GITHUB_DESCRIPTION=$(cat CHANGES.md)
|
|
||||||
GITHUB_TAG=0.0.20
|
|
||||||
ant distclean
|
|
||||||
./javadoc.sh
|
./javadoc.sh
|
||||||
NUMLINE=`grep release.number build.xml | head -n 1`
|
NUMLINE=`grep release.number build.xml | head -n 1`
|
||||||
sed -i "s|$NUMLINE| <property name=\"release.number\" value=\"$GITHUB_TAG\" />|g" build.xml
|
sed -i "s|$NUMLINE| <property name=\"release.number\" value=\"$GITHUB_TAG\" />|g" build.xml
|
||||||
edgar && git push --all
|
edgar && git push --all
|
||||||
ant jar freeZip jpackage
|
ant jar freeZip jpackage debian fedora
|
||||||
github-release release --user "${GITHUB_USER}" \
|
github-release release --user "${GITHUB_USER}" \
|
||||||
--repo "${GITHUB_REPO}" \
|
--repo "${GITHUB_REPO}" \
|
||||||
--name "${GITHUB_NAME}" \
|
--name "${GITHUB_NAME}" \
|
||||||
@ -22,30 +18,51 @@ github-release edit --user "${GITHUB_USER}" \
|
|||||||
--name "${GITHUB_NAME}" \
|
--name "${GITHUB_NAME}" \
|
||||||
--description "${GITHUB_DESCRIPTION}" \
|
--description "${GITHUB_DESCRIPTION}" \
|
||||||
--tag "${GITHUB_TAG}"; true
|
--tag "${GITHUB_TAG}"; true
|
||||||
echo "Relase $GITHUB_TAG setup"
|
echo "Relase ${GITHUB_TAG} setup"
|
||||||
|
jarsum=$(sha256sum "src/build/i2pfirefox.jar")
|
||||||
github-release upload --user "${GITHUB_USER}" \
|
github-release upload --user "${GITHUB_USER}" \
|
||||||
--repo "${GITHUB_REPO}" \
|
--repo "${GITHUB_REPO}" \
|
||||||
--tag "${GITHUB_TAG}" \
|
--tag "${GITHUB_TAG}" \
|
||||||
--label "I2P Browser launcher as a .jar." \
|
--label "I2P Browser launcher as a .jar. Useful as a library or for advanced users. ${jarsum}" \
|
||||||
--name "i2pfirefox.jar" \
|
--name "i2pfirefox.jar" \
|
||||||
--file "src/build/i2pfirefox.jar" \
|
--file "src/build/i2pfirefox.jar" \
|
||||||
--replace
|
--replace
|
||||||
echo "Uploaded jar"
|
echo "Uploaded jar"
|
||||||
|
zipsum=$(sha256sum "i2pfirefox.zip")
|
||||||
github-release upload --user "${GITHUB_USER}" \
|
github-release upload --user "${GITHUB_USER}" \
|
||||||
--repo "${GITHUB_REPO}" \
|
--repo "${GITHUB_REPO}" \
|
||||||
--tag "${GITHUB_TAG}" \
|
--tag "${GITHUB_TAG}" \
|
||||||
--label "I2P Browser launcher as a .jar and a set of semi-univeral launcher scripts." \
|
--label "I2P Browser launcher as a .jar and a set of semi-univeral launcher scripts. ${zipsum}" \
|
||||||
--name "i2pfirefox.zip" \
|
--name "i2pfirefox.zip" \
|
||||||
--file "i2pfirefox.zip" \
|
--file "i2pfirefox.zip" \
|
||||||
--replace
|
--replace
|
||||||
echo "Uploaded freestanding zip"
|
echo "Uploaded freestanding zip"
|
||||||
|
jvmsum=$(sha256sum "i2pbrowser.zip")
|
||||||
github-release upload --user "${GITHUB_USER}" \
|
github-release upload --user "${GITHUB_USER}" \
|
||||||
--repo "${GITHUB_REPO}" \
|
--repo "${GITHUB_REPO}" \
|
||||||
--tag "${GITHUB_TAG}" \
|
--tag "${GITHUB_TAG}" \
|
||||||
--label "I2P Browser launcher as a Jpackage, does not require a JVM, Linux Only for now unless you BYO." \
|
--label "I2P Browser launcher as a Jpackage, does not require a JVM. ${jvmsum}" \
|
||||||
--name "i2pbrowser.zip" \
|
--name "i2pbrowser.zip" \
|
||||||
--file "i2pbrowser.zip" \
|
--file "i2pbrowser.zip" \
|
||||||
--replace
|
--replace
|
||||||
echo "Uploaded jpackage zip"
|
echo "Uploaded jpackage zip"
|
||||||
|
debsum=$(sha256sum "i2pbrowser_${GITHUB_TAG}_amd64.deb")
|
||||||
|
github-release upload --user "${GITHUB_USER}" \
|
||||||
|
--repo "${GITHUB_REPO}" \
|
||||||
|
--tag "${GITHUB_TAG}" \
|
||||||
|
--label "I2P Browser launcher as a Jpackage inside of a Debian package. ${debsum}" \
|
||||||
|
--name "i2pbrowser_${GITHUB_TAG}_amd64.deb" \
|
||||||
|
--file "i2pbrowser_${GITHUB_TAG}_amd64.deb" \
|
||||||
|
--replace
|
||||||
|
echo "Uploaded debian package"
|
||||||
|
rpmsum=$(sha256sum i2pbrowser-${GITHUB_TAG}-1.x86_64.rpm)
|
||||||
|
github-release upload --user "${GITHUB_USER}" \
|
||||||
|
--repo "${GITHUB_REPO}" \
|
||||||
|
--tag "${GITHUB_TAG}" \
|
||||||
|
--label "I2P Browser launcher as a Jpackage inside of a Fedora package. ${rpmsum}" \
|
||||||
|
--name "i2pbrowser-${GITHUB_TAG}-1.x86_64.rpm" \
|
||||||
|
--file "i2pbrowser-${GITHUB_TAG}-1.x86_64.rpm" \
|
||||||
|
--replace
|
||||||
|
echo "Uploaded fedora package"
|
||||||
git pull github --tags
|
git pull github --tags
|
||||||
git push --all
|
git push --all
|
||||||
|
Binary file not shown.
5
src/i2p.chromium.base.profile/LICENSE.md
Normal file
5
src/i2p.chromium.base.profile/LICENSE.md
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
This browser profile is entirely composed of the work of Free Software developers.
|
||||||
|
The licenses for the sub-projects may be found in the extensions directories themselves.
|
||||||
|
|
||||||
|
i2p.chromium.usabilty.profile/extensions/i2pchrome.js/
|
||||||
|
i2p.chromium.usabilty.profile/extensions/noscript.js/
|
@ -1,6 +0,0 @@
|
|||||||
TODO:
|
|
||||||
|
|
||||||
Licensing work! This is probably mostly done, but I need to double-check it to make sure
|
|
||||||
the T&C are the same from all of these extensions are the same as for their Firefox versions
|
|
||||||
since I did the licensing review already. Since the license is included with the unpacked
|
|
||||||
extensions, we're almost certainly good.
|
|
0
src/i2p.chromium.base.profile/first-run
Normal file
0
src/i2p.chromium.base.profile/first-run
Normal file
7
src/i2p.chromium.usability.profile/LICENSE.md
Normal file
7
src/i2p.chromium.usability.profile/LICENSE.md
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
This browser profile is entirely composed of the work of Free Software developers.
|
||||||
|
The licenses for the sub-projects may be found in the extensions directories themselves.
|
||||||
|
|
||||||
|
i2p.chromium.usabilty.profile/extensions/i2pchrome.js/
|
||||||
|
i2p.chromium.usabilty.profile/extensions/jshelter.js/
|
||||||
|
i2p.chromium.usabilty.profile/extensions/localcdn.js/
|
||||||
|
i2p.chromium.usabilty.profile/extensions/ublock.js/
|
@ -1,6 +0,0 @@
|
|||||||
TODO:
|
|
||||||
|
|
||||||
Licensing work! This is probably mostly done, but I need to double-check it to make sure
|
|
||||||
the T&C are the same from all of these extensions are the same as for their Firefox versions
|
|
||||||
since I did the licensing review already. Since the license is included with the unpacked
|
|
||||||
extensions, we're almost certainly good.
|
|
0
src/i2p.chromium.usability.profile/first-run
Normal file
0
src/i2p.chromium.usability.profile/first-run
Normal file
Binary file not shown.
0
src/i2p.firefox.base.profile/first-run
Normal file
0
src/i2p.firefox.base.profile/first-run
Normal file
@ -60,6 +60,6 @@ user_pref("media.navigator.enabled", false);
|
|||||||
user_pref("dom.w3c_touch_events.enabled", false);
|
user_pref("dom.w3c_touch_events.enabled", false);
|
||||||
user_pref("browser.privatebrowsing.autostart", false);
|
user_pref("browser.privatebrowsing.autostart", false);
|
||||||
user_pref("browser.display.use_system_colors", false);
|
user_pref("browser.display.use_system_colors", false);
|
||||||
user_pref("dom.image-lazy-loading.enabled", false)
|
user_pref("dom.image-lazy-loading.enabled", false);
|
||||||
user_pref("extensions.autoDisableScopes", 0);
|
user_pref("extensions.autoDisableScopes", 0);
|
||||||
user_pref("extensions.enabledScopes", 1);
|
user_pref("extensions.enabledScopes", 1);
|
Binary file not shown.
0
src/i2p.firefox.usability.profile/first-run
Normal file
0
src/i2p.firefox.usability.profile/first-run
Normal file
@ -60,6 +60,6 @@ user_pref("media.navigator.enabled", false);
|
|||||||
user_pref("dom.w3c_touch_events.enabled", false);
|
user_pref("dom.w3c_touch_events.enabled", false);
|
||||||
user_pref("browser.privatebrowsing.autostart", false);
|
user_pref("browser.privatebrowsing.autostart", false);
|
||||||
user_pref("browser.display.use_system_colors", false);
|
user_pref("browser.display.use_system_colors", false);
|
||||||
user_pref("dom.image-lazy-loading.enabled", false)
|
user_pref("dom.image-lazy-loading.enabled", false);
|
||||||
user_pref("extensions.autoDisableScopes", 0);
|
user_pref("extensions.autoDisableScopes", 0);
|
||||||
user_pref("extensions.enabledScopes", 1);
|
user_pref("extensions.enabledScopes", 1);
|
@ -20,7 +20,7 @@ import java.util.ArrayList;
|
|||||||
* @author idk
|
* @author idk
|
||||||
* @since 0.0.16
|
* @since 0.0.16
|
||||||
*/
|
*/
|
||||||
public class I2PBrowser {
|
public class I2PBrowser extends I2PCommonBrowser {
|
||||||
private final I2PFirefox i2pFirefox = new I2PFirefox();
|
private final I2PFirefox i2pFirefox = new I2PFirefox();
|
||||||
private final I2PChromium i2pChromium = new I2PChromium();
|
private final I2PChromium i2pChromium = new I2PChromium();
|
||||||
private final I2PGenericUnsafeBrowser i2pGeneral =
|
private final I2PGenericUnsafeBrowser i2pGeneral =
|
||||||
@ -32,17 +32,17 @@ public class I2PBrowser {
|
|||||||
public boolean usability = false;
|
public boolean usability = false;
|
||||||
|
|
||||||
private void launchFirefox(boolean privateWindow, String[] url) {
|
private void launchFirefox(boolean privateWindow, String[] url) {
|
||||||
System.out.println("I2PFirefox");
|
println("I2PFirefox");
|
||||||
I2PFirefox.usability = usability;
|
I2PFirefox.usability = usability;
|
||||||
i2pFirefox.launch(privateWindow, url);
|
i2pFirefox.launch(privateWindow, url);
|
||||||
}
|
}
|
||||||
private void launchChromium(boolean privateWindow, String[] url) {
|
private void launchChromium(boolean privateWindow, String[] url) {
|
||||||
System.out.println("I2PChromium");
|
println("I2PChromium");
|
||||||
I2PChromiumProfileBuilder.usability = usability;
|
I2PChromiumProfileBuilder.usability = usability;
|
||||||
i2pChromium.launch(privateWindow, url);
|
i2pChromium.launch(privateWindow, url);
|
||||||
}
|
}
|
||||||
private void launchGeneric(boolean privateWindow, String[] url) {
|
private void launchGeneric(boolean privateWindow, String[] url) {
|
||||||
System.out.println("I2PChromium");
|
println("I2PChromium");
|
||||||
i2pGeneral.launch(privateWindow, url);
|
i2pGeneral.launch(privateWindow, url);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -112,6 +112,7 @@ public class I2PBrowser {
|
|||||||
* @since 0.0.17
|
* @since 0.0.17
|
||||||
*/
|
*/
|
||||||
public void launch(boolean privateWindow, String[] url) {
|
public void launch(boolean privateWindow, String[] url) {
|
||||||
|
validateUserDir();
|
||||||
if (generic)
|
if (generic)
|
||||||
this.launchGeneric(privateWindow, url);
|
this.launchGeneric(privateWindow, url);
|
||||||
if ((chromium && firefox) || (!chromium && !firefox)) {
|
if ((chromium && firefox) || (!chromium && !firefox)) {
|
||||||
@ -175,26 +176,29 @@ public class I2PBrowser {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
|
validateUserDir();
|
||||||
boolean privateBrowsing = false;
|
boolean privateBrowsing = false;
|
||||||
System.out.println("I2PBrowser");
|
println("I2PBrowser");
|
||||||
I2PBrowser i2pBrowser = new I2PBrowser();
|
I2PBrowser i2pBrowser = new I2PBrowser();
|
||||||
ArrayList<String> visitURL = new ArrayList<String>();
|
ArrayList<String> visitURL = new ArrayList<String>();
|
||||||
if (args != null && args.length > 0) {
|
if (args != null) {
|
||||||
for (String arg : args) {
|
if (args.length > 0) {
|
||||||
if (arg.equals("-private")) {
|
for (String arg : args) {
|
||||||
privateBrowsing = true;
|
if (arg.equals("-private")) {
|
||||||
}
|
privateBrowsing = true;
|
||||||
if (arg.equals("-chromium")) {
|
}
|
||||||
i2pBrowser.chromium = true;
|
if (arg.equals("-chromium")) {
|
||||||
}
|
i2pBrowser.chromium = true;
|
||||||
if (arg.equals("-firefox")) {
|
}
|
||||||
i2pBrowser.firefox = true;
|
if (arg.equals("-firefox")) {
|
||||||
}
|
i2pBrowser.firefox = true;
|
||||||
if (arg.equals("-usability")) {
|
}
|
||||||
i2pBrowser.usability = true;
|
if (arg.equals("-usability")) {
|
||||||
}
|
i2pBrowser.usability = true;
|
||||||
if (!arg.startsWith("-")) {
|
}
|
||||||
visitURL.add(ValidURL(arg));
|
if (!arg.startsWith("-")) {
|
||||||
|
visitURL.add(ValidURL(arg));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -19,7 +19,7 @@ import java.util.ArrayList;
|
|||||||
* @author idk
|
* @author idk
|
||||||
* @since 0.0.1
|
* @since 0.0.1
|
||||||
*/
|
*/
|
||||||
public class I2PChromium {
|
public class I2PChromium extends I2PCommonBrowser {
|
||||||
private final String[] CHROMIUM_SEARCH_PATHS = CHROMIUM_FINDER();
|
private final String[] CHROMIUM_SEARCH_PATHS = CHROMIUM_FINDER();
|
||||||
private final int DEFAULT_TIMEOUT = 200;
|
private final int DEFAULT_TIMEOUT = 200;
|
||||||
private Process p = null;
|
private Process p = null;
|
||||||
@ -35,7 +35,7 @@ public class I2PChromium {
|
|||||||
for (String path : CHROMIUM_SEARCH_PATHS) {
|
for (String path : CHROMIUM_SEARCH_PATHS) {
|
||||||
File f = new File(path);
|
File f = new File(path);
|
||||||
if (f.exists()) {
|
if (f.exists()) {
|
||||||
System.out.println("Found Chromium at " + path);
|
println("Found Chromium at " + path);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -44,7 +44,7 @@ public class I2PChromium {
|
|||||||
for (String path : CHROMIUM_SEARCH_PATHS) {
|
for (String path : CHROMIUM_SEARCH_PATHS) {
|
||||||
File f = new File(path);
|
File f = new File(path);
|
||||||
if (f.exists()) {
|
if (f.exists()) {
|
||||||
System.out.println("Found Chromium at " + path);
|
println("Found Chromium at " + path);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -250,10 +250,10 @@ public class I2PChromium {
|
|||||||
for (String chrome : chromees) {
|
for (String chrome : chromees) {
|
||||||
File chromeFile = new File(chrome);
|
File chromeFile = new File(chrome);
|
||||||
if (chromeFile.exists()) {
|
if (chromeFile.exists()) {
|
||||||
System.out.println("Found valid chromium at " + chrome);
|
println("Found valid chromium at " + chrome);
|
||||||
validChromiums.add(chrome);
|
validChromiums.add(chrome);
|
||||||
}
|
}
|
||||||
System.out.println("chrome at " + chrome + "does not exist");
|
println("chrome at " + chrome + "does not exist");
|
||||||
}
|
}
|
||||||
return validChromiums.toArray(new String[validChromiums.size()]);
|
return validChromiums.toArray(new String[validChromiums.size()]);
|
||||||
}
|
}
|
||||||
@ -353,9 +353,11 @@ public class I2PChromium {
|
|||||||
// return processBuilder(new String[]{});
|
// return processBuilder(new String[]{});
|
||||||
ArrayList<String> argList = new ArrayList<String>();
|
ArrayList<String> argList = new ArrayList<String>();
|
||||||
argList.add("--incognito");
|
argList.add("--incognito");
|
||||||
if (args != null && args.length > 0) {
|
if (args != null) {
|
||||||
for (String arg : args) {
|
if (args.length > 0) {
|
||||||
argList.add(arg);
|
for (String arg : args) {
|
||||||
|
argList.add(arg);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return processBuilder(argList.toArray(new String[argList.size()]));
|
return processBuilder(argList.toArray(new String[argList.size()]));
|
||||||
@ -397,7 +399,10 @@ public class I2PChromium {
|
|||||||
public ProcessBuilder processBuilder(String[] args) {
|
public ProcessBuilder processBuilder(String[] args) {
|
||||||
String chrome = topChromium();
|
String chrome = topChromium();
|
||||||
if (!chrome.isEmpty()) {
|
if (!chrome.isEmpty()) {
|
||||||
String[] newArgs = new String[args.length + 32];
|
int arglength = 0;
|
||||||
|
if (args != null)
|
||||||
|
arglength = args.length;
|
||||||
|
String[] newArgs = new String[arglength + 32];
|
||||||
newArgs[0] = chrome;
|
newArgs[0] = chrome;
|
||||||
newArgs[1] =
|
newArgs[1] =
|
||||||
"--user-data-dir=" + I2PChromiumProfileBuilder.profileDirectory();
|
"--user-data-dir=" + I2PChromiumProfileBuilder.profileDirectory();
|
||||||
@ -463,15 +468,17 @@ public class I2PChromium {
|
|||||||
+","+
|
+","+
|
||||||
new
|
new
|
||||||
File(I2PChromiumProfileBuilder.profileDirectory(),"extensions/scriptsafe.js").getAbsolutePath();*/
|
File(I2PChromiumProfileBuilder.profileDirectory(),"extensions/scriptsafe.js").getAbsolutePath();*/
|
||||||
if (args.length > 0) {
|
if (args != null) {
|
||||||
for (int i = 0; i < args.length; i++) {
|
if (arglength > 0) {
|
||||||
newArgs[i + 32] = args[i];
|
for (int i = 0; i < arglength; i++) {
|
||||||
|
newArgs[i + 32] = args[i];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return new ProcessBuilder(newArgs).directory(
|
return new ProcessBuilder(newArgs).directory(
|
||||||
I2PChromiumProfileBuilder.runtimeDirectory(true));
|
I2PChromiumProfileBuilder.runtimeDirectory(true));
|
||||||
} else {
|
} else {
|
||||||
System.out.println("No Chromium found.");
|
println("No Chromium found.");
|
||||||
return new ProcessBuilder(args);
|
return new ProcessBuilder(args);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -542,22 +549,24 @@ public class I2PChromium {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public Process launchAndDetatch(boolean privateWindow, String[] url) {
|
public Process launchAndDetatch(boolean privateWindow, String[] url) {
|
||||||
|
validateUserDir();
|
||||||
if (waitForProxy()) {
|
if (waitForProxy()) {
|
||||||
String profileDirectory = I2PChromiumProfileBuilder.profileDirectory();
|
String profileDirectory = I2PChromiumProfileBuilder.profileDirectory();
|
||||||
if (I2PChromiumProfileChecker.validateProfileDirectory(
|
if (I2PChromiumProfileChecker.validateProfileDirectory(
|
||||||
profileDirectory)) {
|
profileDirectory)) {
|
||||||
System.out.println("Valid profile directory: " + profileDirectory);
|
println("Valid profile directory: " + profileDirectory);
|
||||||
} else {
|
} else {
|
||||||
System.out.println("Invalid profile directory: " + profileDirectory +
|
println("Invalid profile directory: " + profileDirectory +
|
||||||
" rebuilding...");
|
" rebuilding...");
|
||||||
if (!I2PChromiumProfileBuilder.copyBaseProfiletoProfile()) {
|
if (!I2PChromiumProfileBuilder.copyBaseProfiletoProfile()) {
|
||||||
System.out.println("Failed to rebuild profile directory: " +
|
println("Failed to rebuild profile directory: " + profileDirectory);
|
||||||
profileDirectory);
|
|
||||||
return null;
|
return null;
|
||||||
} else {
|
} else {
|
||||||
System.out.println("Rebuilt profile directory: " + profileDirectory);
|
println("Rebuilt profile directory: " + profileDirectory);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (validateProfileFirstRun(profileDirectory))
|
||||||
|
return null;
|
||||||
ProcessBuilder pb = null;
|
ProcessBuilder pb = null;
|
||||||
if (privateWindow) {
|
if (privateWindow) {
|
||||||
pb = this.privateProcessBuilder(url);
|
pb = this.privateProcessBuilder(url);
|
||||||
@ -589,13 +598,15 @@ public class I2PChromium {
|
|||||||
public void launch(boolean privateWindow, String[] url) {
|
public void launch(boolean privateWindow, String[] url) {
|
||||||
if (waitForProxy()) {
|
if (waitForProxy()) {
|
||||||
p = launchAndDetatch(privateWindow, url);
|
p = launchAndDetatch(privateWindow, url);
|
||||||
System.out.println("I2PChromium");
|
if (p == null)
|
||||||
|
return;
|
||||||
|
println("I2PChromium");
|
||||||
try {
|
try {
|
||||||
System.out.println("Waiting for I2PChromium to close...");
|
println("Waiting for I2PChromium to close...");
|
||||||
int exit = p.waitFor();
|
int exit = p.waitFor();
|
||||||
System.out.println("I2PChromium exited with value: " + exit);
|
println("I2PChromium exited with value: " + exit);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
System.out.println("Error: " + e.getMessage());
|
println("Error: " + e.getMessage());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -631,24 +642,27 @@ public class I2PChromium {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
|
validateUserDir();
|
||||||
boolean privateBrowsing = false;
|
boolean privateBrowsing = false;
|
||||||
System.out.println("I2PChromium");
|
println("I2PChromium");
|
||||||
I2PChromium i2pChromium = new I2PChromium();
|
I2PChromium i2pChromium = new I2PChromium();
|
||||||
System.out.println("checking for private browsing");
|
println("checking for private browsing");
|
||||||
ArrayList<String> visitURL = new ArrayList<String>();
|
ArrayList<String> visitURL = new ArrayList<String>();
|
||||||
if (args != null && args.length > 0) {
|
if (args != null) {
|
||||||
for (String arg : args) {
|
if (args.length > 0) {
|
||||||
if (arg.equals("-private")) {
|
for (String arg : args) {
|
||||||
privateBrowsing = true;
|
if (arg.equals("-private")) {
|
||||||
System.out.println(
|
privateBrowsing = true;
|
||||||
"private browsing is true, profile will be discarded at end of session");
|
println(
|
||||||
}
|
"private browsing is true, profile will be discarded at end of session");
|
||||||
if (arg.equals("-usability")) {
|
}
|
||||||
I2PChromiumProfileBuilder.usability = true;
|
if (arg.equals("-usability")) {
|
||||||
}
|
I2PChromiumProfileBuilder.usability = true;
|
||||||
if (!arg.startsWith("-")) {
|
}
|
||||||
// check if it's a URL
|
if (!arg.startsWith("-")) {
|
||||||
visitURL.add(ValidURL(arg));
|
// check if it's a URL
|
||||||
|
visitURL.add(ValidURL(arg));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -120,22 +120,23 @@ public class I2PChromiumProfileBuilder extends I2PCommonBrowser {
|
|||||||
public static boolean copyBaseProfiletoProfile() {
|
public static boolean copyBaseProfiletoProfile() {
|
||||||
String baseProfile = baseProfileDirectory(usabilityMode());
|
String baseProfile = baseProfileDirectory(usabilityMode());
|
||||||
String profile = profileDirectory();
|
String profile = profileDirectory();
|
||||||
System.out.println("Copying base profile to profile directory: " +
|
println("Copying base profile to profile directory: " + baseProfile +
|
||||||
baseProfile + " -> " + profile);
|
" -> " + profile);
|
||||||
if (baseProfile.isEmpty() || profile.isEmpty()) {
|
if (baseProfile.isEmpty() || profile.isEmpty()) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
File baseProfileDir = new File(baseProfile);
|
File baseProfileDir = new File(baseProfile);
|
||||||
File profileDir = new File(profile);
|
File profileDir = new File(profile);
|
||||||
|
if (!profileDir.exists()) {
|
||||||
try {
|
try {
|
||||||
System.out.println("Copying base profile to profile directory");
|
println("Copying base profile to profile directory");
|
||||||
copyDirectory(baseProfileDir, profileDir, "chromium", usabilityMode());
|
copyDirectory(baseProfileDir, profileDir, "chromium", usabilityMode());
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
System.out.println("Error copying base profile to profile" + e);
|
println("Error copying base profile to profile" + e);
|
||||||
return false;
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
System.out.println("Copied base profile to profile directory");
|
println("Copied base profile to profile directory");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -18,7 +18,7 @@ import java.io.File;
|
|||||||
* @author idk
|
* @author idk
|
||||||
* @since 0.0.1
|
* @since 0.0.1
|
||||||
*/
|
*/
|
||||||
public class I2PChromiumProfileChecker {
|
public class I2PChromiumProfileChecker extends I2PCommonBrowser {
|
||||||
/**
|
/**
|
||||||
* Output feedback if the profile directory is valid or invalid
|
* Output feedback if the profile directory is valid or invalid
|
||||||
*
|
*
|
||||||
@ -29,15 +29,15 @@ public class I2PChromiumProfileChecker {
|
|||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
String profileDirectory = I2PChromiumProfileBuilder.profileDirectory();
|
String profileDirectory = I2PChromiumProfileBuilder.profileDirectory();
|
||||||
if (profileDirectory == null) {
|
if (profileDirectory == null) {
|
||||||
System.out.println("No profile directory found");
|
println("No profile directory found");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
System.out.println("Profile directory: " + profileDirectory);
|
println("Profile directory: " + profileDirectory);
|
||||||
boolean ok = validateProfileDirectory(profileDirectory);
|
boolean ok = validateProfileDirectory(profileDirectory);
|
||||||
if (ok) {
|
if (ok) {
|
||||||
System.out.println("Profile directory is valid");
|
println("Profile directory is valid");
|
||||||
} else {
|
} else {
|
||||||
System.out.println("Profile directory is invalid");
|
println("Profile directory is invalid");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
@ -50,23 +50,23 @@ public class I2PChromiumProfileChecker {
|
|||||||
public static boolean validateProfileDirectory(String profileDirectory) {
|
public static boolean validateProfileDirectory(String profileDirectory) {
|
||||||
File profileDir = new File(profileDirectory);
|
File profileDir = new File(profileDirectory);
|
||||||
if (!profileDir.exists()) {
|
if (!profileDir.exists()) {
|
||||||
System.out.println("Profile directory does not exist");
|
println("Profile directory does not exist");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (!profileDir.isDirectory()) {
|
if (!profileDir.isDirectory()) {
|
||||||
System.out.println("Profile directory is not a directory");
|
println("Profile directory is not a directory");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (!profileDir.canRead()) {
|
if (!profileDir.canRead()) {
|
||||||
System.out.println("Profile directory is not readable");
|
println("Profile directory is not readable");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (!profileDir.canWrite()) {
|
if (!profileDir.canWrite()) {
|
||||||
System.out.println("Profile directory is not writable");
|
println("Profile directory is not writable");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (!validateExtensionDirectory(profileDir + "/extensions")) {
|
if (!validateExtensionDirectory(profileDir + "/extensions")) {
|
||||||
System.out.println("extensions directory is invalid");
|
println("extensions directory is invalid");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
@ -81,19 +81,19 @@ public class I2PChromiumProfileChecker {
|
|||||||
public static boolean validateFile(String file) {
|
public static boolean validateFile(String file) {
|
||||||
File f = new File(file);
|
File f = new File(file);
|
||||||
if (!f.exists()) {
|
if (!f.exists()) {
|
||||||
System.out.println("User JavaScript file does not exist");
|
println("User JavaScript file does not exist");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (!f.isFile()) {
|
if (!f.isFile()) {
|
||||||
System.out.println("User JavaScript file is not a file");
|
println("User JavaScript file is not a file");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (!f.canRead()) {
|
if (!f.canRead()) {
|
||||||
System.out.println("User JavaScript file is not readable");
|
println("User JavaScript file is not readable");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (!f.canWrite()) {
|
if (!f.canWrite()) {
|
||||||
System.out.println("User JavaScript file is not writable");
|
println("User JavaScript file is not writable");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
@ -108,19 +108,19 @@ public class I2PChromiumProfileChecker {
|
|||||||
public static boolean validateExtensionDirectory(String extensionDirectory) {
|
public static boolean validateExtensionDirectory(String extensionDirectory) {
|
||||||
File extensionDir = new File(extensionDirectory);
|
File extensionDir = new File(extensionDirectory);
|
||||||
if (!extensionDir.exists()) {
|
if (!extensionDir.exists()) {
|
||||||
System.out.println("Extension directory does not exist");
|
println("Extension directory does not exist");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (!extensionDir.isDirectory()) {
|
if (!extensionDir.isDirectory()) {
|
||||||
System.out.println("Extension directory is not a directory");
|
println("Extension directory is not a directory");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (!extensionDir.canRead()) {
|
if (!extensionDir.canRead()) {
|
||||||
System.out.println("Extension directory is not readable");
|
println("Extension directory is not readable");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (!extensionDir.canWrite()) {
|
if (!extensionDir.canWrite()) {
|
||||||
System.out.println("Extension directory is not writable");
|
println("Extension directory is not writable");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
@ -23,7 +23,7 @@ public class I2PChromiumProfileUnpacker extends I2PCommonBrowser {
|
|||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
String profileDirectory = I2PChromiumProfileBuilder.profileDirectory();
|
String profileDirectory = I2PChromiumProfileBuilder.profileDirectory();
|
||||||
if (profileDirectory == null) {
|
if (profileDirectory == null) {
|
||||||
System.out.println("No profile directory found");
|
println("No profile directory found");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -35,7 +35,7 @@ public class I2PChromiumProfileUnpacker extends I2PCommonBrowser {
|
|||||||
* @since 0.0.1
|
* @since 0.0.1
|
||||||
*/
|
*/
|
||||||
public boolean unpackProfile(String profileDirectory, String mode) {
|
public boolean unpackProfile(String profileDirectory, String mode) {
|
||||||
System.out.println("Unpacking base profile to " + profileDirectory);
|
println("Unpacking base profile to " + profileDirectory);
|
||||||
return unpackProfile(profileDirectory, "chromium", mode);
|
return unpackProfile(profileDirectory, "chromium", mode);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -8,6 +8,9 @@ import java.io.InputStream;
|
|||||||
import java.io.OutputStream;
|
import java.io.OutputStream;
|
||||||
import java.nio.file.Files;
|
import java.nio.file.Files;
|
||||||
import java.nio.file.StandardCopyOption;
|
import java.nio.file.StandardCopyOption;
|
||||||
|
import java.util.logging.FileHandler;
|
||||||
|
import java.util.logging.Logger;
|
||||||
|
import java.util.logging.SimpleFormatter;
|
||||||
import java.util.zip.ZipEntry;
|
import java.util.zip.ZipEntry;
|
||||||
import java.util.zip.ZipInputStream;
|
import java.util.zip.ZipInputStream;
|
||||||
|
|
||||||
@ -27,6 +30,93 @@ import java.util.zip.ZipInputStream;
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
public class I2PCommonBrowser {
|
public class I2PCommonBrowser {
|
||||||
|
static Logger logger = Logger.getLogger("browserlauncher");
|
||||||
|
static FileHandler fh;
|
||||||
|
|
||||||
|
public I2PCommonBrowser() {
|
||||||
|
try {
|
||||||
|
// This block configure the logger with handler and formatter
|
||||||
|
fh = new FileHandler(logFile().toString());
|
||||||
|
logger.addHandler(fh);
|
||||||
|
SimpleFormatter formatter = new SimpleFormatter();
|
||||||
|
fh.setFormatter(formatter);
|
||||||
|
// the following statement is used to log any messages
|
||||||
|
logger.info("Browser log");
|
||||||
|
} catch (SecurityException e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
} catch (IOException e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void validateUserDir() {
|
||||||
|
println("Validating user directory");
|
||||||
|
String userDir = System.getProperty("user.dir");
|
||||||
|
String userHome = System.getProperty("user.home");
|
||||||
|
File userDirFile = new File(userDir);
|
||||||
|
File userHomeFile = new File(userHome);
|
||||||
|
println("user.dir testing !" + userHomeFile.getAbsolutePath() + ".equals(" +
|
||||||
|
userDirFile.getAbsolutePath() + ")");
|
||||||
|
if (!userDirFile.getAbsolutePath().contains("Program Files")) {
|
||||||
|
if (!userDirFile.getAbsolutePath().equals(
|
||||||
|
userHomeFile.getAbsolutePath())) {
|
||||||
|
println("user.dir is not inconvenient");
|
||||||
|
if (userDirFile.exists()) {
|
||||||
|
println("user.dir exists");
|
||||||
|
if (userDirFile.isDirectory()) {
|
||||||
|
println("user.dir is a directory");
|
||||||
|
if (userDirFile.canWrite()) {
|
||||||
|
println("user.dir is writable");
|
||||||
|
return;
|
||||||
|
} else {
|
||||||
|
println("user.dir is not writable");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
{ println("user.dir is not actually a directory"); }
|
||||||
|
} else {
|
||||||
|
println("user.dir does not exist");
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
println("user.dir should not be the same as user.home");
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
println("user.dir cannot run from inside Program Files");
|
||||||
|
}
|
||||||
|
if (isWindows())
|
||||||
|
userHome = new File(userHome, "AppData/Local/I2P").getAbsolutePath();
|
||||||
|
File defaultPathFile = new File(userHome, "i2p/i2pbrowser");
|
||||||
|
if (!defaultPathFile.exists())
|
||||||
|
defaultPathFile.mkdirs();
|
||||||
|
if (!defaultPathFile.isDirectory()) {
|
||||||
|
println(
|
||||||
|
"default path exists and is not a directory, get it out of the way");
|
||||||
|
println(defaultPathFile.getAbsolutePath());
|
||||||
|
}
|
||||||
|
System.setProperty("user.dir", defaultPathFile.getAbsolutePath());
|
||||||
|
}
|
||||||
|
|
||||||
|
protected static boolean isWindows() {
|
||||||
|
String osName = System.getProperty("os.name");
|
||||||
|
println("os.name" + osName);
|
||||||
|
if (osName.contains("windows"))
|
||||||
|
return true;
|
||||||
|
if (osName.contains("Windows"))
|
||||||
|
return true;
|
||||||
|
if (osName.contains("WINDOWS"))
|
||||||
|
return true;
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void println(String line) { logger.info(line); }
|
||||||
|
|
||||||
|
private static File logFile() {
|
||||||
|
validateUserDir();
|
||||||
|
String userDir = System.getProperty("user.dir");
|
||||||
|
File log = new File(userDir, "logs");
|
||||||
|
if (!log.exists())
|
||||||
|
log.mkdirs();
|
||||||
|
return new File(log, "browserlauncher.log");
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* get the runtime directory, creating it if create=true
|
* get the runtime directory, creating it if create=true
|
||||||
@ -118,16 +208,16 @@ public class I2PCommonBrowser {
|
|||||||
|
|
||||||
protected boolean unpackProfile(String profileDirectory, String browser,
|
protected boolean unpackProfile(String profileDirectory, String browser,
|
||||||
String base) {
|
String base) {
|
||||||
System.out.println("Unpacking base profile to " + profileDirectory);
|
println("Unpacking base profile to " + profileDirectory);
|
||||||
try {
|
try {
|
||||||
final InputStream resources =
|
final InputStream resources =
|
||||||
this.getClass().getClassLoader().getResourceAsStream(
|
this.getClass().getClassLoader().getResourceAsStream(
|
||||||
"i2p." + browser + "." + base + ".profile.zip");
|
"i2p." + browser + "." + base + ".profile.zip");
|
||||||
if (resources == null) {
|
if (resources == null) {
|
||||||
System.out.println("Could not find resources");
|
println("Could not find resources");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
System.out.println(resources.toString());
|
println(resources.toString());
|
||||||
// InputStream corresponds to a zip file. Unzip it.
|
// InputStream corresponds to a zip file. Unzip it.
|
||||||
// Files.copy(r, new File(profileDirectory).toPath(),
|
// Files.copy(r, new File(profileDirectory).toPath(),
|
||||||
// StandardCopyOption.REPLACE_EXISTING);
|
// StandardCopyOption.REPLACE_EXISTING);
|
||||||
@ -135,15 +225,14 @@ public class I2PCommonBrowser {
|
|||||||
ZipEntry entry;
|
ZipEntry entry;
|
||||||
// while there are entries I process them
|
// while there are entries I process them
|
||||||
while ((entry = zis.getNextEntry()) != null) {
|
while ((entry = zis.getNextEntry()) != null) {
|
||||||
System.out.println("entry: " + entry.getName() + ", " +
|
println("entry: " + entry.getName() + ", " + entry.getSize());
|
||||||
entry.getSize());
|
|
||||||
// consume all the data from this entry
|
// consume all the data from this entry
|
||||||
if (entry.isDirectory()) {
|
if (entry.isDirectory()) {
|
||||||
System.out.println("Creating directory: " + entry.getName());
|
println("Creating directory: " + entry.getName());
|
||||||
File dir = new File(profileDirectory + "/" + entry.getName());
|
File dir = new File(profileDirectory + "/" + entry.getName());
|
||||||
dir.mkdirs();
|
dir.mkdirs();
|
||||||
} else {
|
} else {
|
||||||
System.out.println("Creating file: " + entry.getName());
|
println("Creating file: " + entry.getName());
|
||||||
File file = new File(profileDirectory + "/" + entry.getName());
|
File file = new File(profileDirectory + "/" + entry.getName());
|
||||||
file.createNewFile();
|
file.createNewFile();
|
||||||
Files.copy(zis, file.toPath(), StandardCopyOption.REPLACE_EXISTING);
|
Files.copy(zis, file.toPath(), StandardCopyOption.REPLACE_EXISTING);
|
||||||
@ -156,7 +245,7 @@ public class I2PCommonBrowser {
|
|||||||
// loop through the Enumeration
|
// loop through the Enumeration
|
||||||
|
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
System.out.println("Error copying profile files: " + e.getMessage());
|
println("Error copying profile files: " + e.getMessage());
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
@ -199,4 +288,23 @@ public class I2PCommonBrowser {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static boolean validateProfileFirstRun(String profileDirectory) {
|
||||||
|
File profileDir = new File(profileDirectory);
|
||||||
|
if (!profileDir.exists()) {
|
||||||
|
println("Profile directory does not exist");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
if (!profileDir.isDirectory()) {
|
||||||
|
println("Profile directory is not a directory");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
File frf = new File(profileDir, "first-run");
|
||||||
|
if (frf.exists()) {
|
||||||
|
frf.delete();
|
||||||
|
// is a first run
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -4,6 +4,7 @@ import java.io.File;
|
|||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.net.Socket;
|
import java.net.Socket;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
import java.util.concurrent.TimeUnit;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* I2PFirefox.java
|
* I2PFirefox.java
|
||||||
@ -19,7 +20,7 @@ import java.util.ArrayList;
|
|||||||
* @author idk
|
* @author idk
|
||||||
* @since 0.0.1
|
* @since 0.0.1
|
||||||
*/
|
*/
|
||||||
public class I2PFirefox {
|
public class I2PFirefox extends I2PCommonBrowser {
|
||||||
private final String[] FIREFOX_SEARCH_PATHS = FIREFOX_FINDER();
|
private final String[] FIREFOX_SEARCH_PATHS = FIREFOX_FINDER();
|
||||||
private final int DEFAULT_TIMEOUT = 200;
|
private final int DEFAULT_TIMEOUT = 200;
|
||||||
private Process p = null;
|
private Process p = null;
|
||||||
@ -36,7 +37,7 @@ public class I2PFirefox {
|
|||||||
for (String path : FIREFOX_SEARCH_PATHS) {
|
for (String path : FIREFOX_SEARCH_PATHS) {
|
||||||
File f = new File(path);
|
File f = new File(path);
|
||||||
if (f.exists()) {
|
if (f.exists()) {
|
||||||
System.out.println("Found Firefox at " + path);
|
println("Found Firefox at " + path);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -184,6 +185,8 @@ public class I2PFirefox {
|
|||||||
// list the files in the user.dir directory
|
// list the files in the user.dir directory
|
||||||
if (userFiles != null) {
|
if (userFiles != null) {
|
||||||
for (File userFile : userFiles) {
|
for (File userFile : userFiles) {
|
||||||
|
if (userFile.isDirectory())
|
||||||
|
continue;
|
||||||
if (userFile.getName().equals("firefox") ||
|
if (userFile.getName().equals("firefox") ||
|
||||||
userFile.getName().equals("firefox-bin") ||
|
userFile.getName().equals("firefox-bin") ||
|
||||||
userFile.getName().equals("firefox-esr") ||
|
userFile.getName().equals("firefox-esr") ||
|
||||||
@ -238,10 +241,10 @@ public class I2PFirefox {
|
|||||||
for (String firefox : firefoxes) {
|
for (String firefox : firefoxes) {
|
||||||
File firefoxFile = new File(firefox);
|
File firefoxFile = new File(firefox);
|
||||||
if (firefoxFile.exists()) {
|
if (firefoxFile.exists()) {
|
||||||
System.out.println("Found valid firefox at " + firefox);
|
println("Found valid firefox at " + firefox);
|
||||||
validFirefoxes.add(firefox);
|
validFirefoxes.add(firefox);
|
||||||
}
|
}
|
||||||
System.out.println("firefox at " + firefox + "does not exist");
|
println("firefox at " + firefox + "does not exist");
|
||||||
}
|
}
|
||||||
return validFirefoxes.toArray(new String[validFirefoxes.size()]);
|
return validFirefoxes.toArray(new String[validFirefoxes.size()]);
|
||||||
}
|
}
|
||||||
@ -330,7 +333,7 @@ public class I2PFirefox {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* * Build a ProcessBuilder for the top Firefox binary and
|
* Build a ProcessBuilder for the top Firefox binary and
|
||||||
* the default profile. Pass the --private-window flag to
|
* the default profile. Pass the --private-window flag to
|
||||||
* open a private window.
|
* open a private window.
|
||||||
*
|
*
|
||||||
@ -341,9 +344,33 @@ public class I2PFirefox {
|
|||||||
public ProcessBuilder privateProcessBuilder(String[] args) {
|
public ProcessBuilder privateProcessBuilder(String[] args) {
|
||||||
ArrayList<String> argList = new ArrayList<String>();
|
ArrayList<String> argList = new ArrayList<String>();
|
||||||
argList.add("--private-window");
|
argList.add("--private-window");
|
||||||
if (args != null && args.length > 0) {
|
if (args != null) {
|
||||||
for (String arg : args) {
|
if (args.length > 0) {
|
||||||
argList.add(arg);
|
for (String arg : args) {
|
||||||
|
argList.add(arg);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return processBuilder(argList.toArray(new String[argList.size()]));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Build a ProcessBuilder for the top Firefox binary and
|
||||||
|
* the default profile. Pass the --headless flag to open
|
||||||
|
* without a window.
|
||||||
|
*
|
||||||
|
* @param args the arguments to pass to the Firefox binary
|
||||||
|
* @return a ProcessBuilder for the top Firefox binary and
|
||||||
|
* the default profile.
|
||||||
|
*/
|
||||||
|
public ProcessBuilder headlessProcessBuilder(String[] args) {
|
||||||
|
ArrayList<String> argList = new ArrayList<String>();
|
||||||
|
argList.add("--headless");
|
||||||
|
if (args != null) {
|
||||||
|
if (args.length > 0) {
|
||||||
|
for (String arg : args) {
|
||||||
|
argList.add(arg);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return processBuilder(argList.toArray(new String[argList.size()]));
|
return processBuilder(argList.toArray(new String[argList.size()]));
|
||||||
@ -362,19 +389,25 @@ public class I2PFirefox {
|
|||||||
public ProcessBuilder processBuilder(String[] args) {
|
public ProcessBuilder processBuilder(String[] args) {
|
||||||
String firefox = topFirefox();
|
String firefox = topFirefox();
|
||||||
if (!firefox.isEmpty()) {
|
if (!firefox.isEmpty()) {
|
||||||
String[] newArgs = new String[args.length + 3];
|
int arglength = 0;
|
||||||
|
if (args != null)
|
||||||
|
arglength = args.length;
|
||||||
|
String[] newArgs = new String[arglength + 4];
|
||||||
newArgs[0] = firefox;
|
newArgs[0] = firefox;
|
||||||
newArgs[1] = "--profile";
|
newArgs[1] = "--new-instance";
|
||||||
newArgs[2] = I2PFirefoxProfileBuilder.profileDirectory();
|
newArgs[2] = "--profile";
|
||||||
if (args != null && args.length > 0) {
|
newArgs[3] = I2PFirefoxProfileBuilder.profileDirectory();
|
||||||
for (int i = 0; i < args.length; i++) {
|
if (args != null) {
|
||||||
newArgs[i + 3] = args[i];
|
if (arglength > 0) {
|
||||||
|
for (int i = 0; i < arglength; i++) {
|
||||||
|
newArgs[i + 4] = args[i];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return new ProcessBuilder(newArgs).directory(
|
return new ProcessBuilder(newArgs).directory(
|
||||||
I2PFirefoxProfileBuilder.runtimeDirectory(true));
|
I2PFirefoxProfileBuilder.runtimeDirectory(true));
|
||||||
} else {
|
} else {
|
||||||
System.out.println("No Firefox found.");
|
println("No Firefox found.");
|
||||||
return new ProcessBuilder(args);
|
return new ProcessBuilder(args);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -423,6 +456,7 @@ public class I2PFirefox {
|
|||||||
*/
|
*/
|
||||||
public boolean waitForProxy(int timeout, int port, String host) {
|
public boolean waitForProxy(int timeout, int port, String host) {
|
||||||
for (int i = 0; i < timeout; i++) {
|
for (int i = 0; i < timeout; i++) {
|
||||||
|
println("Waiting for proxy");
|
||||||
if (checkifPortIsOccupied(port, host)) {
|
if (checkifPortIsOccupied(port, host)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@ -452,22 +486,48 @@ public class I2PFirefox {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public Process launchAndDetatch(boolean privateWindow, String[] url) {
|
public Process launchAndDetatch(boolean privateWindow, String[] url) {
|
||||||
|
validateUserDir();
|
||||||
if (waitForProxy()) {
|
if (waitForProxy()) {
|
||||||
String profileDirectory = I2PFirefoxProfileBuilder.profileDirectory();
|
String profileDirectory = I2PFirefoxProfileBuilder.profileDirectory();
|
||||||
if (I2PFirefoxProfileChecker.validateProfileDirectory(profileDirectory)) {
|
if (I2PFirefoxProfileChecker.validateProfileDirectory(profileDirectory)) {
|
||||||
System.out.println("Valid profile directory: " + profileDirectory);
|
println("Valid profile directory: " + profileDirectory);
|
||||||
} else {
|
} else {
|
||||||
System.out.println("Invalid profile directory: " + profileDirectory +
|
println("Invalid profile directory: " + profileDirectory +
|
||||||
" rebuilding...");
|
" rebuilding...");
|
||||||
if (!I2PFirefoxProfileBuilder.copyBaseProfiletoProfile(
|
if (!I2PFirefoxProfileBuilder.copyBaseProfiletoProfile(
|
||||||
usabilityMode())) {
|
usabilityMode())) {
|
||||||
System.out.println("Failed to rebuild profile directory: " +
|
println("Failed to rebuild profile directory: " + profileDirectory);
|
||||||
profileDirectory);
|
|
||||||
return null;
|
return null;
|
||||||
} else {
|
} else {
|
||||||
System.out.println("Rebuilt profile directory: " + profileDirectory);
|
println("Rebuilt profile directory: " + profileDirectory);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (validateProfileFirstRun(profileDirectory)) {
|
||||||
|
if (isWindows()) {
|
||||||
|
ProcessBuilder hpb = headlessProcessBuilder(url);
|
||||||
|
try {
|
||||||
|
Process hp = hpb.start();
|
||||||
|
try {
|
||||||
|
boolean hev = hp.waitFor(5, TimeUnit.SECONDS);
|
||||||
|
println("Headless browser run completed, exit: " + hev);
|
||||||
|
if (!hev)
|
||||||
|
hp.destroy();
|
||||||
|
if (hp.isAlive()) {
|
||||||
|
int forcedExitCode = hp.destroyForcibly().waitFor();
|
||||||
|
println("Headless browser run forcibly terminated, exit: " +
|
||||||
|
forcedExitCode);
|
||||||
|
}
|
||||||
|
int exitCode = hp.exitValue();
|
||||||
|
println("Headless browser run completed, exit: " + exitCode);
|
||||||
|
} catch (InterruptedException e) {
|
||||||
|
println("Headless browser error " + e.toString());
|
||||||
|
}
|
||||||
|
} catch (IOException e) {
|
||||||
|
println("Headless browser error " + e.toString());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
ProcessBuilder pb;
|
ProcessBuilder pb;
|
||||||
if (privateWindow) {
|
if (privateWindow) {
|
||||||
pb = privateProcessBuilder(url);
|
pb = privateProcessBuilder(url);
|
||||||
@ -477,7 +537,7 @@ public class I2PFirefox {
|
|||||||
try {
|
try {
|
||||||
System.out.println(pb.command());
|
System.out.println(pb.command());
|
||||||
p = pb.start();
|
p = pb.start();
|
||||||
System.out.println("I2PFirefox");
|
println("I2PFirefox");
|
||||||
sleep(2000);
|
sleep(2000);
|
||||||
return p;
|
return p;
|
||||||
} catch (Throwable e) {
|
} catch (Throwable e) {
|
||||||
@ -500,12 +560,14 @@ public class I2PFirefox {
|
|||||||
public void launch(boolean privateWindow, String[] url) {
|
public void launch(boolean privateWindow, String[] url) {
|
||||||
if (waitForProxy()) {
|
if (waitForProxy()) {
|
||||||
p = launchAndDetatch(privateWindow, url);
|
p = launchAndDetatch(privateWindow, url);
|
||||||
|
if (p == null)
|
||||||
|
return;
|
||||||
try {
|
try {
|
||||||
System.out.println("Waiting for I2PFirefox to close...");
|
println("Waiting for I2PFirefox to close...");
|
||||||
int exit = p.waitFor();
|
int exit = p.waitFor();
|
||||||
System.out.println("I2PFirefox exited with value: " + exit);
|
println("I2PFirefox exited with value: " + exit);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
System.out.println("Error: " + e.getMessage());
|
println("Error: " + e.getMessage());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -535,7 +597,7 @@ public class I2PFirefox {
|
|||||||
String[] schemes = {"http", "https"};
|
String[] schemes = {"http", "https"};
|
||||||
for (String scheme : schemes) {
|
for (String scheme : schemes) {
|
||||||
if (inUrl.startsWith(scheme)) {
|
if (inUrl.startsWith(scheme)) {
|
||||||
System.out.println("Valid URL: " + inUrl);
|
println("Valid URL: " + inUrl);
|
||||||
return inUrl;
|
return inUrl;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -543,26 +605,29 @@ public class I2PFirefox {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
|
validateUserDir();
|
||||||
boolean privateBrowsing = false;
|
boolean privateBrowsing = false;
|
||||||
System.out.println("checking for private browsing");
|
println("checking for private browsing");
|
||||||
ArrayList<String> visitURL = new ArrayList<String>();
|
ArrayList<String> visitURL = new ArrayList<String>();
|
||||||
if (args != null && args.length > 0) {
|
if (args != null) {
|
||||||
for (String arg : args) {
|
if (args.length > 0) {
|
||||||
if (arg.equals("-private")) {
|
for (String arg : args) {
|
||||||
privateBrowsing = true;
|
if (arg.equals("-private")) {
|
||||||
System.out.println(
|
privateBrowsing = true;
|
||||||
"private browsing is true, profile will be discarded at end of session");
|
println(
|
||||||
}
|
"private browsing is true, profile will be discarded at end of session");
|
||||||
if (arg.equals("-usability")) {
|
}
|
||||||
usability = true;
|
if (arg.equals("-usability")) {
|
||||||
}
|
usability = true;
|
||||||
if (!arg.startsWith("-")) {
|
}
|
||||||
// check if it's a URL
|
if (!arg.startsWith("-")) {
|
||||||
visitURL.add(ValidURL(arg));
|
// check if it's a URL
|
||||||
|
visitURL.add(ValidURL(arg));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
System.out.println("I2PFirefox");
|
println("I2PFirefox");
|
||||||
I2PFirefox i2pFirefox = new I2PFirefox();
|
I2PFirefox i2pFirefox = new I2PFirefox();
|
||||||
i2pFirefox.launch(privateBrowsing,
|
i2pFirefox.launch(privateBrowsing,
|
||||||
visitURL.toArray(new String[visitURL.size()]));
|
visitURL.toArray(new String[visitURL.size()]));
|
||||||
|
@ -112,22 +112,24 @@ public class I2PFirefoxProfileBuilder extends I2PCommonBrowser {
|
|||||||
public static boolean copyBaseProfiletoProfile(String base) {
|
public static boolean copyBaseProfiletoProfile(String base) {
|
||||||
String baseProfile = baseProfileDirectory(base);
|
String baseProfile = baseProfileDirectory(base);
|
||||||
String profile = profileDirectory();
|
String profile = profileDirectory();
|
||||||
System.out.println("Copying base profile to profile directory: " +
|
println("Copying base profile to profile directory: " + baseProfile +
|
||||||
baseProfile + " -> " + profile);
|
" -> " + profile);
|
||||||
if (baseProfile.isEmpty() || profile.isEmpty()) {
|
if (baseProfile.isEmpty() || profile.isEmpty()) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
File baseProfileDir = new File(baseProfile);
|
File baseProfileDir = new File(baseProfile);
|
||||||
File profileDir = new File(profile);
|
File profileDir = new File(profile);
|
||||||
|
|
||||||
try {
|
if (!profileDir.exists()) {
|
||||||
System.out.println("Copying base profile to profile directory");
|
try {
|
||||||
copyDirectory(baseProfileDir, profileDir, "firefox", base);
|
println("Copying base profile to profile directory");
|
||||||
} catch (Exception e) {
|
copyDirectory(baseProfileDir, profileDir, "firefox", base);
|
||||||
System.out.println("Error copying base profile to profile" + e);
|
} catch (Exception e) {
|
||||||
return false;
|
println("Error copying base profile to profile" + e);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
println("Copied base profile to profile directory");
|
||||||
}
|
}
|
||||||
System.out.println("Copied base profile to profile directory");
|
|
||||||
// if user.js does not exist yet, make an empty one.
|
// if user.js does not exist yet, make an empty one.
|
||||||
// if (!touch(profileDir.toString(), "user.js")) {
|
// if (!touch(profileDir.toString(), "user.js")) {
|
||||||
// return false;
|
// return false;
|
||||||
@ -169,7 +171,7 @@ public class I2PFirefoxProfileBuilder extends I2PCommonBrowser {
|
|||||||
Files.copy(baseOverrides.toPath(), userOverrides.toPath(),
|
Files.copy(baseOverrides.toPath(), userOverrides.toPath(),
|
||||||
StandardCopyOption.REPLACE_EXISTING);
|
StandardCopyOption.REPLACE_EXISTING);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
System.out.println("Error copying base profile to profile" + e);
|
println("Error copying base profile to profile" + e);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
// if user-overrides.js does not exist yet, make an empty one.
|
// if user-overrides.js does not exist yet, make an empty one.
|
||||||
|
@ -2,9 +2,11 @@ package net.i2p.i2pfirefox;
|
|||||||
|
|
||||||
import java.io.BufferedReader;
|
import java.io.BufferedReader;
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
|
import java.io.FileNotFoundException;
|
||||||
import java.io.FileReader;
|
import java.io.FileReader;
|
||||||
import java.io.FileWriter;
|
import java.io.FileWriter;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
import java.util.Scanner;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* I2PFirefoxProfileChecker.java
|
* I2PFirefoxProfileChecker.java
|
||||||
@ -22,7 +24,7 @@ import java.io.IOException;
|
|||||||
* @author idk
|
* @author idk
|
||||||
* @since 0.0.1
|
* @since 0.0.1
|
||||||
*/
|
*/
|
||||||
public class I2PFirefoxProfileChecker {
|
public class I2PFirefoxProfileChecker extends I2PCommonBrowser {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param args unused
|
* @param args unused
|
||||||
@ -30,15 +32,15 @@ public class I2PFirefoxProfileChecker {
|
|||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
String profileDirectory = I2PFirefoxProfileBuilder.profileDirectory();
|
String profileDirectory = I2PFirefoxProfileBuilder.profileDirectory();
|
||||||
if (profileDirectory == null) {
|
if (profileDirectory == null) {
|
||||||
System.out.println("No profile directory found");
|
println("No profile directory found");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
System.out.println("Profile directory: " + profileDirectory);
|
println("Profile directory: " + profileDirectory);
|
||||||
boolean ok = validateProfileDirectory(profileDirectory);
|
boolean ok = validateProfileDirectory(profileDirectory);
|
||||||
if (ok) {
|
if (ok) {
|
||||||
System.out.println("Profile directory is valid");
|
println("Profile directory is valid");
|
||||||
} else {
|
} else {
|
||||||
System.out.println("Profile directory is invalid");
|
println("Profile directory is invalid");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
@ -51,51 +53,54 @@ public class I2PFirefoxProfileChecker {
|
|||||||
public static boolean validateProfileDirectory(String profileDirectory) {
|
public static boolean validateProfileDirectory(String profileDirectory) {
|
||||||
File profileDir = new File(profileDirectory);
|
File profileDir = new File(profileDirectory);
|
||||||
if (!profileDir.exists()) {
|
if (!profileDir.exists()) {
|
||||||
System.out.println("Profile directory does not exist");
|
println("Profile directory does not exist");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (!profileDir.isDirectory()) {
|
if (!profileDir.isDirectory()) {
|
||||||
System.out.println("Profile directory is not a directory");
|
println("Profile directory is not a directory");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (!profileDir.canRead()) {
|
if (!profileDir.canRead()) {
|
||||||
System.out.println("Profile directory is not readable");
|
println("Profile directory is not readable");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (!profileDir.canWrite()) {
|
if (!profileDir.canWrite()) {
|
||||||
System.out.println("Profile directory is not writable");
|
println("Profile directory is not writable");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (!validateFile(profileDir + "/prefs.js")) {
|
if (!validateFile(profileDir + "/prefs.js")) {
|
||||||
System.out.println("prefs.js is not valid");
|
println("prefs.js is not valid");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (!validateFile(profileDir + "/user.js")) {
|
if (!validateFile(profileDir + "/user.js")) {
|
||||||
System.out.println("user.js is not valid");
|
println("user.js is not valid");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (!validateExtensionDirectory(profileDir + "/extensions")) {
|
if (!validateExtensionDirectory(profileDir + "/extensions")) {
|
||||||
System.out.println("extensions directory is invalid");
|
println("extensions directory is invalid");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return deRestrictHTTPS(profileDir.toString());
|
return deRestrictHTTPSAndSetupHomepage(profileDir.toString());
|
||||||
}
|
}
|
||||||
|
|
||||||
private static boolean deRestrictHTTPS(String profile) {
|
private static boolean deRestrictHTTPSAndSetupHomepage(String profile) {
|
||||||
// String profile = profileDirectory();
|
// String profile = profileDirectory();
|
||||||
File profileDir = new File(profile);
|
File profileDir = new File(profile);
|
||||||
if (profileDir.exists()) {
|
if (profileDir.exists()) {
|
||||||
File prefOverrides = new File(profile, "prefs.js");
|
File prefOverrides = new File(profile, "prefs.js");
|
||||||
if (prefOverrides.exists()) {
|
if (prefOverrides.exists()) {
|
||||||
undoHttpsOnlyMode(prefOverrides);
|
undoHttpsOnlyMode(prefOverrides);
|
||||||
|
undoHomepage(prefOverrides);
|
||||||
}
|
}
|
||||||
File userSettings = new File(profile, "user.js");
|
File userSettings = new File(profile, "user.js");
|
||||||
if (userSettings.exists()) {
|
if (userSettings.exists()) {
|
||||||
undoHttpsOnlyMode(userSettings);
|
undoHttpsOnlyMode(userSettings);
|
||||||
|
undoHomepage(userSettings);
|
||||||
}
|
}
|
||||||
File userOverrides = new File(profile, "user-overrides.js");
|
File userOverrides = new File(profile, "user-overrides.js");
|
||||||
if (userOverrides.exists()) {
|
if (userOverrides.exists()) {
|
||||||
undoHttpsOnlyMode(userOverrides);
|
undoHttpsOnlyMode(userOverrides);
|
||||||
|
undoHomepage(userOverrides);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
@ -104,6 +109,33 @@ public class I2PFirefoxProfileChecker {
|
|||||||
private static boolean undoHttpsOnlyMode(File fileToBeModified) {
|
private static boolean undoHttpsOnlyMode(File fileToBeModified) {
|
||||||
String oldString = "\"dom.security.https_only_mode\", true";
|
String oldString = "\"dom.security.https_only_mode\", true";
|
||||||
String newString = "\"dom.security.https_only_mode\", false";
|
String newString = "\"dom.security.https_only_mode\", false";
|
||||||
|
return undoValue(oldString, newString, fileToBeModified);
|
||||||
|
}
|
||||||
|
|
||||||
|
private static boolean undoHomepage(File fileToBeModified) {
|
||||||
|
String oldString = "\"browser.startup.homepage\", true";
|
||||||
|
File file = new File("Student.txt");
|
||||||
|
String newString =
|
||||||
|
"\"browser.startup.homepage\", \"http://127.0.0.1:7657\"";
|
||||||
|
try {
|
||||||
|
try (Scanner scanner = new Scanner(file)) {
|
||||||
|
// now read the file line by line...
|
||||||
|
while (scanner.hasNextLine()) {
|
||||||
|
String line = scanner.nextLine();
|
||||||
|
if (line.contains("browser.startup.homepage")) {
|
||||||
|
oldString = line.toString();
|
||||||
|
return undoValue(oldString, newString, fileToBeModified);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} catch (FileNotFoundException e) {
|
||||||
|
// handle this
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
private static boolean undoValue(String oldString, String newString,
|
||||||
|
File fileToBeModified) {
|
||||||
String oldContent = "";
|
String oldContent = "";
|
||||||
BufferedReader reader = null;
|
BufferedReader reader = null;
|
||||||
FileWriter writer = null;
|
FileWriter writer = null;
|
||||||
@ -140,19 +172,19 @@ public class I2PFirefoxProfileChecker {
|
|||||||
public static boolean validateFile(String file) {
|
public static boolean validateFile(String file) {
|
||||||
File f = new File(file);
|
File f = new File(file);
|
||||||
if (!f.exists()) {
|
if (!f.exists()) {
|
||||||
System.out.println("User JavaScript file does not exist");
|
println("User JavaScript file does not exist");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (!f.isFile()) {
|
if (!f.isFile()) {
|
||||||
System.out.println("User JavaScript file is not a file");
|
println("User JavaScript file is not a file");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (!f.canRead()) {
|
if (!f.canRead()) {
|
||||||
System.out.println("User JavaScript file is not readable");
|
println("User JavaScript file is not readable");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (!f.canWrite()) {
|
if (!f.canWrite()) {
|
||||||
System.out.println("User JavaScript file is not writable");
|
println("User JavaScript file is not writable");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
@ -167,19 +199,19 @@ public class I2PFirefoxProfileChecker {
|
|||||||
public static boolean validateExtensionDirectory(String extensionDirectory) {
|
public static boolean validateExtensionDirectory(String extensionDirectory) {
|
||||||
File extensionDir = new File(extensionDirectory);
|
File extensionDir = new File(extensionDirectory);
|
||||||
if (!extensionDir.exists()) {
|
if (!extensionDir.exists()) {
|
||||||
System.out.println("Extension directory does not exist");
|
println("Extension directory does not exist");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (!extensionDir.isDirectory()) {
|
if (!extensionDir.isDirectory()) {
|
||||||
System.out.println("Extension directory is not a directory");
|
println("Extension directory is not a directory");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (!extensionDir.canRead()) {
|
if (!extensionDir.canRead()) {
|
||||||
System.out.println("Extension directory is not readable");
|
println("Extension directory is not readable");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (!extensionDir.canWrite()) {
|
if (!extensionDir.canWrite()) {
|
||||||
System.out.println("Extension directory is not writable");
|
println("Extension directory is not writable");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
@ -23,7 +23,7 @@ public class I2PFirefoxProfileUnpacker extends I2PCommonBrowser {
|
|||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
String profileDirectory = I2PFirefoxProfileBuilder.profileDirectory();
|
String profileDirectory = I2PFirefoxProfileBuilder.profileDirectory();
|
||||||
if (profileDirectory == null) {
|
if (profileDirectory == null) {
|
||||||
System.out.println("No profile directory found");
|
println("No profile directory found");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -192,10 +192,13 @@ public class I2PGenericUnsafeBrowser extends I2PCommonBrowser {
|
|||||||
public ProcessBuilder baseProcessBuilder(String[] args) {
|
public ProcessBuilder baseProcessBuilder(String[] args) {
|
||||||
String browser = findUnsafeBrowserAnywhere();
|
String browser = findUnsafeBrowserAnywhere();
|
||||||
if (!browser.isEmpty()) {
|
if (!browser.isEmpty()) {
|
||||||
String[] newArgs = new String[args.length + 1];
|
int arglength = 0;
|
||||||
|
if (args != null)
|
||||||
|
arglength = args.length;
|
||||||
|
String[] newArgs = new String[arglength + 1];
|
||||||
newArgs[0] = browser;
|
newArgs[0] = browser;
|
||||||
if (args != null && args.length > 0) {
|
if (args != null && arglength > 0) {
|
||||||
for (int i = 0; i < args.length; i++) {
|
for (int i = 0; i < arglength; i++) {
|
||||||
newArgs[i + 1] = args[i];
|
newArgs[i + 1] = args[i];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -213,7 +216,7 @@ public class I2PGenericUnsafeBrowser extends I2PCommonBrowser {
|
|||||||
pb.environment().put("NO_PROXY", "http://127.0.0.1:7657");
|
pb.environment().put("NO_PROXY", "http://127.0.0.1:7657");
|
||||||
return pb;
|
return pb;
|
||||||
} else {
|
} else {
|
||||||
System.out.println("No Browser found.");
|
println("No Browser found.");
|
||||||
return new ProcessBuilder(args);
|
return new ProcessBuilder(args);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -323,6 +326,7 @@ public class I2PGenericUnsafeBrowser extends I2PCommonBrowser {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public Process launchAndDetatch(boolean privateWindow, String[] url) {
|
public Process launchAndDetatch(boolean privateWindow, String[] url) {
|
||||||
|
validateUserDir();
|
||||||
if (waitForProxy()) {
|
if (waitForProxy()) {
|
||||||
ProcessBuilder pb;
|
ProcessBuilder pb;
|
||||||
if (privateWindow) {
|
if (privateWindow) {
|
||||||
@ -333,7 +337,7 @@ public class I2PGenericUnsafeBrowser extends I2PCommonBrowser {
|
|||||||
try {
|
try {
|
||||||
System.out.println(pb.command());
|
System.out.println(pb.command());
|
||||||
p = pb.start();
|
p = pb.start();
|
||||||
System.out.println("I2PBrowser");
|
println("I2PBrowser");
|
||||||
sleep(2000);
|
sleep(2000);
|
||||||
return p;
|
return p;
|
||||||
} catch (Throwable e) {
|
} catch (Throwable e) {
|
||||||
@ -347,16 +351,15 @@ public class I2PGenericUnsafeBrowser extends I2PCommonBrowser {
|
|||||||
if (waitForProxy()) {
|
if (waitForProxy()) {
|
||||||
p = launchAndDetatch(privateWindow, url);
|
p = launchAndDetatch(privateWindow, url);
|
||||||
try {
|
try {
|
||||||
System.out.println("Waiting for I2PBrowser to close...");
|
println("Waiting for I2PBrowser to close...");
|
||||||
int exit = p.waitFor();
|
int exit = p.waitFor();
|
||||||
if (privateWindow) {
|
if (privateWindow) {
|
||||||
if (deleteRuntimeDirectory())
|
if (deleteRuntimeDirectory())
|
||||||
System.out.println(
|
println("Private browsing enforced, deleting runtime directory");
|
||||||
"Private browsing enforced, deleting runtime directory");
|
|
||||||
}
|
}
|
||||||
System.out.println("I2PBrowser exited with value: " + exit);
|
println("I2PBrowser exited with value: " + exit);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
System.out.println("Error: " + e.getMessage());
|
println("Error: " + e.getMessage());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -373,7 +376,7 @@ public class I2PGenericUnsafeBrowser extends I2PCommonBrowser {
|
|||||||
String[] schemes = {"http", "https"};
|
String[] schemes = {"http", "https"};
|
||||||
for (String scheme : schemes) {
|
for (String scheme : schemes) {
|
||||||
if (inUrl.startsWith(scheme)) {
|
if (inUrl.startsWith(scheme)) {
|
||||||
System.out.println("Valid URL: " + inUrl);
|
println("Valid URL: " + inUrl);
|
||||||
return inUrl;
|
return inUrl;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -391,23 +394,26 @@ public class I2PGenericUnsafeBrowser extends I2PCommonBrowser {
|
|||||||
|
|
||||||
//
|
//
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
|
validateUserDir();
|
||||||
boolean privateBrowsing = false;
|
boolean privateBrowsing = false;
|
||||||
System.out.println("checking for private browsing");
|
println("checking for private browsing");
|
||||||
ArrayList<String> visitURL = new ArrayList<String>();
|
ArrayList<String> visitURL = new ArrayList<String>();
|
||||||
if (args != null && args.length > 0) {
|
if (args != null) {
|
||||||
for (String arg : args) {
|
if (args.length > 0) {
|
||||||
if (arg.equals("-private")) {
|
for (String arg : args) {
|
||||||
privateBrowsing = true;
|
if (arg.equals("-private")) {
|
||||||
System.out.println(
|
privateBrowsing = true;
|
||||||
"private browsing is true, profile will be discarded at end of session");
|
println(
|
||||||
}
|
"private browsing is true, profile will be discarded at end of session");
|
||||||
if (!arg.startsWith("-")) {
|
}
|
||||||
// check if it's a URL
|
if (!arg.startsWith("-")) {
|
||||||
visitURL.add(ValidURL(arg));
|
// check if it's a URL
|
||||||
|
visitURL.add(ValidURL(arg));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
System.out.println("I2PGenericUnsafeBrowser");
|
println("I2PGenericUnsafeBrowser");
|
||||||
I2PGenericUnsafeBrowser i2pBrowser = new I2PGenericUnsafeBrowser();
|
I2PGenericUnsafeBrowser i2pBrowser = new I2PGenericUnsafeBrowser();
|
||||||
i2pBrowser.launch(privateBrowsing,
|
i2pBrowser.launch(privateBrowsing,
|
||||||
visitURL.toArray(new String[visitURL.size()]));
|
visitURL.toArray(new String[visitURL.size()]));
|
||||||
|
18
windows-exe.sh
Executable file
18
windows-exe.sh
Executable file
@ -0,0 +1,18 @@
|
|||||||
|
#! /usr/bin/env sh
|
||||||
|
. ./config.sh
|
||||||
|
jpackage \
|
||||||
|
--verbose \
|
||||||
|
--type exe \
|
||||||
|
--win-dir-chooser \
|
||||||
|
--win-help-url "https://geti2p.net" \
|
||||||
|
--win-menu \
|
||||||
|
--win-menu-group "I2P Browser Configurer" \
|
||||||
|
--win-shortcut \
|
||||||
|
--win-shortcut-prompt \
|
||||||
|
--win-per-user-install \
|
||||||
|
--license-file LICENSE.md \
|
||||||
|
--name i2pbrowser \
|
||||||
|
--app-version "$GITHUB_TAG" \
|
||||||
|
--input src/build \
|
||||||
|
--main-jar i2pfirefox.jar \
|
||||||
|
--main-class net.i2p.i2pfirefox.I2PBrowser
|
18
windows-portable.sh
Executable file
18
windows-portable.sh
Executable file
@ -0,0 +1,18 @@
|
|||||||
|
#! /usr/bin/env sh
|
||||||
|
. ./config.sh
|
||||||
|
mkdir -p tmp
|
||||||
|
cp -v LICENSE.md tmp/LICENSE.md
|
||||||
|
rm -rf i2pbrowser-portable
|
||||||
|
jpackage \
|
||||||
|
--verbose \
|
||||||
|
--type app-image \
|
||||||
|
--name i2pbrowser-portable \
|
||||||
|
--app-version "$GITHUB_TAG" \
|
||||||
|
--input src/build \
|
||||||
|
--main-jar i2pfirefox.jar \
|
||||||
|
--resource-dir tmp \
|
||||||
|
--main-class net.i2p.i2pfirefox.I2PBrowser
|
||||||
|
rm -rf tmp
|
||||||
|
cp -v LICENSE.md i2pbrowser-portable/LICENSE.md
|
||||||
|
rm i2pbrowser-portable.zip -f
|
||||||
|
zip -r i2pbrowser-portable-${GITHUB_TAG}.zip i2pbrowser-portable
|
36
windows-release.sh
Executable file
36
windows-release.sh
Executable file
@ -0,0 +1,36 @@
|
|||||||
|
#! /usr/bin/env sh
|
||||||
|
git pull --all
|
||||||
|
. ../i2p.firefox/config.sh
|
||||||
|
. ./config.sh
|
||||||
|
. "${HOME}/github-release-config.sh"
|
||||||
|
ant distclean jar
|
||||||
|
./windows.sh
|
||||||
|
./windows-exe.sh
|
||||||
|
./windows-portable.sh
|
||||||
|
msisum=$(sha256sum "i2pbrowser-${GITHUB_TAG}.msi")
|
||||||
|
github-release upload --user "${GITHUB_USER}" \
|
||||||
|
--repo "${GITHUB_REPO}" \
|
||||||
|
--tag "${GITHUB_TAG}" \
|
||||||
|
--label "I2P Browser launcher as a Jpackage inside of an MSI package. ${msisum}" \
|
||||||
|
--name "i2pbrowser.msi" \
|
||||||
|
--file "i2pbrowser-${GITHUB_TAG}.msi" \
|
||||||
|
--replace
|
||||||
|
echo "Uploaded MSI package"
|
||||||
|
exesum=$(sha256sum "i2pbrowser-${GITHUB_TAG}.exe")
|
||||||
|
github-release upload --user "${GITHUB_USER}" \
|
||||||
|
--repo "${GITHUB_REPO}" \
|
||||||
|
--tag "${GITHUB_TAG}" \
|
||||||
|
--label "I2P Browser launcher as a Jpackage inside of an EXE package. ${exesum}" \
|
||||||
|
--name "i2pbrowser.exe" \
|
||||||
|
--file "i2pbrowser-${GITHUB_TAG}.exe" \
|
||||||
|
--replace
|
||||||
|
echo "Uploaded EXE package"
|
||||||
|
zipsum=$(sha256sum "i2pbrowser-portable-${GITHUB_TAG}.zip")
|
||||||
|
github-release upload --user "${GITHUB_USER}" \
|
||||||
|
--repo "${GITHUB_REPO}" \
|
||||||
|
--tag "${GITHUB_TAG}" \
|
||||||
|
--label "I2P Browser launcher as a Jpackage inside of an zip to be run from a directory on Windows. ${zipsum}" \
|
||||||
|
--name "i2pbrowser-portable.zip" \
|
||||||
|
--file "i2pbrowser-portable-${GITHUB_TAG}.zip" \
|
||||||
|
--replace
|
||||||
|
echo "Uploaded Windows ZIP package"
|
18
windows.sh
Executable file
18
windows.sh
Executable file
@ -0,0 +1,18 @@
|
|||||||
|
#! /usr/bin/env sh
|
||||||
|
. ./config.sh
|
||||||
|
jpackage \
|
||||||
|
--verbose \
|
||||||
|
--type msi \
|
||||||
|
--win-dir-chooser \
|
||||||
|
--win-help-url "https://geti2p.net" \
|
||||||
|
--win-menu \
|
||||||
|
--win-menu-group "I2P Browser Configurer" \
|
||||||
|
--win-shortcut \
|
||||||
|
--win-shortcut-prompt \
|
||||||
|
--win-per-user-install \
|
||||||
|
--license-file LICENSE.md \
|
||||||
|
--name i2pbrowser \
|
||||||
|
--app-version "$GITHUB_TAG" \
|
||||||
|
--input src/build \
|
||||||
|
--main-jar i2pfirefox.jar \
|
||||||
|
--main-class net.i2p.i2pfirefox.I2PBrowser
|
Reference in New Issue
Block a user