Compare commits

...

48 Commits

Author SHA1 Message Date
idk
5d4b1a4681 update index.html 2022-09-07 03:51:00 -04:00
idk
b2f604a4a5 fix url argument passing 2022-09-07 03:50:51 -04:00
idk
7e3ae6ad04 update index.html 2022-09-07 03:49:31 -04:00
idk
2edb2a3408 tweak releases slightly 2022-09-07 03:35:50 -04:00
idk
6c1f2bc640 update I2PFirefoxProfileChecker.html 2022-09-07 03:24:08 -04:00
idk
76292fc7c0 update I2PFirefox.html 2022-09-07 03:24:01 -04:00
idk
c354c49128 update index.html 2022-09-07 03:23:27 -04:00
idk
9d66efe846 if the headless process survives destruction, forcibly estroy it 2022-09-07 03:22:11 -04:00
idk
24a08cf7c5 remove -attach-console as it probably does nothing and breaks something 2022-09-07 03:16:13 -04:00
idk
4e19c36817 update RELEASES.html 2022-09-07 00:46:22 -04:00
idk
05dfef06e3 update index.html 2022-09-07 00:45:23 -04:00
idk
8397d7415b update I2PFirefox.html 2022-09-06 23:54:43 -04:00
idk
f9279f494f update index.html 2022-09-06 23:54:11 -04:00
idk
e3c2ab91be Destroy headless process if it goes too long 2022-09-06 23:52:52 -04:00
idk
a8a54f6b4c update CHANGES.html 2022-09-06 23:50:26 -04:00
idk
995e9805a2 Destroy headless process if it goes too long 2022-09-06 23:50:19 -04:00
idk
f3e7c28503 update RELEASES.html 2022-09-06 22:41:50 -04:00
idk
6042f30350 update index.html 2022-09-06 22:40:52 -04:00
idk
ab226e5a4c update PACKAGES.html 2022-09-06 22:38:24 -04:00
idk
e632a49933 update I2PFirefox.html 2022-09-06 22:38:01 -04:00
idk
beef36b36d update index.html 2022-09-06 22:37:27 -04:00
idk
2ed27fa307 update USAGE.html 2022-09-06 22:31:34 -04:00
idk
1a5ce21912 update TODO.html 2022-09-06 22:31:31 -04:00
idk
7754c0b43d update RELEASES.html 2022-09-06 22:31:27 -04:00
idk
b4b2a30935 update PACKAGES.html 2022-09-06 22:31:23 -04:00
idk
81f58b9d48 update LICENSE.html 2022-09-06 22:31:19 -04:00
idk
02ac99531a update I2PGenericUnsafeBrowser.html 2022-09-06 22:31:15 -04:00
idk
2b2aea0748 update I2PFirefoxProfileUnpacker.html 2022-09-06 22:31:12 -04:00
idk
09e6864cb9 update I2PFirefoxProfileChecker.html 2022-09-06 22:31:08 -04:00
idk
f954bf4893 update I2PFirefoxProfileBuilder.html 2022-09-06 22:31:04 -04:00
idk
21f74306c8 update I2PFirefox.html 2022-09-06 22:31:00 -04:00
idk
ccde6b65dc update I2PCommonBrowser.html 2022-09-06 22:30:56 -04:00
idk
f348347115 update I2PChromiumProfileUnpacker.html 2022-09-06 22:30:52 -04:00
idk
ef19f681d0 update I2PChromiumProfileChecker.html 2022-09-06 22:30:48 -04:00
idk
1b60e74f9d update I2PChromiumProfileBuilder.html 2022-09-06 22:30:44 -04:00
idk
9a052f4f3c update I2PChromium.html 2022-09-06 22:30:40 -04:00
idk
1e94b34efe update I2PBrowser.html 2022-09-06 22:30:36 -04:00
idk
01c19d1ffd update EXAMPLES.html 2022-09-06 22:30:33 -04:00
idk
de6b872426 update CHANGES.html 2022-09-06 22:30:29 -04:00
idk
27cb5b8365 update index.html 2022-09-06 22:30:25 -04:00
idk
2d508e1417 update download page 2022-09-06 22:30:14 -04:00
idk
d6a62bb6ee start working on an OSX package, won't have a signer for now but gotta start somewhere 2022-09-06 21:35:27 -04:00
idk
4095e61ad3 minor tweak to releaser script 2022-09-06 21:22:03 -04:00
idk
f107bf92b2 add sha256sums for releases 2022-09-06 21:08:34 -04:00
idk
bf2e964e1a update index.html 2022-09-06 21:06:31 -04:00
idk
8c4647f8b3 update index.html 2022-09-06 20:59:00 -04:00
idk
62bda1aec5 add sha256sums for releases 2022-09-06 20:57:43 -04:00
idk
5c637e900e Fix uploader for fedora package 2022-09-06 20:42:36 -04:00
36 changed files with 1581 additions and 123 deletions

