Compare commits
11 Commits
Author | SHA1 | Date | |
---|---|---|---|
75fe20d84d | |||
b5c098bb9b | |||
2c5e75ac5c | |||
f7a62f57cc | |||
ab88dc722b | |||
dfb8bfb347 | |||
51a2416d26 | |||
b08743d09b | |||
64e4183c41 | |||
b9591ef84c | |||
f829e9cdf1 |
5
.gitignore
vendored
5
.gitignore
vendored
@ -1,2 +1,5 @@
|
|||||||
log
|
log
|
||||||
src/i2p.firefox.base.profile.zip
|
src/i2p.firefox.base.profile.zip
|
||||||
|
*.su3
|
||||||
|
*.xpi2p
|
||||||
|
*.zip
|
15
CHANGES.md
15
CHANGES.md
@ -0,0 +1,15 @@
|
|||||||
|
Sun, August 7
|
||||||
|
-------------
|
||||||
|
|
||||||
|
- Wrote the Javadoc
|
||||||
|
- Embedded the Firefox profile in the Jar so it always unpacks correctly
|
||||||
|
- re-added Tor Browser support on Windows
|
||||||
|
- Fix false positives in validation routine
|
||||||
|
- Make constructors public
|
||||||
|
|
||||||
|
Saturday, August 6
|
||||||
|
------------------
|
||||||
|
|
||||||
|
- Implemented firefox detection
|
||||||
|
- Implemented directory setup
|
||||||
|
- Implemented processBuilder generator
|
@ -28,7 +28,7 @@
|
|||||||
<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.1" />
|
<property name="release.number" value="0.0.4" />
|
||||||
|
|
||||||
<!-- make the update xpi2p -->
|
<!-- make the update xpi2p -->
|
||||||
<!-- this contains everything except i2ptunnel.config -->
|
<!-- this contains everything except i2ptunnel.config -->
|
||||||
|
3
i2pbrowser.cmd
Executable file
3
i2pbrowser.cmd
Executable file
@ -0,0 +1,3 @@
|
|||||||
|
:; java -cp ./src/build/i2pfirefox.jar net.i2p.i2pfirefox.I2PFirefox; exit $?
|
||||||
|
@ECHO OFF
|
||||||
|
java -cp ./src/build/i2pfirefox.jar net.i2p.i2pfirefox.I2PFirefox
|
30
release.sh
Executable file
30
release.sh
Executable file
@ -0,0 +1,30 @@
|
|||||||
|
#! /usr/bin/env sh
|
||||||
|
|
||||||
|
GITHUB_USER=eyedeekay
|
||||||
|
GITHUB_REPO=i2p.plugins.firefox
|
||||||
|
GITHUB_NAME="Initial Release"
|
||||||
|
GITHUB_DESCRIPTION=$(cat README.md)
|
||||||
|
GITHUB_TAG=0.0.4
|
||||||
|
ant distclean
|
||||||
|
cd src && \
|
||||||
|
ant
|
||||||
|
github-release release --user "${GITHUB_USER}" \
|
||||||
|
--repo "${GITHUB_REPO}" \
|
||||||
|
--name "${GITHUB_NAME}" \
|
||||||
|
--description "${GITHUB_DESCRIPTION}" \
|
||||||
|
--tag "${GITHUB_TAG}"
|
||||||
|
sleep 2s
|
||||||
|
github-release upload --user "${GITHUB_USER}" \
|
||||||
|
--repo "${GITHUB_REPO}" \
|
||||||
|
--tag "${GITHUB_TAG}" \
|
||||||
|
--name "i2pfirefox.jar" \
|
||||||
|
--file "build/i2pfirefox.jar" \
|
||||||
|
--replace
|
||||||
|
cd ../
|
||||||
|
zip -r i2pfirefox.zip src/build/i2pfirefox.jar i2pbrowser.cmd LICENSE.md README.md
|
||||||
|
github-release upload --user "${GITHUB_USER}" \
|
||||||
|
--repo "${GITHUB_REPO}" \
|
||||||
|
--tag "${GITHUB_TAG}" \
|
||||||
|
--name "i2pfirefox.zip" \
|
||||||
|
--file "i2pfirefox.zip" \
|
||||||
|
--replace
|
@ -1,3 +1,3 @@
|
|||||||
#Build Number for ANT. Do not edit!
|
#Build Number for ANT. Do not edit!
|
||||||
#Sun Aug 07 19:34:07 EDT 2022
|
#Sun Aug 07 20:17:38 EDT 2022
|
||||||
build.number=84
|
build.number=85
|
||||||
|
@ -16,7 +16,7 @@ public class I2PFirefox {
|
|||||||
*
|
*
|
||||||
* @since 0.0.1
|
* @since 0.0.1
|
||||||
*/
|
*/
|
||||||
I2PFirefox() {
|
public 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()) {
|
||||||
@ -54,7 +54,9 @@ public class I2PFirefox {
|
|||||||
return exePath;
|
return exePath;
|
||||||
}
|
}
|
||||||
private static String[] FIND_FIREFOX_SEARCH_PATHS_WINDOWS() {
|
private static String[] FIND_FIREFOX_SEARCH_PATHS_WINDOWS() {
|
||||||
String[] path = new String[]{"C:/Program Files/Mozilla Firefox/", "C:/Program Files (x86)/Mozilla Firefox/", "C:/Program Files/Waterfox/", "C:/Program Files (x86)/Waterfox/", "C:/Program Files/Librewolf/"};
|
String userHome = System.getProperty("user.home");
|
||||||
|
String[] tbPath = new String[]{userHome + "/OneDrive/Desktop/Tor Browser/Browser/", userHome + "/Desktop/Tor Browser/Browser/"};
|
||||||
|
String[] path = new String[]{"C:/Program Files/Mozilla Firefox/", "C:/Program Files (x86)/Mozilla Firefox/", "C:/Program Files/Waterfox/", "C:/Program Files (x86)/Waterfox/", "C:/Program Files/Librewolf/", tbPath[0], tbPath[1]};
|
||||||
String[] exes = new String[]{"firefox.exe", "firefox-bin.exe", "firefox-esr.exe", "waterfox.exe", "waterfox-bin.exe", "librewolf.exe"};
|
String[] exes = new String[]{"firefox.exe", "firefox-bin.exe", "firefox-esr.exe", "waterfox.exe", "waterfox-bin.exe", "librewolf.exe"};
|
||||||
String[] exePath = new String[path.length * exes.length];
|
String[] exePath = new String[path.length * exes.length];
|
||||||
int i = 0;
|
int i = 0;
|
||||||
|
@ -243,7 +243,7 @@ public class I2PFirefoxProfileBuilder {
|
|||||||
*
|
*
|
||||||
* @since 0.0.1
|
* @since 0.0.1
|
||||||
*/
|
*/
|
||||||
I2PFirefoxProfileBuilder() {
|
public I2PFirefoxProfileBuilder() {
|
||||||
I2PFirefoxProfileBuilder.strict = false;
|
I2PFirefoxProfileBuilder.strict = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -253,7 +253,7 @@ public class I2PFirefoxProfileBuilder {
|
|||||||
*
|
*
|
||||||
* @since 0.0.1
|
* @since 0.0.1
|
||||||
*/
|
*/
|
||||||
I2PFirefoxProfileBuilder(boolean strict) {
|
public I2PFirefoxProfileBuilder(boolean strict) {
|
||||||
I2PFirefoxProfileBuilder.strict = strict;
|
I2PFirefoxProfileBuilder.strict = strict;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -2,10 +2,8 @@ package net.i2p.i2pfirefox;
|
|||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.io.InputStream;
|
import java.io.InputStream;
|
||||||
import java.net.URL;
|
|
||||||
import java.nio.file.Files;
|
import java.nio.file.Files;
|
||||||
import java.nio.file.StandardCopyOption;
|
import java.nio.file.StandardCopyOption;
|
||||||
import java.util.Enumeration;
|
|
||||||
import java.util.zip.ZipEntry;
|
import java.util.zip.ZipEntry;
|
||||||
import java.util.zip.ZipInputStream;
|
import java.util.zip.ZipInputStream;
|
||||||
|
|
||||||
@ -20,6 +18,12 @@ public class I2PFirefoxProfileUnpacker {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* unpack the profile directory
|
||||||
|
*
|
||||||
|
* @return true if the profile directory was successfully unpacked
|
||||||
|
* @since 0.0.1
|
||||||
|
*/
|
||||||
public boolean unpackProfile(String profileDirectory) {
|
public boolean unpackProfile(String profileDirectory) {
|
||||||
System.out.println("Unpacking base profile to " + profileDirectory);
|
System.out.println("Unpacking base profile to " + profileDirectory);
|
||||||
try {
|
try {
|
||||||
|
Reference in New Issue
Block a user