Compare commits

...

11 Commits
0.0.1 ... 0.0.4

Author SHA1 Message Date
idk
75fe20d84d bump version fix release 2022-08-07 22:16:36 -04:00
idk
b5c098bb9b Fill in the changelog 2022-08-07 22:14:45 -04:00
idk
2c5e75ac5c also search the Tor Browser path on Windows. 2022-08-07 22:10:04 -04:00
idk
f7a62f57cc bump version 2022-08-07 21:29:26 -04:00
idk
ab88dc722b constructor needs to be in public scope 2022-08-07 21:28:56 -04:00
idk
dfb8bfb347 fix missing javadoc 2022-08-07 20:55:58 -04:00
idk
51a2416d26 add i2pbrowser.cmd 2022-08-07 20:50:44 -04:00
idk
b08743d09b update version 2022-08-07 20:49:20 -04:00
idk
64e4183c41 add i2pbrowser.cmd 2022-08-07 20:46:22 -04:00
idk
b9591ef84c update gitignore 2022-08-07 20:20:55 -04:00
idk
f829e9cdf1 add releaser script 2022-08-07 20:20:29 -04:00
9 changed files with 67 additions and 10 deletions

5
.gitignore vendored
View File

@ -1,2 +1,5 @@
log
src/i2p.firefox.base.profile.zip
src/i2p.firefox.base.profile.zip
*.su3
*.xpi2p
*.zip

View File

@ -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

View File

@ -28,7 +28,7 @@
<delete dir="plugin/eepsite/docroot/torrents/" />
<!-- get version 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 -->
<!-- this contains everything except i2ptunnel.config -->

3
i2pbrowser.cmd Executable file
View 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
View 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

View File

@ -1,3 +1,3 @@
#Build Number for ANT. Do not edit!
#Sun Aug 07 19:34:07 EDT 2022
build.number=84
#Sun Aug 07 20:17:38 EDT 2022
build.number=85

View File

@ -16,7 +16,7 @@ public class I2PFirefox {
*
* @since 0.0.1
*/
I2PFirefox() {
public I2PFirefox() {
for (String path : FIREFOX_SEARCH_PATHS) {
File f = new File(path);
if (f.exists()) {
@ -54,7 +54,9 @@ public class I2PFirefox {
return exePath;
}
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[] exePath = new String[path.length * exes.length];
int i = 0;

View File

@ -243,7 +243,7 @@ public class I2PFirefoxProfileBuilder {
*
* @since 0.0.1
*/
I2PFirefoxProfileBuilder() {
public I2PFirefoxProfileBuilder() {
I2PFirefoxProfileBuilder.strict = false;
}
@ -253,7 +253,7 @@ public class I2PFirefoxProfileBuilder {
*
* @since 0.0.1
*/
I2PFirefoxProfileBuilder(boolean strict) {
public I2PFirefoxProfileBuilder(boolean strict) {
I2PFirefoxProfileBuilder.strict = strict;
}
}

View File

@ -2,10 +2,8 @@ package net.i2p.i2pfirefox;
import java.io.File;
import java.io.InputStream;
import java.net.URL;
import java.nio.file.Files;
import java.nio.file.StandardCopyOption;
import java.util.Enumeration;
import java.util.zip.ZipEntry;
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) {
System.out.println("Unpacking base profile to " + profileDirectory);
try {