Compare commits

..

6 Commits
0.0.1 ... 0.0.2

Author SHA1 Message Date
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
6 changed files with 46 additions and 6 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

@ -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.2" />
<!-- 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.2
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

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