3
.gitignore vendored
View File

@ -16,3 +16,6 @@ i2pbrowser/
/i2pbrowser*.deb
/i2pbrowser*.rpm
/logs
/*.jar
/*.msi
/*.exe

View File

@ -102,6 +102,11 @@
PACKAGES
</a>
</li>
<li>
<a href="RELEASES.html">
RELEASES
</a>
</li>
<li>
<a href="TODO.html">
TODO
@ -142,6 +147,9 @@
<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">

View File

@ -5,6 +5,7 @@ Tue, September 6
- 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
----------------

View File

@ -102,6 +102,11 @@
PACKAGES
</a>
</li>
<li>
<a href="RELEASES.html">
RELEASES
</a>
</li>
<li>
<a href="TODO.html">
TODO

View File

@ -102,6 +102,11 @@
PACKAGES
</a>
</li>
<li>
<a href="RELEASES.html">
RELEASES
</a>
</li>
<li>
<a href="TODO.html">
TODO

View File

@ -102,6 +102,11 @@
PACKAGES
</a>
</li>
<li>
<a href="RELEASES.html">
RELEASES
</a>
</li>
<li>
<a href="TODO.html">
TODO

View File

@ -102,6 +102,11 @@
PACKAGES
</a>
</li>
<li>
<a href="RELEASES.html">
RELEASES
</a>
</li>
<li>
<a href="TODO.html">
TODO

View File

@ -102,6 +102,11 @@
PACKAGES
</a>
</li>
<li>
<a href="RELEASES.html">
RELEASES
</a>
</li>
<li>
<a href="TODO.html">
TODO

View File

@ -102,6 +102,11 @@
PACKAGES
</a>
</li>
<li>
<a href="RELEASES.html">
RELEASES
</a>
</li>
<li>
<a href="TODO.html">
TODO

View File

@ -102,6 +102,11 @@
PACKAGES
</a>
</li>
<li>
<a href="RELEASES.html">
RELEASES
</a>
</li>
<li>
<a href="TODO.html">
TODO

View File

@ -102,6 +102,11 @@
PACKAGES
</a>
</li>
<li>
<a href="RELEASES.html">
RELEASES
</a>
</li>
<li>
<a href="TODO.html">
TODO
@ -187,6 +192,9 @@
<li>
java.util.ArrayList
</li>
<li>
java.util.concurrent.TimeUnit
</li>
</ul>
<br>
<h2>
@ -279,7 +287,7 @@
<span></span>
</a>
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]
</a>
</h3>
@ -308,7 +316,7 @@
<span></span>
</a>
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]
</a>
</h3>
@ -337,7 +345,7 @@
<span></span>
</a>
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]
</a>
</h3>
@ -366,7 +374,7 @@
<span></span>
</a>
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]
</a>
</h3>
@ -395,7 +403,7 @@
<span></span>
</a>
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]
</a>
</h3>
@ -424,7 +432,7 @@
<span></span>
</a>
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]
</a>
</h3>
@ -453,7 +461,7 @@
<span></span>
</a>
FIREFOX_FINDER
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L203" rel="nofollow">
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L204" rel="nofollow">
[src]
</a>
</h3>
@ -482,7 +490,7 @@
<span></span>
</a>
getOperatingSystem
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L215" rel="nofollow">
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L216" rel="nofollow">
[src]
</a>
</h3>
@ -511,7 +519,7 @@
<span></span>
</a>
onlyValidFirefoxes
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L237" rel="nofollow">
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L238" rel="nofollow">
[src]
</a>
</h3>
@ -537,7 +545,7 @@
<span></span>
</a>
topFirefox
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L257" rel="nofollow">
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L258" rel="nofollow">
[src]
</a>
</h3>
@ -563,7 +571,7 @@
<span></span>
</a>
topFirefox
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L286" rel="nofollow">
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L287" rel="nofollow">
[src]
</a>
</h3>
@ -593,7 +601,7 @@
<span></span>
</a>
defaultProcessBuilder
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L304" rel="nofollow">
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L305" rel="nofollow">
[src]
</a>
</h3>
@ -619,7 +627,7 @@
<span></span>
</a>
defaultProcessBuilder
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L316" rel="nofollow">
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L317" rel="nofollow">
[src]
</a>
</h3>
@ -649,7 +657,7 @@
<span></span>
</a>
privateProcessBuilder
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L330" rel="nofollow">
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L331" rel="nofollow">
[src]
</a>
</h3>
@ -675,7 +683,7 @@
<span></span>
</a>
privateProcessBuilder
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L343" rel="nofollow">
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L344" rel="nofollow">
[src]
</a>
</h3>
@ -705,7 +713,7 @@
<span></span>
</a>
headlessProcessBuilder
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L365" rel="nofollow">
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L366" rel="nofollow">
[src]
</a>
</h3>
@ -735,7 +743,7 @@
<span></span>
</a>
processBuilder
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L388" rel="nofollow">
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L389" rel="nofollow">
[src]
</a>
</h3>
@ -977,7 +985,7 @@
<span></span>
</a>
launch
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L551" rel="nofollow">
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L560" rel="nofollow">
[src]
</a>
</h3>
@ -1009,7 +1017,7 @@
<span></span>
</a>
launch
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L575" rel="nofollow">
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L584" rel="nofollow">
[src]
</a>
</h3>
@ -1039,7 +1047,7 @@
<span></span>
</a>
launch
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L585" rel="nofollow">
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L594" rel="nofollow">
[src]
</a>
</h3>
@ -1065,7 +1073,7 @@
<span></span>
</a>
ValidURL
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L587" rel="nofollow">
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L596" rel="nofollow">
[src]
</a>
</h3>
@ -1098,7 +1106,7 @@
<span></span>
</a>
main
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L598" rel="nofollow">
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L607" rel="nofollow">
[src]
</a>
</h3>
@ -1131,7 +1139,7 @@
<span></span>
</a>
sleep
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L627" rel="nofollow">
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L636" rel="nofollow">
[src]
</a>
</h3>

View File

@ -21,6 +21,7 @@ package: net.i2p.i2pfirefox
<li>java.io.IOException</li>
<li>java.net.Socket</li>
<li>java.util.ArrayList</li>
<li>java.util.concurrent.TimeUnit</li>
</ul>
</details>
@ -55,7 +56,7 @@ package: net.i2p.i2pfirefox
## 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:
+ Access: private
@ -65,7 +66,7 @@ package: net.i2p.i2pfirefox
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:
+ Access: private
@ -75,7 +76,7 @@ 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:
+ Access: private
@ -85,7 +86,7 @@ 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:
+ Access: private
@ -95,7 +96,7 @@ 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:
+ Access: private
@ -105,7 +106,7 @@ 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:
+ Access: private
@ -115,7 +116,7 @@ This method has no parameters.
This method has no parameters.
### FIREFOX_FINDER [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L203)
### FIREFOX_FINDER [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L204)
+ Description:
+ Access: private
@ -125,7 +126,7 @@ This method has no parameters.
This method has no parameters.
### getOperatingSystem [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L215)
### getOperatingSystem [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L216)
+ Description:
+ Access: private
@ -135,7 +136,7 @@ This method has no parameters.
This method has no parameters.
### onlyValidFirefoxes [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L237)
### 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.
+ Access: public
@ -144,7 +145,7 @@ This method has no parameters.
This method has no parameters.
### topFirefox [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L257)
### topFirefox [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L258)
+ Description: Return the best available Firefox from the list of Firefoxes we have.
+ Access: public
@ -153,7 +154,7 @@ This method has no parameters.
This method has no parameters.
### topFirefox [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L286)
### 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.
+ Access: public
@ -164,7 +165,7 @@ This method has no parameters.
| overrideFirefox | String | |
### defaultProcessBuilder [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L304)
### defaultProcessBuilder [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L305)
+ Description: Build a ProcessBuilder for the top Firefox binary and the default profile.
+ Access: public
@ -173,7 +174,7 @@ This method has no parameters.
This method has no parameters.
### defaultProcessBuilder [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L316)
### defaultProcessBuilder [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L317)
+ Description: Build a ProcessBuilder for the top Firefox binary and the default profile.
+ Access: public
@ -184,7 +185,7 @@ This method has no parameters.
| args | String[] | the args to pass to the Firefox binary |
### privateProcessBuilder [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L330)
### 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.
+ Access: public
@ -193,7 +194,7 @@ This method has no parameters.
This method has no parameters.
### privateProcessBuilder [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L343)
### 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.
+ Access: public
@ -204,7 +205,7 @@ This method has no parameters.
| args | String[] | the arguments to pass to the Firefox binary |
### headlessProcessBuilder [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L365)
### 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
@ -215,7 +216,7 @@ This method has no parameters.
| args | String[] | the arguments to pass to the Firefox binary |
### processBuilder [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L388)
### 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.
+ Access: public
@ -304,7 +305,7 @@ This method has no parameters.
| url | String[] | |
### launch [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L551)
### 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.
+ Access: public
@ -316,7 +317,7 @@ This method has no parameters.
| url | String[] | |
### launch [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L575)
### 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.
+ Access: public
@ -327,7 +328,7 @@ This method has no parameters.
| privateWindow | boolean | |
### launch [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L585)
### 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.
+ Access: public
@ -336,7 +337,7 @@ This method has no parameters.
This method has no parameters.
### ValidURL [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L587)
### ValidURL [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L596)
+ Description:
+ Access: private
@ -348,7 +349,7 @@ This method has no parameters.
| inUrl | String | |
### main [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L598)
### main [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L607)
+ Description:
+ Access: public
@ -360,7 +361,7 @@ This method has no parameters.
| args | String[] | |
### sleep [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L627)
### sleep [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L636)
+ Description:
+ Access: private

View File

@ -102,6 +102,11 @@
PACKAGES
</a>
</li>
<li>
<a href="RELEASES.html">
RELEASES
</a>
</li>
<li>
<a href="TODO.html">
TODO

View File

@ -102,6 +102,11 @@
PACKAGES
</a>
</li>
<li>
<a href="RELEASES.html">
RELEASES
</a>
</li>
<li>
<a href="TODO.html">
TODO
@ -181,6 +186,9 @@
<li>
java.io.File
</li>
<li>
java.io.FileNotFoundException
</li>
<li>
java.io.FileReader
</li>
@ -190,6 +198,9 @@
<li>
java.io.IOException
</li>
<li>
java.util.Scanner
</li>
</ul>
<br>
<h2>
@ -209,7 +220,7 @@
<span></span>
</a>
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]
</a>
</h3>
@ -242,7 +253,7 @@
<span></span>
</a>
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]
</a>
</h3>
@ -271,11 +282,11 @@
| profileDirectory | String | the profile directory to check |
</p>
<h3>
<a href="#derestricthttps-src" rel="nofollow">
<a href="#derestricthttpsandsetuphomepage-src" rel="nofollow">
<span></span>
</a>
deRestrictHTTPS
<a href="src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L84" rel="nofollow">
deRestrictHTTPSAndSetupHomepage
<a href="src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L86" rel="nofollow">
[src]
</a>
</h3>
@ -308,7 +319,7 @@
<span></span>
</a>
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]
</a>
</h3>
@ -336,12 +347,82 @@
<br>
| fileToBeModified | File | |
</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#L137" 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>
<a href="#validatefile-src" rel="nofollow">
<span></span>
</a>
validateFile
<a href="src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L140" rel="nofollow">
<a href="src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L171" rel="nofollow">
[src]
</a>
</h3>
@ -374,7 +455,7 @@
<span></span>
</a>
validateExtensionDirectory
<a href="src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L167" rel="nofollow">
<a href="src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L198" rel="nofollow">
[src]
</a>
</h3>

View File

@ -19,9 +19,11 @@ package: net.i2p.i2pfirefox
<ul>
<li>java.io.BufferedReader</li>
<li>java.io.File</li>
<li>java.io.FileNotFoundException</li>
<li>java.io.FileReader</li>
<li>java.io.FileWriter</li>
<li>java.io.IOException</li>
<li>java.util.Scanner</li>
</ul>
</details>
@ -29,7 +31,7 @@ package: net.i2p.i2pfirefox
## Methods
### main [[src]](src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L30)
### main [[src]](src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L32)
+ Description:
+ Access: public
@ -41,7 +43,7 @@ package: net.i2p.i2pfirefox
| 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.
+ Access: public
@ -53,7 +55,7 @@ package: net.i2p.i2pfirefox
| 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:
+ Access: private
@ -65,7 +67,7 @@ package: net.i2p.i2pfirefox
| profile | String | |
### undoHttpsOnlyMode [[src]](src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L104)
### undoHttpsOnlyMode [[src]](src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L109)
+ Description:
+ Access: private
@ -77,7 +79,33 @@ package: net.i2p.i2pfirefox
| 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#L137)
+ 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#L171)
+ Description: Return true if the file is valid.
+ Access: public
@ -89,7 +117,7 @@ package: net.i2p.i2pfirefox
| 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#L198)
+ Description: Return true if the extension directory is valid.
+ Access: public

View File

@ -102,6 +102,11 @@
PACKAGES
</a>
</li>
<li>
<a href="RELEASES.html">
RELEASES
</a>
</li>
<li>
<a href="TODO.html">
TODO

View File

@ -102,6 +102,11 @@
PACKAGES
</a>
</li>
<li>
<a href="RELEASES.html">
RELEASES
</a>
</li>
<li>
<a href="TODO.html">
TODO

View File

@ -102,6 +102,11 @@
PACKAGES
</a>
</li>
<li>
<a href="RELEASES.html">
RELEASES
</a>
</li>
<li>
<a href="TODO.html">
TODO

View File

@ -102,6 +102,11 @@
PACKAGES
</a>
</li>
<li>
<a href="RELEASES.html">
RELEASES
</a>
</li>
<li>
<a href="TODO.html">
TODO
@ -129,6 +134,51 @@
</a>
Packages for various operating systems
</h1>
<h2>
<a href="#making-a-new-release" rel="nofollow">
<span></span>
</a>
Making a new release:
</h2>
<p>
Releases can be created in a mostly automatic way. With a working Java toolchain
including jpackage installed:
</p>
<ol>
<li>
Set a
<code>
GITHUB_TOKEN
</code>
in the environment containing an API key.
</li>
<li>
Update the version number(
<code>
GITHUB_TAG
</code>
) and version title(
<code>
GITHUB_NAME
</code>
) in
<code>
config.sh
</code>
</li>
<li>
On a Linux machine, run
<code>
./release.sh
</code>
</li>
<li>
On a Windows machine, run
<code>
./windows-release.sh
</code>
</li>
</ol>
<h2>
<a href="#windows" rel="nofollow">
<span></span>
@ -168,15 +218,15 @@
</a>
MSI
</h3>
<p>
Requires the Wixl toolset.
</p>
<h4>
<a href="#status-works-maintained" rel="nofollow">
<span></span>
</a>
Status: Works. Maintained.
</h4>
<p>
Requires the Wixl toolset.
</p>
<p>
run:
<code>
@ -189,15 +239,15 @@
</a>
EXE
</h4>
<p>
No special requirements.
</p>
<h4>
<a href="#status-works-maintained" rel="nofollow">
<span></span>
</a>
Status: Works. Maintained.
</h4>
<p>
No special requirements.
</p>
<p>
run:
<code>
@ -210,15 +260,15 @@
</a>
Portable(.zip)
</h3>
<p>
No special requirements.
</p>
<h4>
<a href="#status-unknown-maintained" rel="nofollow">
<span></span>
</a>
Status: Unknown. Maintained.
</h4>
<p>
No special requirements.
</p>
<p>
run:
<code>
@ -247,15 +297,15 @@
</a>
Debian
</h3>
<p>
Make sure you have a recent Java and jpackage.
</p>
<h4>
<a href="#status-works-maintained" rel="nofollow">
<span></span>
</a>
Status: Works. Maintained.
</h4>
<p>
Make sure you have a recent Java and jpackage.
</p>
<p>
run:
<code>
@ -268,12 +318,6 @@
</a>
Fedora
</h3>
<h4>
<a href="#status-unknown-maintained" rel="nofollow">
<span></span>
</a>
Status: Unknown. Maintained.
</h4>
<p>
I&#39;m a Debian user and don&#39;t have a Fedora machine set up right now. Therefore,
I build Fedora packages in a container.
@ -283,6 +327,12 @@
Adoptium&#39;s third-party repository to supply the JDK I use to build the fedora
package.
</p>
<h4>
<a href="#status-unknown-maintained" rel="nofollow">
<span></span>
</a>
Status: Unknown. Maintained.
</h4>
<p>
run:
<code>
@ -295,15 +345,15 @@
</a>
Portable(.zip)
</h3>
<p>
Details are platform dependent. Same build-deps as everything else.
</p>
<h4>
<a href="#status-works-maintained" rel="nofollow">
<span></span>
</a>
Status: Works. Maintained.
</h4>
<p>
Details are platform dependent. Same build-deps as everything else.
</p>
<p>
run:
<code>

View File

@ -1,6 +1,18 @@
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
-------
@ -14,26 +26,26 @@ run: `windows-release.sh` only *after* release.sh on a Linux machine.
### MSI
#### Status: Works. Maintained.
Requires the Wixl toolset.
#### Status: Works. Maintained.
run: `./windows.sh`
#### EXE
#### Status: Works. Maintained.
No special requirements.
#### Status: Works. Maintained.
run: `./windows-exe.sh`
### Portable(.zip)
#### Status: Unknown. Maintained.
No special requirements.
#### Status: Unknown. Maintained.
run: `./windows-portable.sh`
Linux
@ -46,16 +58,14 @@ Java tools in your `PATH`.
### Debian
#### Status: Works. Maintained.
Make sure you have a recent Java and jpackage.
#### Status: Works. Maintained.
run: `ant debian`
### Fedora
#### Status: Unknown. Maintained.
I'm a Debian user and don't have a Fedora machine set up right now. Therefore,
I build Fedora packages in a container.
@ -63,14 +73,16 @@ Fedora doesn't have a jpackage in their repositories as far as I can tell so I u
Adoptium's third-party repository to supply the JDK I use to build the fedora
package.
#### Status: Unknown. Maintained.
run: `ant fedora`
### Portable(.zip)
#### Status: Works. Maintained.
Details are platform dependent. Same build-deps as everything else.
#### Status: Works. Maintained.
run: `ant jpackage`
OSX

1062
RELEASES.html Normal file

File diff suppressed because it is too large Load Diff

12
RELEASES.md Normal file
View 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)

View File

@ -102,6 +102,11 @@
PACKAGES
</a>
</li>
<li>
<a href="RELEASES.html">
RELEASES
</a>
</li>
<li>
<a href="TODO.html">
TODO

View File

@ -102,6 +102,11 @@
PACKAGES
</a>
</li>
<li>
<a href="RELEASES.html">
RELEASES
</a>
</li>
<li>
<a href="TODO.html">
TODO

View File

@ -317,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/" />
<!-- get version number -->
<buildnumber file="scripts/build.number" />
<property name="release.number" value="0.0.29" />
<property name="release.number" value="0.0.32" />
<!-- make the update xpi2p -->
<!-- this contains everything except i2ptunnel.config -->

View File

@ -1,6 +1,6 @@
#! /usr/bin/env sh
export GITHUB_USER=eyedeekay
export GITHUB_REPO=i2p.plugins.firefox
export GITHUB_NAME="Mostly packaging stuff, fix first-run Windows thing(I think)"
export GITHUB_NAME="Fix URL argument passing"
export GITHUB_DESCRIPTION=$(cat CHANGES.md)
export GITHUB_TAG=0.0.29
export GITHUB_TAG=0.0.32

View File

@ -102,6 +102,11 @@
PACKAGES
</a>
</li>
<li>
<a href="RELEASES.html">
RELEASES
</a>
</li>
<li>
<a href="TODO.html">
TODO

11
osx-dmg.sh Executable file
View 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
View 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

View File

@ -18,45 +18,50 @@ github-release edit --user "${GITHUB_USER}" \
--name "${GITHUB_NAME}" \
--description "${GITHUB_DESCRIPTION}" \
--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}" \
--repo "${GITHUB_REPO}" \
--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" \
--file "src/build/i2pfirefox.jar" \
--replace
echo "Uploaded jar"
zipsum=$(sha256sum "i2pfirefox.zip")
github-release upload --user "${GITHUB_USER}" \
--repo "${GITHUB_REPO}" \
--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" \
--file "i2pfirefox.zip" \
--replace
echo "Uploaded freestanding zip"
jvmsum=$(sha256sum "i2pbrowser.zip")
github-release upload --user "${GITHUB_USER}" \
--repo "${GITHUB_REPO}" \
--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" \
--file "i2pbrowser.zip" \
--replace
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." \
--name "i2pbrowser_${GITHUB_TAG}_.deb" \
--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." \
--name "i2pbrowser_${GITHUB_TAG}_.rpm" \
--file "i2pbrowser_${GITHUB_TAG}-1.x86_64.rpm" \
--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

Binary file not shown.

Binary file not shown.

View File

@ -4,6 +4,7 @@ import java.io.File;
import java.io.IOException;
import java.net.Socket;
import java.util.ArrayList;
import java.util.concurrent.TimeUnit;
/**
* I2PFirefox.java
@ -391,16 +392,15 @@ public class I2PFirefox extends I2PCommonBrowser {
int arglength = 0;
if (args != null)
arglength = args.length;
String[] newArgs = new String[arglength + 5];
String[] newArgs = new String[arglength + 4];
newArgs[0] = firefox;
newArgs[1] = "-attach-console";
newArgs[2] = "--new-instance";
newArgs[3] = "--profile";
newArgs[4] = I2PFirefoxProfileBuilder.profileDirectory();
newArgs[1] = "--new-instance";
newArgs[2] = "--profile";
newArgs[3] = I2PFirefoxProfileBuilder.profileDirectory();
if (args != null) {
if (arglength > 0) {
for (int i = 0; i < arglength; i++) {
newArgs[i + 5] = args[i];
newArgs[i + 4] = args[i];
}
}
}
@ -508,13 +508,22 @@ public class I2PFirefox extends I2PCommonBrowser {
try {
Process hp = hpb.start();
try {
int hev = hp.waitFor();
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(e.toString());
println("Headless browser error " + e.toString());
}
} catch (IOException e) {
println(e.toString());
println("Headless browser error " + e.toString());
}
}
}

View File

@ -2,9 +2,11 @@ package net.i2p.i2pfirefox;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.util.Scanner;
/**
* I2PFirefoxProfileChecker.java
@ -78,24 +80,27 @@ public class I2PFirefoxProfileChecker extends I2PCommonBrowser {
println("extensions directory is invalid");
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();
File profileDir = new File(profile);
if (profileDir.exists()) {
File prefOverrides = new File(profile, "prefs.js");
if (prefOverrides.exists()) {
undoHttpsOnlyMode(prefOverrides);
undoHomepage(prefOverrides);
}
File userSettings = new File(profile, "user.js");
if (userSettings.exists()) {
undoHttpsOnlyMode(userSettings);
undoHomepage(userSettings);
}
File userOverrides = new File(profile, "user-overrides.js");
if (userOverrides.exists()) {
undoHttpsOnlyMode(userOverrides);
undoHomepage(userOverrides);
}
}
return false;
@ -104,6 +109,32 @@ public class I2PFirefoxProfileChecker extends I2PCommonBrowser {
private static boolean undoHttpsOnlyMode(File fileToBeModified) {
String oldString = "\"dom.security.https_only_mode\", true";
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 {
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 = "";
BufferedReader reader = null;
FileWriter writer = null;

View File

@ -7,25 +7,30 @@ 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." \
--name "i2pbrowser-${GITHUB_TAG}.msi" \
--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." \
--name "i2pbrowser-${GITHUB_TAG}.exe" \
--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." \
--name "i2pbrowser-portable-${GITHUB_TAG}.zip" \
--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"