Compare commits
111 Commits
i2p-firefo
...
master
Author | SHA1 | Date | |
---|---|---|---|
d013060249 | |||
1e19c61d8c | |||
48d08076f7 | |||
8c7ad5a905 | |||
7165629f52 | |||
4c28feea8c | |||
8a22bb8277 | |||
56b3317184 | |||
de8420c5b2 | |||
80dfa2498c | |||
a60da07d5a | |||
ccd2edbc20 | |||
5a2143a5b0 | |||
87e4b3d0d6 | |||
e50c862903 | |||
3050624b81 | |||
e1cbbbf284 | |||
1a18d38522 | |||
78ad39e142 | |||
919be083e1 | |||
3d48629a40 | |||
5f9df2cb9a | |||
a1f093f0b0 | |||
55e10a1633 | |||
0f470f08ff | |||
1ea7ccb671 | |||
e3e9d71f62 | |||
d2cb4e7dac | |||
d3bc6ffc89 | |||
0c7e4a9fd6 | |||
0f271a9013 | |||
a01b11ecb0 | |||
0eea4f9fcb | |||
acb936a675 | |||
45f64db3cd | |||
3769d7a74c | |||
45873071fb | |||
a96502d5c1 | |||
83d02cf379 | |||
1463e62c2a | |||
1611312f25 | |||
1e4d327ca2 | |||
045c6dbfbd | |||
e13156005f | |||
1a3d0743ab | |||
a41a4824fe | |||
093ac9fe5d | |||
855887da6b | |||
9ecd701462 | |||
66f77fec8d | |||
8471360a63 | |||
c006fb0ca8 | |||
39a457d314 | |||
216f075f32 | |||
4d3e700ec3 | |||
0fc103b777 | |||
e7ff841eb5 | |||
a4ce1b9a8b | |||
021c1cd1ba | |||
d06a8bb4bf | |||
95c045e97c | |||
3047f70164 | |||
c53baa20e9 | |||
a51e878877 | |||
9f5536e270 | |||
2234e5d9d1 | |||
93962505c7 | |||
0603ecf99a | |||
5e698b3b74 | |||
cc55bd0169 | |||
7f47018cbf | |||
570add3b6f | |||
0e14574aed | |||
599f3499bd | |||
4246f60930 | |||
601b1db8d5 | |||
c47b7c0f76 | |||
d4cc7dcfdf | |||
58a7ce4fd4 | |||
f8870cd12d | |||
aff0563fc3 | |||
6d460a9042 | |||
8809ddaac7 | |||
958f33db7f | |||
0bfeaaf841 | |||
134ebeb1d0 | |||
b4a3691aae | |||
03748e0c0e | |||
d4a40e8c86 | |||
d38fadc902 | |||
dbb865603a | |||
456b26a860 | |||
62284056c3 | |||
41c06c821c | |||
d32c850ede | |||
f5f4d1c014 | |||
4ad846d151 | |||
6dfeaded43 | |||
57b500a614 | |||
078e542ef0 | |||
81d81adc4c | |||
b82986ccf4 | |||
4ef50bb85a | |||
b8809bed47 | |||
16fc4da41c | |||
2c44a9c8ad | |||
35666caefd | |||
bf89c119a7 | |||
1277dae92b | |||
a4476dc990 | |||
1e959d0aa1 |
135
.github/workflows/ant-latest.yml
vendored
Normal file
135
.github/workflows/ant-latest.yml
vendored
Normal file
@ -0,0 +1,135 @@
|
||||
|
||||
name: Java 22 CI
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
- master
|
||||
schedule:
|
||||
- cron: '0 0 * * *' # Every day at midnight UTC
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
|
||||
nsis-jdk22:
|
||||
runs-on: windows-latest
|
||||
steps:
|
||||
- uses: Vampire/setup-wsl@v3
|
||||
with:
|
||||
distribution: Ubuntu-20.04
|
||||
- name: Set git to use LF
|
||||
run: |
|
||||
git config --global core.autocrlf false
|
||||
git config --global core.eol lf
|
||||
git config --global user.email "github@i2p.net"
|
||||
git config --global user.name "eyedeekay Github CI Build"
|
||||
- uses: actions/checkout@v4
|
||||
- run: wsl apt-get update
|
||||
- run: wsl apt-get install -y nsis nsis-common nsis-pluginapi wget dos2unix curl jq gpg gettext
|
||||
- name: Set up JDK 22
|
||||
uses: actions/setup-java@v4
|
||||
with:
|
||||
java-version: '22'
|
||||
distribution: 'temurin'
|
||||
- name: build with script
|
||||
run: bash -c "./buildscripts/unsigned.sh; ls *.exe"
|
||||
- name: Upload archived copy of I2P router source embedded in the build
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: i2p.i2p.jpackage-build.tar.gz
|
||||
path: i2p.i2p.jpackage-build.tar.gz
|
||||
- name: Upload prebuilt jpackage bundle without any plugins or modded config
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: I2P-Prebuilt.zip
|
||||
path: I2P-Prebuilt.zip
|
||||
- name: Upload I2P-Easy-Install-Bundle-unsigned.exe
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: I2P-Easy-Install-Bundle-unsigned-jdk22.exe
|
||||
path: I2P-Easy-Install-Bundle-*.exe
|
||||
|
||||
buildjpackagexe-jdk22:
|
||||
runs-on: windows-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Set up JDK 22
|
||||
uses: actions/setup-java@v4
|
||||
with:
|
||||
java-version: '22'
|
||||
distribution: 'temurin'
|
||||
- name: build with script
|
||||
run: bash -c "./buildscripts/exe.sh; ls *.exe"
|
||||
- name: Upload I2P-Easy-Install-Bundle-unsigned.exe
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: I2P-EXE-unsigned-jdk22.exe
|
||||
path: I2P-EXE-*.exe
|
||||
|
||||
buildjpackagmsi-jdk22:
|
||||
runs-on: windows-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Set up JDK 22
|
||||
uses: actions/setup-java@v4
|
||||
with:
|
||||
java-version: '22'
|
||||
distribution: 'temurin'
|
||||
- name: build with script
|
||||
run: bash -c "./buildscripts/msi.sh; ls *.msi"
|
||||
- name: Upload I2P-Easy-Install-Bundle-unsigned.msi
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: I2P-MSI-unsigned-jdk22.msi
|
||||
path: I2P-MSI-*.msi
|
||||
|
||||
buildzip-jdk22:
|
||||
runs-on: windows-latest
|
||||
steps:
|
||||
- uses: Vampire/setup-wsl@v3
|
||||
with:
|
||||
distribution: Ubuntu-20.04
|
||||
- name: Set git to use LF
|
||||
run: |
|
||||
git config --global core.autocrlf false
|
||||
git config --global core.eol lf
|
||||
git config --global user.email "github@i2p.net"
|
||||
git config --global user.name "eyedeekay Github CI Build"
|
||||
- uses: actions/checkout@v4
|
||||
- run: wsl apt-get update
|
||||
- run: wsl apt-cache search 7zip
|
||||
- run: wsl apt-get install -y nsis nsis-common nsis-pluginapi wget dos2unix curl jq gpg gettext zip p7zip-full ca-certificates
|
||||
- run: choco install wget
|
||||
- name: Set up JDK 22
|
||||
uses: actions/setup-java@v4
|
||||
with:
|
||||
java-version: '22'
|
||||
distribution: 'temurin'
|
||||
- name: build with script
|
||||
run: bash -c "./buildscripts/zip.sh; ls -d * */* "
|
||||
- name: Upload I2P-windows-portable.zip
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: I2P-windows-portable-jdk22.zip
|
||||
path: I2P-windows-portable.zip
|
||||
|
||||
buildtgz-jdk22:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Set up JDK 22
|
||||
uses: actions/setup-java@v4
|
||||
with:
|
||||
java-version: '22'
|
||||
distribution: 'temurin'
|
||||
- run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y nsis nsis-common nsis-pluginapi wget dos2unix curl jq gpg gettext
|
||||
- name: build with script
|
||||
run: ./buildscripts/targz.sh; ls *.tar.gz
|
||||
- name: Upload I2P.tar.gz
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: I2P-jdk22.tar.gz
|
||||
path: I2P.tar.gz
|
30
.github/workflows/ant.yml
vendored
30
.github/workflows/ant.yml
vendored
@ -1,7 +1,14 @@
|
||||
|
||||
name: Java CI
|
||||
|
||||
on: [push]
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
- master
|
||||
schedule:
|
||||
- cron: '0 0 * * *' # Every day at midnight UTC
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
|
||||
@ -27,11 +34,21 @@ jobs:
|
||||
distribution: 'temurin'
|
||||
- name: build with script
|
||||
run: bash -c "./buildscripts/unsigned.sh; ls *.exe"
|
||||
- name: Upload archived copy of I2P router source embedded in the build
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: i2p.i2p.jpackage-build.tar.gz
|
||||
path: i2p.i2p.jpackage-build.tar.gz
|
||||
- name: Upload prebuilt jpackage bundle without any plugins or modded config
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: I2P-Prebuilt.zip
|
||||
path: I2P-Prebuilt.zip
|
||||
- name: Upload I2P-Easy-Install-Bundle-unsigned.exe
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: I2P-Easy-Install-Bundle-unsigned.exe
|
||||
path: I2P-Easy-Install-Bundle-2.4.0.exe
|
||||
path: I2P-Easy-Install-Bundle-*.exe
|
||||
|
||||
buildjpackagexe:
|
||||
runs-on: windows-latest
|
||||
@ -48,7 +65,7 @@ jobs:
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: I2P-EXE-unsigned.exe
|
||||
path: I2P-EXE-2.4.0.exe
|
||||
path: I2P-EXE-*.exe
|
||||
|
||||
buildjpackagmsi:
|
||||
runs-on: windows-latest
|
||||
@ -65,7 +82,7 @@ jobs:
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: I2P-MSI-unsigned.msi
|
||||
path: I2P-MSI-2.4.0.msi
|
||||
path: I2P-MSI-*.msi
|
||||
|
||||
buildzip:
|
||||
runs-on: windows-latest
|
||||
@ -81,7 +98,8 @@ jobs:
|
||||
git config --global user.name "eyedeekay Github CI Build"
|
||||
- uses: actions/checkout@v4
|
||||
- run: wsl apt-get update
|
||||
- run: wsl apt-get install -y nsis nsis-common nsis-pluginapi wget dos2unix curl jq gpg gettext zip
|
||||
- run: wsl apt-cache search 7zip
|
||||
- run: wsl apt-get install -y nsis nsis-common nsis-pluginapi wget dos2unix curl jq gpg gettext zip p7zip-full ca-certificates
|
||||
- run: choco install wget
|
||||
- name: Set up JDK 21
|
||||
uses: actions/setup-java@v4
|
||||
@ -89,7 +107,7 @@ jobs:
|
||||
java-version: '21'
|
||||
distribution: 'temurin'
|
||||
- name: build with script
|
||||
run: bash -c "./buildscripts/zip.sh; ls *.zip"
|
||||
run: bash -c "./buildscripts/zip.sh; ls -d * */* "
|
||||
- name: Upload I2P-windows-portable.zip
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
|
101
.github/workflows/release-nightly-latest.yml
vendored
Normal file
101
.github/workflows/release-nightly-latest.yml
vendored
Normal file
@ -0,0 +1,101 @@
|
||||
name: Nightly Release
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
- master
|
||||
schedule:
|
||||
- cron: '0 0 * * *' # Every day at midnight UTC
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: write
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
sparse-checkout: |
|
||||
changelog.txt
|
||||
docs/RELEASE.md
|
||||
sparse-checkout-cone-mode: false
|
||||
- name: sleep 22 minutes
|
||||
run: |
|
||||
echo "sleeping 22 minutes to wait for artifacts"
|
||||
sleep 1m
|
||||
echo "sleeping 21 minutes to wait for artifacts"
|
||||
sleep 1m
|
||||
echo "sleeping 20 minutes to wait for artifacts"
|
||||
sleep 1m
|
||||
echo "sleeping 19 minutes to wait for artifacts"
|
||||
sleep 1m
|
||||
echo "sleeping 18 minutes to wait for artifacts"
|
||||
sleep 1m
|
||||
echo "sleeping 17 minutes to wait for artifacts"
|
||||
sleep 1m
|
||||
echo "sleeping 16 minutes to wait for artifacts"
|
||||
sleep 1m
|
||||
echo "sleeping 15 minutes to wait for artifacts"
|
||||
sleep 1m
|
||||
echo "sleeping 14 minutes to wait for artifacts"
|
||||
sleep 1m
|
||||
echo "sleeping 13 minutes to wait for artifacts"
|
||||
sleep 1m
|
||||
echo "sleeping 12 minutes to wait for artifacts"
|
||||
sleep 1m
|
||||
echo "sleeping 11 minutes to wait for artifacts"
|
||||
sleep 1m
|
||||
echo "sleeping 10 minutes to wait for artifacts"
|
||||
sleep 1m
|
||||
echo "sleeping 9 minutes to wait for artifacts"
|
||||
sleep 1m
|
||||
echo "sleeping 8 minutes to wait for artifacts"
|
||||
sleep 1m
|
||||
echo "sleeping 7 minutes to wait for artifacts"
|
||||
sleep 1m
|
||||
echo "sleeping 6 minutes to wait for artifacts"
|
||||
sleep 1m
|
||||
echo "sleeping 5 minutes to wait for artifacts"
|
||||
sleep 1m
|
||||
echo "sleeping 4 minutes to wait for artifacts"
|
||||
sleep 1m
|
||||
echo "sleeping 3 minutes to wait for artifacts"
|
||||
sleep 1m
|
||||
echo "sleeping 2 minutes to wait for artifacts"
|
||||
sleep 1m
|
||||
echo "sleeping 1 minutes to wait for artifacts"
|
||||
sleep 1m
|
||||
- name: Download artifacts
|
||||
id: download-artifact
|
||||
uses: dawidd6/action-download-artifact@v3
|
||||
with:
|
||||
skip_unpack: true
|
||||
workflow: ant-latest.yml
|
||||
if_no_artifact_found: fail
|
||||
# remove .zip file extension
|
||||
- run: for f in *.zip; do unzip "$f"; rm "$f"; done
|
||||
- run: cp changelog.txt changelog-java22.txt
|
||||
- run: echo "" | tee -a changelog-java22.txt
|
||||
- run: echo "## Checksums" | tee -a changelog-java22.txt
|
||||
- run: echo "" | tee -a changelog-java22.txt
|
||||
- run: echo '```' | tee -a changelog-java22.txt
|
||||
- run: sha256sum * | tee -a changelog-java22.txt
|
||||
- run: echo '```' | tee -a changelog-java22.txt
|
||||
- run: echo "" | tee -a changelog-java22.txt
|
||||
- run: echo '```' | tee -a changelog-java22.txt
|
||||
- run: file * | tee -a changelog-java22.txt
|
||||
- run: echo '```' | tee -a changelog-java22.txt
|
||||
- run: echo "" | tee -a changelog-java22.txt
|
||||
- run: cat docs/RELEASE.md changelog-java22.txt > RELEASE.md
|
||||
- name: Upload artifacts
|
||||
uses: ncipollo/release-action@v1
|
||||
with:
|
||||
artifacts: "*"
|
||||
prerelease: true
|
||||
allowUpdates: true
|
||||
replacesArtifacts: true
|
||||
makeLatest: true
|
||||
tag: nightly
|
||||
bodyFile: "RELEASE.md"
|
96
.github/workflows/release-nightly.yml
vendored
Normal file
96
.github/workflows/release-nightly.yml
vendored
Normal file
@ -0,0 +1,96 @@
|
||||
name: Nightly 22 Release
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
- master
|
||||
schedule:
|
||||
- cron: '0 0 * * *' # Every day at midnight UTC
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: write
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
sparse-checkout: |
|
||||
changelog.txt
|
||||
docs/RELEASE.md
|
||||
sparse-checkout-cone-mode: false
|
||||
- name: sleep 15 minutes
|
||||
run: |
|
||||
echo "sleeping 20 minutes to wait for artifacts"
|
||||
sleep 1m
|
||||
echo "sleeping 19 minutes to wait for artifacts"
|
||||
sleep 1m
|
||||
echo "sleeping 18 minutes to wait for artifacts"
|
||||
sleep 1m
|
||||
echo "sleeping 17 minutes to wait for artifacts"
|
||||
sleep 1m
|
||||
echo "sleeping 16 minutes to wait for artifacts"
|
||||
sleep 1m
|
||||
echo "sleeping 15 minutes to wait for artifacts"
|
||||
sleep 1m
|
||||
echo "sleeping 14 minutes to wait for artifacts"
|
||||
sleep 1m
|
||||
echo "sleeping 13 minutes to wait for artifacts"
|
||||
sleep 1m
|
||||
echo "sleeping 12 minutes to wait for artifacts"
|
||||
sleep 1m
|
||||
echo "sleeping 11 minutes to wait for artifacts"
|
||||
sleep 1m
|
||||
echo "sleeping 10 minutes to wait for artifacts"
|
||||
sleep 1m
|
||||
echo "sleeping 9 minutes to wait for artifacts"
|
||||
sleep 1m
|
||||
echo "sleeping 8 minutes to wait for artifacts"
|
||||
sleep 1m
|
||||
echo "sleeping 7 minutes to wait for artifacts"
|
||||
sleep 1m
|
||||
echo "sleeping 6 minutes to wait for artifacts"
|
||||
sleep 1m
|
||||
echo "sleeping 5 minutes to wait for artifacts"
|
||||
sleep 1m
|
||||
echo "sleeping 4 minutes to wait for artifacts"
|
||||
sleep 1m
|
||||
echo "sleeping 3 minutes to wait for artifacts"
|
||||
sleep 1m
|
||||
echo "sleeping 2 minutes to wait for artifacts"
|
||||
sleep 1m
|
||||
echo "sleeping 1 minutes to wait for artifacts"
|
||||
sleep 1m
|
||||
- name: Download artifacts
|
||||
id: download-artifact
|
||||
uses: dawidd6/action-download-artifact@v3
|
||||
with:
|
||||
skip_unpack: true
|
||||
workflow: ant.yml
|
||||
if_no_artifact_found: fail
|
||||
# remove .zip file extension
|
||||
- run: for f in *.zip; do unzip "$f"; rm "$f"; done
|
||||
- run: echo "" | tee -a changelog.txt
|
||||
- run: echo "## Checksums" | tee -a changelog.txt
|
||||
- run: echo "" | tee -a changelog.txt
|
||||
- run: echo '```' | tee -a changelog.txt
|
||||
- run: sha256sum * | tee -a changelog.txt
|
||||
- run: echo '```' | tee -a changelog.txt
|
||||
- run: echo "" | tee -a changelog.txt
|
||||
- run: echo '```' | tee -a changelog.txt
|
||||
- run: file * | tee -a changelog.txt
|
||||
- run: echo '```' | tee -a changelog.txt
|
||||
- run: echo "" | tee -a changelog.txt
|
||||
- run: cat docs/RELEASE.md changelog.txt > RELEASE.md
|
||||
- name: Upload artifacts
|
||||
uses: ncipollo/release-action@v1
|
||||
with:
|
||||
artifacts: "*"
|
||||
prerelease: true
|
||||
allowUpdates: true
|
||||
replacesArtifacts: true
|
||||
makeLatest: true
|
||||
tag: nightly
|
||||
bodyFile: "RELEASE.md"
|
16
.github/workflows/release.yml
vendored
16
.github/workflows/release.yml
vendored
@ -1,7 +1,5 @@
|
||||
name: Release
|
||||
|
||||
#on: [push]
|
||||
|
||||
on:
|
||||
push:
|
||||
# Sequence of patterns matched against refs/tags
|
||||
@ -19,9 +17,20 @@ jobs:
|
||||
with:
|
||||
sparse-checkout: |
|
||||
changelog.txt
|
||||
docs/RELEASE.md
|
||||
sparse-checkout-cone-mode: false
|
||||
- name: sleep 15 minutes
|
||||
run: |
|
||||
echo "sleeping 20 minutes to wait for artifacts"
|
||||
sleep 1m
|
||||
echo "sleeping 19 minutes to wait for artifacts"
|
||||
sleep 1m
|
||||
echo "sleeping 18 minutes to wait for artifacts"
|
||||
sleep 1m
|
||||
echo "sleeping 17 minutes to wait for artifacts"
|
||||
sleep 1m
|
||||
echo "sleeping 16 minutes to wait for artifacts"
|
||||
sleep 1m
|
||||
echo "sleeping 15 minutes to wait for artifacts"
|
||||
sleep 1m
|
||||
echo "sleeping 14 minutes to wait for artifacts"
|
||||
@ -72,8 +81,9 @@ jobs:
|
||||
- run: file * | tee -a changelog.txt
|
||||
- run: echo '```' | tee -a changelog.txt
|
||||
- run: echo "" | tee -a changelog.txt
|
||||
- run: cat docs/RELEASE.md changelog.txt > RELEASE.md
|
||||
- name: Upload artifacts
|
||||
uses: ncipollo/release-action@v1
|
||||
with:
|
||||
artifacts: "*"
|
||||
bodyFile: "changelog.txt"
|
||||
bodyFile: "RELEASE.md"
|
||||
|
66
.github/workflows/sync.yaml
vendored
Normal file
66
.github/workflows/sync.yaml
vendored
Normal file
@ -0,0 +1,66 @@
|
||||
# GitHub Actions workflow file to sync an external repository to this GitHub mirror.
|
||||
# This file was automatically generated by go-github-sync.
|
||||
#
|
||||
# The workflow does the following:
|
||||
# - Runs on a scheduled basis (and can also be triggered manually)
|
||||
# - Clones the GitHub mirror repository
|
||||
# - Fetches changes from the primary external repository
|
||||
# - Applies those changes to the mirror repository
|
||||
# - Pushes the updated content back to the GitHub mirror
|
||||
#
|
||||
# Authentication is handled by the GITHUB_TOKEN secret provided by GitHub Actions.
|
||||
|
||||
jobs:
|
||||
sync:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Validate Github Actions Environment
|
||||
run: if [ "$GITHUB_ACTIONS" != "true" ]; then echo 'This script must be run in a GitHub Actions environment.'; exit 1; fi
|
||||
- name: Checkout GitHub Mirror
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: Configure Git
|
||||
run: |-
|
||||
git config user.name 'GitHub Actions'
|
||||
git config user.email 'actions@github.com'
|
||||
- env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
name: Sync Primary Repository
|
||||
run: |-
|
||||
# Add the primary repository as a remote
|
||||
git remote add primary https://i2pgit.org/I2P_Developers/i2p.firefox.git
|
||||
|
||||
# Fetch the latest changes from the primary repository
|
||||
git fetch primary
|
||||
|
||||
# Check if the primary branch exists in the primary repository
|
||||
if git ls-remote --heads primary master | grep -q master; then
|
||||
echo "Primary branch master found in primary repository"
|
||||
else
|
||||
echo "Error: Primary branch master not found in primary repository"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Check if we're already on the mirror branch
|
||||
if git rev-parse --verify --quiet master; then
|
||||
git checkout master
|
||||
else
|
||||
# Create the mirror branch if it doesn't exist
|
||||
git checkout -b master
|
||||
fi
|
||||
|
||||
|
||||
# Force-apply all changes from primary, overriding any conflicts
|
||||
echo "Performing force sync from primary/master to master"
|
||||
git reset --hard primary/master
|
||||
|
||||
|
||||
# Push changes back to the mirror repository
|
||||
git push origin master
|
||||
name: Sync Primary Repository to GitHub Mirror
|
||||
"on":
|
||||
push: {}
|
||||
schedule:
|
||||
- cron: 0 * * * *
|
||||
workflow_dispatch: {}
|
190
LICENSE.html
190
LICENSE.html
@ -8,90 +8,113 @@
|
||||
<meta name="keywords" content="master" />
|
||||
<link rel="stylesheet" type="text/css" href="style.css" />
|
||||
<link rel="stylesheet" type="text/css" href="showhider.css" />
|
||||
<link rel="stylesheet" type="text/css" href="darklight.css" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="navbar">
|
||||
<a href="#shownav">
|
||||
Show navigation
|
||||
</a>
|
||||
<div id="shownav">
|
||||
<div id="hidenav">
|
||||
<ul>
|
||||
<li>
|
||||
<a href="..">
|
||||
Up one level ^
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="index.html">
|
||||
index
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="LICENSE.html">
|
||||
LICENSE
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="UPDATES.html">
|
||||
UPDATES
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
<br>
|
||||
<a href="#hidenav">
|
||||
Hide Navigation
|
||||
</a>
|
||||
<input type="checkbox" id="checkboxDarkLight">
|
||||
<div class="container">
|
||||
<div id="navbar">
|
||||
<a href="#shownav">
|
||||
Show navigation
|
||||
</a>
|
||||
<div id="shownav">
|
||||
<div id="hidenav">
|
||||
<ul>
|
||||
<li>
|
||||
<a href="..">
|
||||
Up one level ^
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="index.html">
|
||||
index
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="LICENSE.html">
|
||||
LICENSE
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="index.html">
|
||||
index.html
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="docs/GOALS.html">
|
||||
docs/GOALS
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="docs/PRINCIPLES.html">
|
||||
docs/PRINCIPLES
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="docs/RELEASE.html">
|
||||
docs/RELEASE
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="docs/UPDATES.html">
|
||||
docs/UPDATES
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
<br>
|
||||
<a href="#hidenav">
|
||||
Hide Navigation
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<a id="returnhome" href="/">
|
||||
/
|
||||
</a>
|
||||
<p>
|
||||
Copyright 2018
|
||||
</p>
|
||||
<p>
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
||||
this software and associated documentation files (the “Software”), to deal in
|
||||
the Software without restriction, including without limitation the rights to
|
||||
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
||||
the Software, and to permit persons to whom the Software is furnished to do so,
|
||||
subject to the following conditions:
|
||||
</p>
|
||||
<p>
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
</p>
|
||||
<p>
|
||||
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
||||
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
||||
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
||||
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
</p>
|
||||
<div id="sourcecode">
|
||||
<span id="sourcehead">
|
||||
<strong>
|
||||
Get the source code:
|
||||
</strong>
|
||||
</span>
|
||||
<ul>
|
||||
<li>
|
||||
<a href="https://github.com/eyedeekay/i2p.firefox">
|
||||
Source Repository: (https://github.com/eyedeekay/i2p.firefox)
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div>
|
||||
<a href="#show">
|
||||
Show license
|
||||
<a id="returnhome" href="/">
|
||||
/
|
||||
</a>
|
||||
<div id="show">
|
||||
<div id="hide">
|
||||
<pre><code>Copyright 2018
|
||||
<p>
|
||||
Copyright 2018
|
||||
</p>
|
||||
<p>
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
||||
this software and associated documentation files (the “Software”), to deal in
|
||||
the Software without restriction, including without limitation the rights to
|
||||
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
||||
the Software, and to permit persons to whom the Software is furnished to do so,
|
||||
subject to the following conditions:
|
||||
</p>
|
||||
<p>
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
</p>
|
||||
<p>
|
||||
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
||||
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
||||
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
||||
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
</p>
|
||||
<div id="sourcecode">
|
||||
<span id="sourcehead">
|
||||
<strong>
|
||||
Get the source code:
|
||||
</strong>
|
||||
</span>
|
||||
<ul>
|
||||
<li>
|
||||
<a href="https://github.com/eyedeekay/i2p.firefox">
|
||||
Source Repository: (https://github.com/eyedeekay/i2p.firefox)
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div>
|
||||
<a href="#show">
|
||||
Show license
|
||||
</a>
|
||||
<div id="show">
|
||||
<div id="hide">
|
||||
<pre><code>Copyright 2018
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
||||
this software and associated documentation files (the "Software"), to deal in
|
||||
@ -110,9 +133,10 @@ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
||||
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
</code></pre>
|
||||
<a href="#hide">
|
||||
Hide license
|
||||
</a>
|
||||
<a href="#hide">
|
||||
Hide license
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -121,7 +145,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
</div>
|
||||
<div>
|
||||
<a href="https://geti2p.net/">
|
||||
<img src="i2plogo.png"></img>
|
||||
<img class="i2plogo" src="i2plogo.png"></img>
|
||||
I2P
|
||||
</a>
|
||||
</div>
|
||||
|
70
README.md
70
README.md
@ -1,5 +1,5 @@
|
||||
I2P Easy-Install Bundle for Windows(Also/formerly)I2P Browsing Profile for Firefox
|
||||
==================================================================================
|
||||
I2P Easy-Install Bundle for Windows, (Formerly)I2P Browsing Profile for Firefox
|
||||
===============================================================================
|
||||
|
||||
Features:
|
||||
---------
|
||||
@ -13,6 +13,13 @@ Features:
|
||||
Build Dependencies:
|
||||
-------------------
|
||||
|
||||
**SHORTCUT:** All the build artifacts can be produced by the description in the `.yaml` files in `.github/workflows`.
|
||||
These can be run on Github's infrastructure, or on a local(Windows) PC using https://github.com/nektos/act.
|
||||
Doing things this way deals with all the dependency issues that Windows doesn't really give you a good way to deal with automatically.
|
||||
It also guarantees that the same base container and environment gets used for every build no matter what machine it runs on.
|
||||
I highly recommend you use either Github CI or `nektos/act` for dev builds of this software, as it **automates literally every one of the steps**.
|
||||
CI-based builds follow the `WSL` version of the instructions.
|
||||
|
||||
To build this, you will need the following software packages
|
||||
(all available in Debian and Ubuntu, see WSL section below):
|
||||
|
||||
@ -88,8 +95,8 @@ Windows Build
|
||||
-------------
|
||||
|
||||
After installing the dependencies and completing the preparations,
|
||||
just run `make`. This will produce the install.exe - the windows
|
||||
installer, which sets up the shortcuts to launch Firefox on Windows.
|
||||
just run `buildscripts/unsigned.sh`. This will produce the install.exe - the
|
||||
windows installer, which sets up the shortcuts to launch Firefox on Windows.
|
||||
Building without a jpackage is no longer supported.
|
||||
|
||||
When generating a build it's important to make sure that the
|
||||
@ -130,7 +137,7 @@ Ubuntu in WSL.
|
||||
7. Move into the i2p.firefox directory. Run the `./buildscripts/build.sh` script.
|
||||
|
||||
cd i2p.firefox
|
||||
./buildscripts/build.sh
|
||||
./buildscripts/unsigned.sh
|
||||
|
||||
8. Compile the NSIS installer using WSL.
|
||||
|
||||
@ -166,67 +173,18 @@ set up and you're using git bash, that is enough to make the scripts compatible
|
||||
cd i2p.firefox
|
||||
./buildscripts/unsigned.sh
|
||||
|
||||
6. Run `make` to build the installer.
|
||||
|
||||
Doing a Release
|
||||
---------------
|
||||
|
||||
Once you have the installer `.exe` file produced by NSIS, you're almost ready to
|
||||
do a release. As a final step, someone must sign the `.exe` file using a
|
||||
Certificate which Windows will recognize. The current signer of the Windows
|
||||
bundle is Zlatinb. Standard Windows signing tools are used.
|
||||
Certificate which Windows will recognize. Standard Windows signing tools are used.
|
||||
|
||||
```sh
|
||||
./release.sh
|
||||
```
|
||||
|
||||
produces the binary.
|
||||
|
||||
Building a signed update file
|
||||
-----------------------------
|
||||
|
||||
Building a signed update file for automatically updating a Windows I2P router
|
||||
requires you to either be using linux, or have Go installed in your Cygwin or WSL environment.
|
||||
On Linux(Where I sign the su3 files), this works:
|
||||
|
||||
make su3
|
||||
|
||||
to run the signing tool if necessary and then package the installer in a
|
||||
signed update file.
|
||||
|
||||
Docker Support
|
||||
--------------
|
||||
|
||||
**MOVED, DEPRECATION NOTICE:** Most of this functionality has been moved
|
||||
to http://git.idk.i2p/idk/i2p.plugins.firefox which is more stable,
|
||||
easier to build and use, and easier to incorporate into other
|
||||
projects.
|
||||
|
||||
- https://git.idk.i2p/idk/i2p.plugins.firefox/-/blob/main/docker.sh
|
||||
|
||||
Unix Support
|
||||
------------
|
||||
|
||||
**MOVED. DEPRECATION NOTICE:** Most of this functionality has been moved
|
||||
to http://git.idk.i2p/idk/i2p.plugins.firefox which is more stable,
|
||||
easier to build and use, and easier to incorporate into other
|
||||
projects. It is the better option for nearly every non-Windows case
|
||||
right now. You can get binary packages from:
|
||||
|
||||
- https://github.com/eyedeekay/i2p.plugins.firefox/releases
|
||||
|
||||
or look at
|
||||
|
||||
- https://i2pgit.org/idk/i2p.plugins.firefox/-/blob/master/PACKAGES.md
|
||||
|
||||
for instructions on how to build your own packages. These packages are
|
||||
unofficial! Although I do dogfood most of them and the `.jar` gets thorough
|
||||
testing.
|
||||
|
||||
**The only remotely interesting Unix functionality that remains in this**
|
||||
**repository is the construction of a portable. You can use `targz.sh` to**
|
||||
**generate that. Once generated, `cd I2P && ./lib/torbrowser.sh` to complete**
|
||||
**setup, and `./bin/I2P` to run it.**
|
||||
produces the binary and the su3.
|
||||
|
||||
Issues
|
||||
------
|
||||
|
@ -55,7 +55,12 @@ echo "preparing to invoke jpackage for I2P version $I2P_VERSION"
|
||||
rm -rf I2P
|
||||
|
||||
if [ ! -d "I2P" ]; then
|
||||
"$JAVA_HOME"/bin/jpackage --type app-image --name I2P --app-version "$I2P_VERSION" \
|
||||
if echo "$I2P_VERSION" | grep "master"; then
|
||||
RELEASE_VERSION="9.9.9"
|
||||
else
|
||||
RELEASE_VERSION="$I2P_VERSION"
|
||||
fi
|
||||
"$JAVA_HOME"/bin/jpackage --type app-image --name I2P --app-version "$RELEASE_VERSION" \
|
||||
--verbose \
|
||||
--java-options "-Xmx512m" \
|
||||
--java-options "--add-opens java.base/java.lang=ALL-UNNAMED" \
|
||||
@ -80,4 +85,5 @@ cp "$SCRIPT_DIR/../i2p.i2p.jpackage-build/LICENSE.txt" license/I2P.txt
|
||||
|
||||
mkdir -p "$SCRIPT_DIR"/build/I2P
|
||||
cp -rv "$SCRIPT_DIR"/I2P/* "$SCRIPT_DIR"/build/I2P
|
||||
cp -rv src/I2P/config build/I2P/config
|
||||
cp -rv src/I2P/config build/I2P/config
|
||||
zip -r I2P-Prebuilt.zip build/I2P/
|
@ -8,7 +8,12 @@ cd "$SCRIPT_DIR" || exit 1
|
||||
. ./config.sh
|
||||
. ./i2pversion
|
||||
./buildscripts/build.sh
|
||||
jpackage --name I2P-EXE --app-version "$I2P_VERSION" \
|
||||
if echo "$I2P_VERSION" | grep "master"; then
|
||||
RELEASE_VERSION="9.9.9"
|
||||
else
|
||||
RELEASE_VERSION="$I2P_VERSION"
|
||||
fi
|
||||
jpackage --name I2P-EXE --app-version "$RELEASE_VERSION" \
|
||||
--verbose \
|
||||
--java-options "-Xmx512m" \
|
||||
--java-options "--add-opens java.base/java.lang=ALL-UNNAMED" \
|
||||
|
@ -48,9 +48,16 @@ export I2P_JARS="$I2P_PKG/lib"
|
||||
export I2P_JBIGI="$SCRIPT_DIR/../i2p.i2p.jpackage-build/installer/lib/jbigi"
|
||||
export I2P_JBIGI_JAR="$SCRIPT_DIR/../i2p.i2p.jpackage-build/build/jbigi.jar"
|
||||
if [ ! -d "$SCRIPT_DIR/../i2p.i2p.jpackage-build/" ]; then
|
||||
git clone --depth=1 -b "$VERSION" https://i2pgit.org/i2p-hackers/i2p.i2p "$SCRIPT_DIR/../i2p.i2p.jpackage-build/"
|
||||
if [ -d "$SCRIPT_DIR/../i2p.i2p/" ]; then
|
||||
echo cloning from local i2p.i2p checkout
|
||||
git clone --depth=1 -b "$VERSION" -l "$SCRIPT_DIR/../i2p.i2p/" "$SCRIPT_DIR/../i2p.i2p.jpackage-build/"
|
||||
else
|
||||
echo cloning from remote i2p.i2p repository
|
||||
git clone --depth=1 -b "$VERSION" https://i2pgit.org/I2P_Developers/i2p.i2p "$SCRIPT_DIR/../i2p.i2p.jpackage-build/"
|
||||
fi
|
||||
fi
|
||||
cd "$SCRIPT_DIR/../i2p.i2p.jpackage-build/"
|
||||
echo "setting up git branch for build"
|
||||
OLDEXTRA=$(find . -name RouterVersion.java -exec grep 'String EXTRA' {} \;)
|
||||
if [ -z "$EXTRA" ]; then
|
||||
export EXTRACODE="win"
|
||||
@ -58,14 +65,18 @@ if [ -z "$EXTRA" ]; then
|
||||
fi
|
||||
if [ "$VERSION" = master ]; then
|
||||
VERSIONDATE="$(date +%m%d)"
|
||||
else
|
||||
export TAG_VERSION="$VERSION"
|
||||
fi
|
||||
echo "build is: i2p-$TAG_VERSION-$VERSIONDATE-$EXTRACODE"
|
||||
|
||||
find . -name RouterVersion.java -exec sed -i "s|$OLDEXTRA|$EXTRA|g" {} \;
|
||||
git switch - || :
|
||||
git pull --tags
|
||||
git checkout -b "i2p-$VERSION$VERSIONDATE-$EXTRACODE" || :
|
||||
git commit -am "i2p-$VERSION$VERSIONDATE-$EXTRACODE" || :
|
||||
git archive --format=tar.gz --output="$SCRIPT_DIR/../i2p.firefox/i2p.i2p.jpackage-build.tar.gz" "i2p-$VERSION$VERSIONDATE-$EXTRACODE"
|
||||
git checkout "i2p-$VERSION$VERSIONDATE-$EXTRACODE" || :
|
||||
git checkout -b "i2p-$TAG_VERSION-$VERSIONDATE-$EXTRACODE" || :
|
||||
git commit -am "i2p-$TAG_VERSION-$VERSIONDATE-$EXTRACODE" || :
|
||||
git archive --format=tar.gz --output="$SCRIPT_DIR/../i2p.firefox/i2p.i2p.jpackage-build.tar.gz" "i2p-$TAG_VERSION-$VERSIONDATE-$EXTRACODE"
|
||||
git checkout "i2p-$TAG_VERSION-$VERSIONDATE-$EXTRACODE" || :
|
||||
|
||||
for i in $COUNT; do
|
||||
echo -n "$i...."; sleep 1s
|
||||
@ -76,7 +87,7 @@ ant jbigi
|
||||
cd "$SCRIPT_DIR"
|
||||
|
||||
mkdir -p "$SCRIPT_DIR/src/I2P/config"
|
||||
rm -rf "$SCRIPT_DIR/src/I2P/config/geoip" "$SCRIPT_DIR/src/I2P/config/webapps" "$SCRIPT_DIR/src/I2P/config/certificates"
|
||||
rm -rf "$SCRIPT_DIR/src/I2P/config/geoip" "$SCRIPT_DIR/src/I2P/config/webapps" "$SCRIPT_DIR/src/I2P/config/certificates" "$SCRIPT_DIR/src/I2P/config/eepsite"
|
||||
cp -v "$RES_DIR/clients.config" "$SCRIPT_DIR/src/I2P/config/"
|
||||
cp -v "$RES_DIR/wrapper.config" "$SCRIPT_DIR/src/I2P/config/"
|
||||
#grep -v 'router.updateURL' $(RES_DIR)/router.config > "$SCRIPT_DIR"/src/I2P/config/router.config
|
||||
@ -109,10 +120,11 @@ if [ ! -f "$SCRIPT_DIR/build/i2pfirefox.zip" ]; then
|
||||
wget_download "https://github.com/eyedeekay/i2p.plugins.firefox/releases/download/$I2PFIREFOX_VERSION/plugin.zip" -O "$SCRIPT_DIR/build/i2pfirefox.zip"
|
||||
fi
|
||||
|
||||
if [ ! -d "$SCRIPT_DIR/build/I2P/config/plugins/i2pfirefox" ]; then
|
||||
mkdir -p "$SCRIPT_DIR/build/I2P/config/plugins/"
|
||||
unzip "$SCRIPT_DIR/build/i2pfirefox.zip" -d "$SCRIPT_DIR/build/I2P/config/plugins/plugin"
|
||||
mv "$SCRIPT_DIR/build/I2P/config/plugins/plugin" "$SCRIPT_DIR/build/I2P/config/plugins/i2pfirefox"
|
||||
if [ ! -d "$SCRIPT_DIR/src/I2P/config/plugins/i2pfirefox" ]; then
|
||||
mkdir -p "$SCRIPT_DIR/src/I2P/config/plugins/"
|
||||
unzip "$SCRIPT_DIR/build/i2pfirefox.zip" -d "$SCRIPT_DIR/src/I2P/config/plugins/"
|
||||
rm -rf "$SCRIPT_DIR/src/I2P/config/plugins/i2pfirefox"
|
||||
mv "$SCRIPT_DIR/src/I2P/config/plugins/plugin" "$SCRIPT_DIR/src/I2P/config/plugins/i2pfirefox"
|
||||
fi
|
||||
|
||||
for dll in "$I2P_JBIGI/"*windows*.dll; do
|
||||
@ -121,10 +133,11 @@ done
|
||||
|
||||
cd "$SCRIPT_DIR"/java
|
||||
"$JAVA_HOME"/bin/javac -Xlint:deprecation -d ../build -classpath "$SCRIPT_DIR/build/i2pfirefox.jar:$SCRIPT_DIR/build/jna.jar:$SCRIPT_DIR/build/jna-platform.jar":"$SCRIPT_DIR/build/i2p.jar:$SCRIPT_DIR/build/router.jar:$SCRIPT_DIR/build/routerconsole.jar:$SCRIPT_DIR/build/jbigi.jar" \
|
||||
net/i2p/router/CopyConfigDir.java \
|
||||
net/i2p/router/I2PAppUtil.java \
|
||||
net/i2p/router/WindowsAppUtil.java \
|
||||
net/i2p/router/WindowsServiceUtil.java \
|
||||
net/i2p/router/WindowsUpdatePostProcessor.java \
|
||||
net/i2p/router/WinLauncher.java \
|
||||
net/i2p/router/WinUpdatePostProcessor.java \
|
||||
net/i2p/router/WinUpdateProcess.java \
|
||||
net/i2p/router/ZipUpdateProcess.java
|
||||
|
||||
|
@ -9,7 +9,12 @@ cd "$SCRIPT_DIR" || exit 1
|
||||
. ./i2pversion
|
||||
|
||||
"$SCRIPT_DIR"/buildscripts/build.sh
|
||||
jpackage --name I2P-MSI --app-version "$I2P_VERSION" \
|
||||
if echo "$I2P_VERSION" | grep "master"; then
|
||||
RELEASE_VERSION="9.9.9"
|
||||
else
|
||||
RELEASE_VERSION="$I2P_VERSION"
|
||||
fi
|
||||
jpackage --name I2P-MSI --app-version "$RELEASE_VERSION" \
|
||||
--verbose \
|
||||
--java-options "-Xmx512m" \
|
||||
--java-options "--add-opens java.base/java.lang=ALL-UNNAMED" \
|
||||
|
67
buildscripts/news.sh
Executable file
67
buildscripts/news.sh
Executable file
@ -0,0 +1,67 @@
|
||||
#! /usr/bin/env bash
|
||||
|
||||
SCRIPT_DIR=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd -P)/..
|
||||
cd "$SCRIPT_DIR" || exit 1
|
||||
|
||||
. "$SCRIPT_DIR/i2pversion"
|
||||
|
||||
if [ -f i2pversion_override ]; then
|
||||
. "$SCRIPT_DIR/i2pversion_override"
|
||||
fi
|
||||
|
||||
. "$SCRIPT_DIR/config.sh"
|
||||
|
||||
if [ -f "$SCRIPT_DIR/config_override.sh" ]; then
|
||||
. "$SCRIPT_DIR/config_override.sh"
|
||||
fi
|
||||
|
||||
if [ -z "$I2P_NEWSXML" ]; then
|
||||
if [ -d "../i2p.newsxml" ]; then
|
||||
export I2P_NEWSXML="../i2p.newsxml"
|
||||
else
|
||||
echo "i2p.newsxml is not in the parent directory and I2P_NEWSXML is unset"
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
cd "$I2P_NEWSXML" || exit 1
|
||||
export TITLE="Easy-Install for Windows Release $I2P_VERSION"
|
||||
echo "$TITLE"
|
||||
export AUTHOR=idk
|
||||
echo "$AUTHOR"
|
||||
export EDITOR=true
|
||||
echo "canceled manual editor"
|
||||
export I2P_OS=win
|
||||
echo "$I2P_OS"
|
||||
export I2P_BRANCH=beta
|
||||
echo "$I2P_VERSION"
|
||||
export SUMMARY_HERE=$(head -n 1 "$SCRIPT_DIR/docs/RELEASE.md" | sed "s|# ||g")
|
||||
echo "$SUMMARY_HERE"
|
||||
export CONTENT_HERE=$(tail -n +2 "$SCRIPT_DIR/docs/RELEASE.md" | markdown)
|
||||
echo "$CONTENT_HERE" > news-content.html
|
||||
unset CONTENT_HERE
|
||||
./create_new_entry.sh
|
||||
|
||||
export DATE=$(date +%Y-%m-%d)
|
||||
echo "$DATE"
|
||||
MAGNET=$(transmission-show -m "$SCRIPT_DIR/i2pwinupdate.su3.torrent" 2>&1 3>&1 | tail -n 1)
|
||||
|
||||
TORRENTJSON='['
|
||||
TORRENTJSON+=' {'
|
||||
TORRENTJSON+=" \"date\": \"$DATE\","
|
||||
TORRENTJSON+=" \"version\": \"$I2P_VERSION\","
|
||||
TORRENTJSON+=" \"minVersion\": \"1.5.0\","
|
||||
TORRENTJSON+=" \"minJavaVersion\": \"1.8\","
|
||||
TORRENTJSON+=" \"updates\": {"
|
||||
TORRENTJSON+=" \"su3\": {"
|
||||
TORRENTJSON+=" \"torrent\": \"$MAGNET\","
|
||||
TORRENTJSON+=" \"url\": ["
|
||||
TORRENTJSON+=" \"http://ekm3fu6fr5pxudhwjmdiea5dovc3jdi66hjgop4c7z7dfaw7spca.b32.i2p/i2pwinupdate.su3\""
|
||||
TORRENTJSON+=' ]'
|
||||
TORRENTJSON+=' }'
|
||||
TORRENTJSON+=' }'
|
||||
TORRENTJSON+=' }'
|
||||
TORRENTJSON+=']'
|
||||
|
||||
echo "$TORRENTJSON" | jq > "$I2P_NEWSXML/data/win/beta/releases.json"
|
||||
echo "$TORRENTJSON" | jq > "$I2P_NEWSXML/data/win/testing/releases.json"
|
@ -29,14 +29,14 @@ fi
|
||||
|
||||
|
||||
|
||||
echo github-release download -u "$GITHUB_USERNAME" -r "i2p.firefox" -n "I2P-Easy-Install-Bundle-$I2P_VERSION.exe" -t "$I2P_VERSION"
|
||||
github-release download -u "$GITHUB_USERNAME" -r "i2p.firefox" -n "I2P-Easy-Install-Bundle-$I2P_VERSION.exe" -t "$I2P_VERSION"
|
||||
echo github-release download -u "$GITHUB_USERNAME" -r "i2p.firefox" -n "I2P-Easy-Install-Bundle-$I2P_VERSION.exe" -t "i2p-firefox-$I2P_VERSION"
|
||||
github-release download -u "$GITHUB_USERNAME" -r "i2p.firefox" -n "I2P-Easy-Install-Bundle-$I2P_VERSION.exe" -t "i2p-firefox-$I2P_VERSION"
|
||||
|
||||
echo github-release download -u "$GITHUB_USERNAME" -r "i2p.firefox" -n "I2P.zip" -t "$I2P_VERSION"
|
||||
github-release download -u "$GITHUB_USERNAME" -r "i2p.firefox" -n "I2P.zip" -t "$I2P_VERSION"
|
||||
echo github-release download -u "$GITHUB_USERNAME" -r "i2p.firefox" -n "I2P-windows-portable.zip" -t "$I2P_VERSION"
|
||||
github-release download -u "$GITHUB_USERNAME" -r "i2p.firefox" -n "I2P-windows-portable.zip" -t "i2p-firefox-$I2P_VERSION"
|
||||
|
||||
echo github-release download -u "$GITHUB_USERNAME" -r "i2p.firefox" -n "i2p.i2p.jpackage-build.tar.gz" -t "$I2P_VERSION"
|
||||
github-release download -u "$GITHUB_USERNAME" -r "i2p.firefox" -n "i2p.i2p.jpackage-build.tar.gz" -t "$I2P_VERSION"
|
||||
echo github-release download -u "$GITHUB_USERNAME" -r "i2p.firefox" -n "i2p.i2p.jpackage-build.tar.gz" -t "i2p-firefox-$I2P_VERSION"
|
||||
github-release download -u "$GITHUB_USERNAME" -r "i2p.firefox" -n "i2p.i2p.jpackage-build.tar.gz" -t "i2p-firefox-$I2P_VERSION"
|
||||
|
||||
echo github-release download -u "$GITHUB_USERNAME" -r i2p -t "$I2P_VERSION" -n "./I2P-jpackage-windows-$I2P_VERSION.zip"
|
||||
github-release download -u "$GITHUB_USERNAME" -r i2p -t "$I2P_VERSION" -n "./I2P-jpackage-windows-$I2P_VERSION.zip"
|
||||
echo github-release download -u "$GITHUB_USERNAME" -r i2p.firefox -t "i2p-firefox-$I2P_VERSION" -n "./I2P-jpackage-windows-$I2P_VERSION.zip"
|
||||
github-release download -u "$GITHUB_USERNAME" -r i2p.firefox -t "i2p-firefox-$I2P_VERSION" -n "./I2P-jpackage-windows-$I2P_VERSION.zip"
|
||||
|
@ -27,18 +27,22 @@ if [ -f ./i2pversion_override ]; then
|
||||
. ./i2pversion_override
|
||||
fi
|
||||
|
||||
if [ ! -f "I2P-Easy-Install-Bundle-$I2P_VERSION.exe" ]; then
|
||||
wget -c "https://github.com/eyedeekay/i2p.firefox/releases/download/i2p-firefox-$I2P_VERSION/I2P-Easy-Install-Bundle-$I2P_VERSION.exe"
|
||||
fi
|
||||
|
||||
cp -v "I2P-Easy-Install-Bundle-$I2P_VERSION.exe" "I2P-Easy-Install-Bundle-$I2P_VERSION-signed.exe"
|
||||
java -cp "$I2P_LIBS/*" net.i2p.crypto.SU3File sign -c ROUTER -f EXE I2P-Easy-Install-Bundle-$I2P_VERSION-signed.exe I2P-Easy-Install-Bundle-$I2P_VERSION-signed.su3 "$HOME/.i2p-plugin-keys/news-su3-keystore.ks" $I2P_VERSION $SIGNER
|
||||
rm -f i2pwinupdate.su3.torrent
|
||||
cp -v I2P-Easy-Install-Bundle-$I2P_VERSION-signed.su3 i2pwinupdate.su3
|
||||
mktorrent \
|
||||
--announce=http://tracker2.postman.i2p/announce.php \
|
||||
--announce=http://w7tpbzncbcocrqtwwm3nezhnnsw4ozadvi2hmvzdhrqzfxfum7wa.b32.i2p/a \
|
||||
--announce=http://mb5ir7klpc2tj6ha3xhmrs3mseqvanauciuoiamx2mmzujvg67uq.b32.i2p/a \
|
||||
i2pwinupdate.su3
|
||||
|
||||
java -cp "$I2P_LIBS/*" "org.klomp.snark.Storage" -a http://tracker2.postman.i2p/announce.php -c "$SIGNER" -m "Official torrent for Windows Easy-Install version $I2P_VERSION" i2pwinupdate.su3
|
||||
echo "~~~~~~~~~~"
|
||||
MAGNET=$(transmission-show -m "i2pwinupdate.su3.torrent" 2>&1 3>&1 | tail -n 1)
|
||||
echo "$MAGNET"
|
||||
ZIPCHECKSUM=$(sha256sum "i2pwinupdate.su3")
|
||||
echo github-release upload -R -u "$GITHUB_USERNAME" -r "i2p.firefox" -f "i2pwinupdate.su3" -l "$ZIPCHECKSUM" -t "$I2P_VERSION" -n "i2pwinupdate.su3"
|
||||
github-release upload -R -u "$GITHUB_USERNAME" -r "i2p.firefox" -f "i2pwinupdate.su3" -l "$ZIPCHECKSUM" -t "$I2P_VERSION" -n "i2pwinupdate.su3"
|
||||
echo github-release upload -u "$GITHUB_USERNAME" -r "i2p.firefox" -f "i2pwinupdate.su3" -l "$ZIPCHECKSUM" -t "i2p-firefox-$I2P_VERSION" -n "i2pwinupdate.su3"
|
||||
github-release upload -u "$GITHUB_USERNAME" -r "i2p.firefox" -f "i2pwinupdate.su3" -l "$ZIPCHECKSUM" -t "i2p-firefox-$I2P_VERSION" -n "i2pwinupdate.su3"
|
||||
ZIPCHECKSUM=$(sha256sum "i2pwinupdate.su3.torrent")
|
||||
echo github-release upload -R -u "$GITHUB_USERNAME" -r "i2p.firefox" -f "i2pwinupdate.su3.torrent" -l "$ZIPCHECKSUM" -t "$I2P_VERSION" -n "i2pwinupdate.su3.torrent"
|
||||
github-release upload -R -u "$GITHUB_USERNAME" -r "i2p.firefox" -f "i2pwinupdate.su3.torrent" -l "$ZIPCHECKSUM" -t "$I2P_VERSION" -n "i2pwinupdate.su3.torrent"
|
||||
echo github-release upload -u "$GITHUB_USERNAME" -r "i2p.firefox" -f "i2pwinupdate.su3.torrent" -l "$ZIPCHECKSUM" -t "i2p-firefox-$I2P_VERSION" -n "i2pwinupdate.su3.torrent"
|
||||
github-release upload -u "$GITHUB_USERNAME" -r "i2p.firefox" -f "i2pwinupdate.su3.torrent" -l "$ZIPCHECKSUM" -t "i2p-firefox-$I2P_VERSION" -n "i2pwinupdate.su3.torrent"
|
@ -18,9 +18,9 @@ fi
|
||||
echo "!define VERSIONMAJOR $VERSIONMAJOR" > "$SCRIPT_DIR"/src/nsis/i2pbrowser-version.nsi
|
||||
echo "!define VERSIONMINOR $VERSIONMINOR" >> "$SCRIPT_DIR"/src/nsis/i2pbrowser-version.nsi
|
||||
echo "!define VERSIONBUILD $VERSIONBUILD" >> "$SCRIPT_DIR"/src/nsis/i2pbrowser-version.nsi
|
||||
echo "!define I2P_VERSION $PROFILE_VERSION" > "$SCRIPT_DIR"/src/nsis/i2pbrowser-jpackage.nsi
|
||||
echo "!define I2P_VERSION $I2P_VERSION" > "$SCRIPT_DIR"/src/nsis/i2pbrowser-jpackage.nsi
|
||||
|
||||
mkdir -p "$SCRIPT_DIR"/build
|
||||
echo "$PROFILE_VERSION" > "$SCRIPT_DIR"/build/version.txt
|
||||
echo "$PROFILE_VERSION" > "$SCRIPT_DIR"/build/version.txt
|
||||
echo "$I2P_VERSION" > "$SCRIPT_DIR"/build/version.txt
|
||||
echo "$I2P_VERSION" > "$SCRIPT_DIR"/build/version.txt
|
||||
sed 's|!define VERSION||g' "$SCRIPT_DIR"/src/nsis/i2pbrowser-version.nsi | sed 's| |=|g' > .version
|
||||
|
5
buildscripts/wine-jpackage.sh
Normal file
5
buildscripts/wine-jpackage.sh
Normal file
@ -0,0 +1,5 @@
|
||||
#! /usr/bin/env sh
|
||||
|
||||
SCRIPT_DIR=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd -P)/..
|
||||
cd "$SCRIPT_DIR" || exit 1
|
||||
|
@ -16,7 +16,8 @@ TORSOCKS=$(which torsocks)
|
||||
if [ -f "${TORSOCKS}" ]; then
|
||||
. "${TORSOCKS}" on
|
||||
fi
|
||||
#"$SCRIPT_DIR"/src/win/torbrowser-windows.sh
|
||||
which wsl && wsl ../src/win/torbrowser-windows.sh
|
||||
which wsl || "$SCRIPT_DIR"/src/win/torbrowser-windows.sh
|
||||
version="$(curl -s https://aus1.torproject.org/torbrowser/update_3/release/downloads.json | jq -r ".version")"
|
||||
. "${TORSOCKS}" off
|
||||
locale="en-US" # mention your locale. default = en-US
|
||||
|
@ -1,3 +1,7 @@
|
||||
2025-06-05 idk
|
||||
* Remove Chromium support completely. Much smaller binary now.
|
||||
* Version 2.9.0
|
||||
|
||||
2023-01-23 idk
|
||||
* Move build scripts to their own directory and make them use correct paths when moved
|
||||
* Add EXTRA to router when generating embedded router jars.
|
||||
@ -147,3 +151,24 @@
|
||||
* start a changelog
|
||||
* add version to the profile, independent of installer version
|
||||
- version 0.1 corresponds to IDK version 0.03b
|
||||
|
||||
## Checksums
|
||||
|
||||
```
|
||||
621301bd5f0e0ef1879ed16f8a40d5da9444525755736411fe1e326192f90cb2 I2P-EXE-2.4.992.exe
|
||||
decbdef9ef24f6b614027afb006dc7ee4b4817f48a25dbd6af440a6f2be5ecb3 I2P-Easy-Install-Bundle-2.4.992.exe
|
||||
bf6f5d162885798072cd61c098bbe871571ac116aaed411b330bab247064e399 I2P-MSI-2.4.992.msi
|
||||
0b9c68a6d97727140e56bc80c0096db9340ce12d5bdb7cc3252713a7bb0d33ca I2P-windows-portable.zip
|
||||
18d68eeb61762f0b8cef3505802b5d4a2fa1327fa0fd8f2f41775328361be60b I2P.tar.gz
|
||||
669d353ea064a6a660ef94e8d70728f011e81f98b0fbf298b4d124bbcec7ba83 changelog.txt
|
||||
```
|
||||
|
||||
```
|
||||
I2P-EXE-2.4.992.exe: PE32+ executable (GUI) x86-64, for MS Windows
|
||||
I2P-Easy-Install-Bundle-2.4.992.exe: PE32 executable (GUI) Intel 80386, for MS Windows, Nullsoft Installer self-extracting archive
|
||||
I2P-MSI-2.4.992.msi: Composite Document File V2 Document, Little Endian, Os: Windows, Version 6.2, MSI Installer, Code page: 1252, Title: Installation Database, Subject: I2P-MSI, Author: Unknown, Keywords: Installer, Comments: This installer database contains the logic and data required to install I2P-MSI., Template: x64;1033, Revision Number: {F44ACC17-351A-4424-A4F5-7F9E52BBE96E}, Create Time/Date: Wed Mar 20 02:46:40 2024, Last Saved Time/Date: Wed Mar 20 02:46:40 2024, Number of Pages: 200, Number of Words: 10, Name of Creating Application: Windows Installer XML Toolset (3.14.0.8606), Security: 2
|
||||
I2P-windows-portable.zip: Zip archive data, at least v2.0 to extract, compression method=deflate
|
||||
I2P.tar.gz: gzip compressed data, from Unix, original size modulo 2^32 766935040
|
||||
changelog.txt: ASCII text
|
||||
```
|
||||
|
||||
|
24
darklight.css
Normal file
24
darklight.css
Normal file
@ -0,0 +1,24 @@
|
||||
/* edgar darklight CSS file */
|
||||
#checkboxDarkLight:checked + .container {
|
||||
background-color: #202020;
|
||||
filter: invert(100%);
|
||||
}
|
||||
#checkboxDarkLight{
|
||||
appearance: none;
|
||||
width: 80px;
|
||||
height: 40px;
|
||||
background: black;
|
||||
border-radius: 22px;
|
||||
cursor: pointer;
|
||||
outline: none;
|
||||
}
|
||||
#checkboxDarkLight::before{
|
||||
content: '';
|
||||
width: 40px;
|
||||
height: 35px;
|
||||
background-color:white;
|
||||
border-radius: 35px;
|
||||
cursor: pointer;
|
||||
transition: .3s linear;
|
||||
}
|
||||
|
553
docs/GOALS.html
Normal file
553
docs/GOALS.html
Normal file
@ -0,0 +1,553 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>
|
||||
I2P Easy-Install...
|
||||
</title>
|
||||
<meta name="author" content="eyedeekay" />
|
||||
<meta name="description" content="i2p.firefox" />
|
||||
<meta name="keywords" content="master" />
|
||||
<link rel="stylesheet" type="text/css" href="style.css" />
|
||||
<link rel="stylesheet" type="text/css" href="showhider.css" />
|
||||
<link rel="stylesheet" type="text/css" href="darklight.css" />
|
||||
</head>
|
||||
<body>
|
||||
<input type="checkbox" id="checkboxDarkLight">
|
||||
<div class="container">
|
||||
<div id="navbar">
|
||||
<a href="#shownav">
|
||||
Show navigation
|
||||
</a>
|
||||
<div id="shownav">
|
||||
<div id="hidenav">
|
||||
<ul>
|
||||
<li>
|
||||
<a href="..">
|
||||
Up one level ^
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="index.html">
|
||||
index
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="LICENSE.html">
|
||||
LICENSE
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="index.html">
|
||||
index.html
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="GOALS.html">
|
||||
GOALS
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="PRINCIPLES.html">
|
||||
PRINCIPLES
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="RELEASE.html">
|
||||
RELEASE
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="UPDATES.html">
|
||||
UPDATES
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
<br>
|
||||
<a href="#hidenav">
|
||||
Hide Navigation
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<a id="returnhome" href="/">
|
||||
/
|
||||
</a>
|
||||
<h1>
|
||||
Feature Goals
|
||||
</h1>
|
||||
<p>
|
||||
For information about the “Goals guiding the Goals” see:
|
||||
<code>
|
||||
[PRINCIPLES]
|
||||
</code>
|
||||
.
|
||||
</p>
|
||||
<p>
|
||||
While Windows is the primary platform, some goals may represent cross-platform
|
||||
utility as well. Since a portable jpackage really only needs slightly different
|
||||
arguments on different platforms, cross-platform support is often low-cost.
|
||||
</p>
|
||||
<ul>
|
||||
<li>
|
||||
<strong>
|
||||
See Also:
|
||||
</strong>
|
||||
</li>
|
||||
<li>
|
||||
<em>
|
||||
Browser Integrations are provided by browser extensions which are contained in their own repositories.
|
||||
</em>
|
||||
</li>
|
||||
<li>
|
||||
Firefox:
|
||||
</li>
|
||||
<li>
|
||||
<a href="http://git.idk.i2p/idk/I2P-in-Private-Browsing-Mode-Firefox/">
|
||||
git.idk.i2p/idk/I2P-in-Private-Browsing-Mode-Firefox
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="https://i2pgit.org/idk/I2P-in-Private-Browsing-Mode-Firefox/">
|
||||
i2pgit.org/idk/I2P-in-Private-Browsing-Mode-Firefox
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="https://github.com/eyedeekay/I2P-in-Private-Browsing-Mode-Firefox/">
|
||||
github.com/eyedeekay/I2P-in-Private-Browsing-Mode-Firefox
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
Chromium:
|
||||
</li>
|
||||
<li>
|
||||
<a href="http://git.idk.i2p/idk/I2P-Configuration-For-Chromium/">
|
||||
git.idk.i2p/idk/I2P-Configuration-For-Chromium
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="https://i2pgit.org/idk/I2P-Configuration-For-Chromium/">
|
||||
i2pgit.org/idk/I2P-Configuration-For-Chromium
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="https://github.com/eyedeekay/I2P-Configuration-For-Chromium/">
|
||||
github.com/eyedeekay/I2P-Configuration-For-Chromium
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<em>
|
||||
Browser profile management are provided by a freestanding, cross-platform library which is contained in its own repository.
|
||||
</em>
|
||||
</li>
|
||||
<li>
|
||||
<a href="http://git.idk.i2p/idk/i2p.plugins.firefox">
|
||||
git.idk.i2p/idk/i2p.plugins.firefox
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="https://i2pgit.org/idk/i2p.plugins.firefox">
|
||||
i2pgit.org/idk/i2p.plugins.firefox
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="https://github.com/eyedeekay/i2p.plugins.firefox">
|
||||
github.com/eyedeekay/i2p.plugins.firefox
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
<h2>
|
||||
Build Methods
|
||||
</h2>
|
||||
<ul>
|
||||
<li>
|
||||
<code>
|
||||
[X]
|
||||
</code>
|
||||
Cleanly separate jpackage generation phase from NSIS generation phase
|
||||
</li>
|
||||
<li>
|
||||
<code>
|
||||
[X]
|
||||
</code>
|
||||
Enable archive builds for generating Windows
|
||||
<code>
|
||||
.exe
|
||||
</code>
|
||||
’s from Linux hosts
|
||||
</li>
|
||||
</ul>
|
||||
<h2>
|
||||
Installation Methods
|
||||
</h2>
|
||||
<ul>
|
||||
<li>
|
||||
<code>
|
||||
[X]
|
||||
</code>
|
||||
NSIS installer
|
||||
</li>
|
||||
<li>
|
||||
<code>
|
||||
[X]
|
||||
</code>
|
||||
Portable, directory-based install
|
||||
</li>
|
||||
<li>
|
||||
<code>
|
||||
[ ]
|
||||
</code>
|
||||
Windows Service Support
|
||||
</li>
|
||||
</ul>
|
||||
<h2>
|
||||
Update Methods
|
||||
</h2>
|
||||
<ul>
|
||||
<li>
|
||||
<code>
|
||||
[X]
|
||||
</code>
|
||||
NSIS installer in Default Directory
|
||||
</li>
|
||||
<li>
|
||||
<code>
|
||||
[X]
|
||||
</code>
|
||||
NSIS installer in Portable Directory
|
||||
</li>
|
||||
<li>
|
||||
<code>
|
||||
[X]
|
||||
</code>
|
||||
Handle admin and non-admin updates automatically
|
||||
</li>
|
||||
<li>
|
||||
<code>
|
||||
[ ]
|
||||
</code>
|
||||
Zip-Only portable updater
|
||||
</li>
|
||||
</ul>
|
||||
<h2>
|
||||
Launcher
|
||||
</h2>
|
||||
<ul>
|
||||
<li>
|
||||
<code>
|
||||
[X]
|
||||
</code>
|
||||
Detect and handle un-bundled routers on the host system, policy of non-interference
|
||||
</li>
|
||||
<li>
|
||||
<code>
|
||||
[X]
|
||||
</code>
|
||||
Wait for router console to be ready to launch router-console browser
|
||||
</li>
|
||||
<li>
|
||||
<code>
|
||||
[X]
|
||||
</code>
|
||||
Wait for proxy to be ready to launch I2P Web Browser
|
||||
</li>
|
||||
<li>
|
||||
<code>
|
||||
[X]
|
||||
</code>
|
||||
Launch browser instead of router when a repeat-launch is detected
|
||||
</li>
|
||||
<li>
|
||||
<code>
|
||||
[X]
|
||||
</code>
|
||||
GUI component for launching each available component
|
||||
</li>
|
||||
<li>
|
||||
<code>
|
||||
[X]
|
||||
</code>
|
||||
Introduce
|
||||
<code>
|
||||
browser.properties
|
||||
</code>
|
||||
for customization
|
||||
</li>
|
||||
<li>
|
||||
<code>
|
||||
[ ]
|
||||
</code>
|
||||
Registry-based browser discovery
|
||||
<a href="http://git.idk.i2p/idk/i2p.plugins.firefox/-/issues/3">
|
||||
Firefox
|
||||
</a>
|
||||
<a href="http://git.idk.i2p/idk/i2p.plugins.firefox/-/issues/4">
|
||||
Chromium
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
<h2>
|
||||
Browser Configuration All
|
||||
</h2>
|
||||
<ul>
|
||||
<li>
|
||||
<code>
|
||||
[X]
|
||||
</code>
|
||||
Use identical extensions in Firefox-based and Chromium-based browsers wherever possible
|
||||
</li>
|
||||
<li>
|
||||
<code>
|
||||
[X]
|
||||
</code>
|
||||
Always use a dedicated, I2P Easy-Install specific profile directory
|
||||
</li>
|
||||
<li>
|
||||
<code>
|
||||
[X]
|
||||
</code>
|
||||
Always configure an HTTP Proxy, and safe access to the router console
|
||||
</li>
|
||||
<li>
|
||||
<code>
|
||||
[X]
|
||||
</code>
|
||||
Provide I2P-Specific integrations to the browser UI through WebExtensions
|
||||
</li>
|
||||
<li>
|
||||
<code>
|
||||
[X]
|
||||
</code>
|
||||
Operate in “Strict” mode where the maximum level of defenses are up
|
||||
</li>
|
||||
<li>
|
||||
<code>
|
||||
[X]
|
||||
</code>
|
||||
Operate in “Usability” mode where defense is balanced with utility
|
||||
</li>
|
||||
<li>
|
||||
<code>
|
||||
[X]
|
||||
</code>
|
||||
Operate in “App” mode where we work as a single-purpose window where it is hard to access arbitrary, potentially malicious resources
|
||||
</li>
|
||||
<li>
|
||||
<code>
|
||||
[X]
|
||||
</code>
|
||||
All I2P-Specific profiles should be possible to generate automatically, sight-unseen
|
||||
</li>
|
||||
</ul>
|
||||
<h2>
|
||||
Browser Configuration Firefox
|
||||
</h2>
|
||||
<ul>
|
||||
<li>
|
||||
<code>
|
||||
[X]
|
||||
</code>
|
||||
When using Firefox, download extension updates automatically, from AMO, using an outproxy
|
||||
</li>
|
||||
<li>
|
||||
<code>
|
||||
[X]
|
||||
</code>
|
||||
Integrate I2P in Private Browsing for to provide UI for I2P within Firefox
|
||||
</li>
|
||||
<li>
|
||||
<code>
|
||||
[X]
|
||||
</code>
|
||||
Prevent WebRTC proxy escapes by setting mode
|
||||
<code>
|
||||
4
|
||||
</code>
|
||||
<code>
|
||||
disable_non_proxied_udp
|
||||
</code>
|
||||
or higher
|
||||
</li>
|
||||
<li>
|
||||
<code>
|
||||
[X]
|
||||
</code>
|
||||
Customize panel for Firefox
|
||||
<code>
|
||||
App
|
||||
</code>
|
||||
mode(Not required for Chromiums)
|
||||
</li>
|
||||
</ul>
|
||||
<h2>
|
||||
Browser Configuration Chromium
|
||||
</h2>
|
||||
<ul>
|
||||
<li>
|
||||
<code>
|
||||
[X]
|
||||
</code>
|
||||
When using Chromium, load extensions from source and freeze them without updates to prevent unproxied updating.
|
||||
</li>
|
||||
<li>
|
||||
<code>
|
||||
[X]
|
||||
</code>
|
||||
Integrate
|
||||
<code>
|
||||
I2PChrome.js
|
||||
</code>
|
||||
to provide UI for I2P within Chrome
|
||||
</li>
|
||||
<li>
|
||||
<code>
|
||||
[X]
|
||||
</code>
|
||||
Prevent WebRTC proxy escapes by setting mode
|
||||
<code>
|
||||
4
|
||||
</code>
|
||||
<code>
|
||||
disable_non_proxied_udp
|
||||
</code>
|
||||
</li>
|
||||
</ul>
|
||||
<h2>
|
||||
Browser Configuration Strict Mode
|
||||
</h2>
|
||||
<ul>
|
||||
<li>
|
||||
<code>
|
||||
[X]
|
||||
</code>
|
||||
Disable Javascript by default with NoScript
|
||||
</li>
|
||||
<li>
|
||||
<code>
|
||||
[X]
|
||||
</code>
|
||||
Enforce HTTPS where available with HTTPS Everywhere
|
||||
<strong>
|
||||
OR
|
||||
</strong>
|
||||
HTTPS only Mode
|
||||
</li>
|
||||
<li>
|
||||
<code>
|
||||
[ ]
|
||||
</code>
|
||||
Proactively enumerate and disable “Fine” fingerprinting vectors where possible(ongoing)
|
||||
</li>
|
||||
<li>
|
||||
<code>
|
||||
[ ]
|
||||
</code>
|
||||
When running in Tor Browser, look as much like Tor Browser as possible but use an outproxy(ongoing)
|
||||
</li>
|
||||
</ul>
|
||||
<h2>
|
||||
Browser Configuration Usability Mode
|
||||
</h2>
|
||||
<ul>
|
||||
<li>
|
||||
<code>
|
||||
[X]
|
||||
</code>
|
||||
Enable Javascript by default but limit it with jShelter
|
||||
</li>
|
||||
<li>
|
||||
<code>
|
||||
[X]
|
||||
</code>
|
||||
Enforce HTTPS where available with HTTPS Everywhere
|
||||
<strong>
|
||||
OR
|
||||
</strong>
|
||||
HTTPS only Mode
|
||||
</li>
|
||||
<li>
|
||||
<code>
|
||||
[X]
|
||||
</code>
|
||||
Limit attempts to fetch useless junk like advertising with an up-to-date uBlock Origin
|
||||
</li>
|
||||
<li>
|
||||
<code>
|
||||
[X]
|
||||
</code>
|
||||
Limit attempts to reach clearnet CDN’s with LocalCDN
|
||||
</li>
|
||||
<li>
|
||||
<code>
|
||||
[X]
|
||||
</code>
|
||||
Isolate
|
||||
<code>
|
||||
.onion
|
||||
</code>
|
||||
traffic from
|
||||
<code>
|
||||
outproxy
|
||||
</code>
|
||||
traffic and
|
||||
<code>
|
||||
.i2p
|
||||
</code>
|
||||
traffic using Onion in Container Tabs
|
||||
</li>
|
||||
</ul>
|
||||
<div id="sourcecode">
|
||||
<span id="sourcehead">
|
||||
<strong>
|
||||
Get the source code:
|
||||
</strong>
|
||||
</span>
|
||||
<ul>
|
||||
<li>
|
||||
<a href="https://github.com/eyedeekay/i2p.firefox">
|
||||
Source Repository: (https://github.com/eyedeekay/i2p.firefox)
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div>
|
||||
<a href="#show">
|
||||
Show license
|
||||
</a>
|
||||
<div id="show">
|
||||
<div id="hide">
|
||||
<pre><code>Copyright 2018
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
||||
this software and associated documentation files (the "Software"), to deal in
|
||||
the Software without restriction, including without limitation the rights to
|
||||
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
||||
the Software, and to permit persons to whom the Software is furnished to do so,
|
||||
subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
||||
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
||||
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
||||
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
</code></pre>
|
||||
<a href="#hide">
|
||||
Hide license
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<iframe src="https://snowflake.torproject.org/embed.html" width="320" height="240" frameborder="0" scrolling="no"></iframe>
|
||||
</div>
|
||||
<div>
|
||||
<a href="https://geti2p.net/">
|
||||
<img class="i2plogo" src="i2plogo.png"></img>
|
||||
I2P
|
||||
</a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
377
docs/PRINCIPLES.html
Normal file
377
docs/PRINCIPLES.html
Normal file
@ -0,0 +1,377 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>
|
||||
I2P Easy-Install...
|
||||
</title>
|
||||
<meta name="author" content="eyedeekay" />
|
||||
<meta name="description" content="i2p.firefox" />
|
||||
<meta name="keywords" content="master" />
|
||||
<link rel="stylesheet" type="text/css" href="style.css" />
|
||||
<link rel="stylesheet" type="text/css" href="showhider.css" />
|
||||
<link rel="stylesheet" type="text/css" href="darklight.css" />
|
||||
</head>
|
||||
<body>
|
||||
<input type="checkbox" id="checkboxDarkLight">
|
||||
<div class="container">
|
||||
<div id="navbar">
|
||||
<a href="#shownav">
|
||||
Show navigation
|
||||
</a>
|
||||
<div id="shownav">
|
||||
<div id="hidenav">
|
||||
<ul>
|
||||
<li>
|
||||
<a href="..">
|
||||
Up one level ^
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="index.html">
|
||||
index
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="LICENSE.html">
|
||||
LICENSE
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="index.html">
|
||||
index.html
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="GOALS.html">
|
||||
GOALS
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="PRINCIPLES.html">
|
||||
PRINCIPLES
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="RELEASE.html">
|
||||
RELEASE
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="UPDATES.html">
|
||||
UPDATES
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
<br>
|
||||
<a href="#hidenav">
|
||||
Hide Navigation
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<a id="returnhome" href="/">
|
||||
/
|
||||
</a>
|
||||
<h1>
|
||||
Guidance
|
||||
</h1>
|
||||
<p>
|
||||
This document explains the ideas which are guiding the development of
|
||||
features specific to the I2P Easy-Install bundle.
|
||||
</p>
|
||||
<p>
|
||||
The general idea is that it is possible, on most platforms, to make I2P
|
||||
post-install configuration much simpler and much less error-prone. Each
|
||||
section of this document has guidance for a different “Meta-Feature” of
|
||||
the I2P Easy-Install Bundle. For granular, specific information about
|
||||
goals both achieved and un-achieved see
|
||||
<code>
|
||||
[GOALS]
|
||||
</code>
|
||||
.
|
||||
</p>
|
||||
<ul>
|
||||
<li>
|
||||
<strong>
|
||||
Sections:
|
||||
</strong>
|
||||
</li>
|
||||
</ul>
|
||||
<ol>
|
||||
<li>
|
||||
Guidance for Browser Profile Configuration
|
||||
</li>
|
||||
</ol>
|
||||
<h2>
|
||||
Guidance for Browser Profile Configuration
|
||||
</h2>
|
||||
<ul>
|
||||
<li>
|
||||
<strong>
|
||||
See also:
|
||||
</strong>
|
||||
</li>
|
||||
<li>
|
||||
<a href="http://git.idk.i2p/idk/i2p.plugins.firefox">
|
||||
git.idk.i2p/idk/i2p.plugins.firefox
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="https://i2pgit.org/idk/i2p.plugins.firefox">
|
||||
i2pgit.org/idk/i2p.plugins.firefox
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="https://github.com/eyedeekay/i2p.plugins.firefox">
|
||||
github.com/eyedeekay/i2p.plugins.firefox
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
<p>
|
||||
The I2P Easy-Install Bundle for Windows considers basic configuration tasks
|
||||
“Features” when they can be automated. The quintessential example of this
|
||||
is
|
||||
<strong>
|
||||
<code>
|
||||
Browser Profile Configuration
|
||||
</code>
|
||||
</strong>
|
||||
where it injects settings into a
|
||||
pre-existing browser from the host system. Solving this problem pre-dates
|
||||
the evolution of
|
||||
<code>
|
||||
i2p.firefox
|
||||
</code>
|
||||
into a fully-fledged I2P router distribution
|
||||
and has been the defining goal of this project for its entire existence.
|
||||
</p>
|
||||
<p>
|
||||
However, what good browser profile configuration is, is as complicated as
|
||||
how to deploy it. I2P has a unique opportunity to decide how it will handle
|
||||
problems related to browsing in its own context while the network grows
|
||||
and synthesize a useful number of safe browser configurations while also
|
||||
reducing existing browser config fragmentation.
|
||||
</p>
|
||||
<p>
|
||||
Easy-Install attempts to limit the number of “Coarse Fingerprints” which it will
|
||||
produce by default to a predictable number. A Coarse Fingerprint is basically
|
||||
a fingerprint “That we know we’re making” by offering the ability to configure
|
||||
something differently.
|
||||
</p>
|
||||
<ul>
|
||||
<li>
|
||||
<strong>
|
||||
That means:
|
||||
</strong>
|
||||
</li>
|
||||
</ul>
|
||||
<ol>
|
||||
<li>
|
||||
It considers the browser integral to the interactive use of the I2P network by a large fraction of users.
|
||||
</li>
|
||||
<li>
|
||||
It considers effective browser configuration
|
||||
<strong>
|
||||
impossible for a single user to achieve
|
||||
</strong>
|
||||
because effective browser configuration must have the characteristic of being reflected en-masse(anti-fingerprinting measures are only remotely effective when widely used).
|
||||
</li>
|
||||
<li>
|
||||
The browser profile it injects inherits the runtime security characteristics of the
|
||||
<strong>
|
||||
host browser
|
||||
</strong>
|
||||
.
|
||||
</li>
|
||||
<li>
|
||||
The browser profile it injects obtains runtime privacy characteristics of the
|
||||
<strong>
|
||||
easy-install bundle
|
||||
</strong>
|
||||
</li>
|
||||
<li>
|
||||
The number of coarse browser fingerprint sets is reduced from indeterminately large to
|
||||
<code>
|
||||
[supported browsers]*[variant configurations]
|
||||
</code>
|
||||
</li>
|
||||
<li>
|
||||
It attempts to balance flexibility with privacy, and accommodate people’s preferences where possible.
|
||||
</li>
|
||||
<li>
|
||||
It considers browser vendors better at providing browser updates than the I2P Project
|
||||
</li>
|
||||
</ol>
|
||||
<h2>
|
||||
Browser Configurations and Coarse Fingerprints
|
||||
</h2>
|
||||
<p>
|
||||
At this time it offers configuration for Tor Browser, Firefox, Waterfox, and
|
||||
LibreWolf for Firefox-based browsers, and Ungoogled-Chromium, Chromium, Brave,
|
||||
Chrome, and Edgium configuration for Chromium-based browsers. That is a total
|
||||
of
|
||||
<strong>
|
||||
Nine(9)
|
||||
</strong>
|
||||
main browsers. There are
|
||||
<strong>
|
||||
Two(2)
|
||||
</strong>
|
||||
variant configurations,
|
||||
which correspond to “Strict” and “Usability” Modes. That makes a total of
|
||||
<strong>
|
||||
Eighteen(18)
|
||||
</strong>
|
||||
coarse browser fingerprints produced by this bundle. It also
|
||||
has the ability to launch in a “Restricted to Apps” mode where it is only
|
||||
possible to visit I2P sites using links on the I2P application interface(router
|
||||
console, hidden services manager) itself.
|
||||
</p>
|
||||
<h3>
|
||||
Strict Mode
|
||||
</h3>
|
||||
<p>
|
||||
This is not on its face as good as having an almost entirely unified browser
|
||||
fingerprint like Tor Browser attempts to have. It is a simple fact that 18
|
||||
is greater than one. Every active attempt to gain granularity from a browser
|
||||
outside of off-the-shelf Fingerprinting techniques is classified as “Fine”
|
||||
fingerprinting. It is unpredictable, and harder to defend against, more likely
|
||||
to exhibit novelty, and more likely to be affected by the host browser’s
|
||||
security. When fingerprinters get this creative disabling Javascript by default
|
||||
is the most complete defense. This is the primary characteristic of Strict Mode,
|
||||
it disables Javascript by default with NoScript.
|
||||
<strong>
|
||||
Strict Mode is the only
|
||||
</strong>
|
||||
<strong>
|
||||
partial defense against fine-fingerprinting offered by this product.
|
||||
</strong>
|
||||
Even
|
||||
disabling Javascript does not close all fine fingerprinting vectors, but it
|
||||
does close most of them and reduce attack surface significantly. It is recommended
|
||||
in combination with Tor Browser, and attempts to be somewhat closer to Tor Browser
|
||||
than Usability Mode. It is the default mode of operation.
|
||||
</p>
|
||||
<h3>
|
||||
Usability Mode
|
||||
</h3>
|
||||
<p>
|
||||
In contrast to Strict Mode, Usability mode offers the greatest agreeable number
|
||||
of browser features enabled by default, including a restricted subset of Javascript.
|
||||
It makes no attempt at all to look like Tor Browser, even when using Tor Browser
|
||||
as a host browser. It does attempt to optimize the browser for use within I2P, including
|
||||
specific optimizations to keep traffic in-network or even retrieve information which is
|
||||
stored on the localhost(while avoiding cache timing attacks). It does this by deploying
|
||||
an alternative loadout of extensions, including ones which block advertising by default
|
||||
and which include a cache of CDN resources in local browser storage.
|
||||
</p>
|
||||
<h3>
|
||||
Firefox-Based Browsers
|
||||
</h3>
|
||||
<p>
|
||||
Because of the relatively high configurability of Firefox-based browser
|
||||
telemetry, Firefox-based browsers are preferred over Chromium-based browsers.
|
||||
Chromium-based browsers will be used by default
|
||||
<strong>
|
||||
only
|
||||
</strong>
|
||||
if a Firefox based
|
||||
browser is unavailable. Only Firefox-variant releases of the Extended Support
|
||||
Release or of the latest stable release are supportable. If a variant lags
|
||||
behind Firefox releases, it will be dropped. The primary reason for the default
|
||||
“Ordering” of Firefox Profile Selection is the speed at which updates can be
|
||||
expected to be applied.
|
||||
</p>
|
||||
<h3>
|
||||
Chromium-Based Browsers
|
||||
</h3>
|
||||
<p>
|
||||
Chromium-based browser selection is more subjective and slightly more ad-hoc.
|
||||
Chromium browsers are chosen based on the variant’s stated goals and perceived
|
||||
efficacy in pursuing those goals. For example, if a Chromium distribution is
|
||||
focused on removing telemetry or providing anti-fingerprinting, it is chosen
|
||||
before a Chromium that is provided by Google or integrated tightly with the
|
||||
host OS. This is a matter of judgement on my part and if you disagree you should
|
||||
open an issue and argue with me. I’m not infallible, I’ll listen.
|
||||
</p>
|
||||
<h3>
|
||||
All other browsers
|
||||
</h3>
|
||||
<p>
|
||||
With all other browsers attempts at anti-fingerprinting are a moot point. It offers
|
||||
limited configuration options using widely-supported generic browser configuration
|
||||
means. If it doesn’t recognize a Firefox or Chromium browser on the host, then it
|
||||
sets the common proxy environment variables
|
||||
<code>
|
||||
http_proxy
|
||||
</code>
|
||||
<code>
|
||||
https_proxy
|
||||
</code>
|
||||
<code>
|
||||
ALL_PROXY
|
||||
</code>
|
||||
and
|
||||
<code>
|
||||
NO_PROXY
|
||||
</code>
|
||||
to their appropriate values before launching the browser configuration
|
||||
and attempts to set a directory for the runtime configuration(Profile) by changing
|
||||
to the profile directory.
|
||||
</p>
|
||||
<div id="sourcecode">
|
||||
<span id="sourcehead">
|
||||
<strong>
|
||||
Get the source code:
|
||||
</strong>
|
||||
</span>
|
||||
<ul>
|
||||
<li>
|
||||
<a href="https://github.com/eyedeekay/i2p.firefox">
|
||||
Source Repository: (https://github.com/eyedeekay/i2p.firefox)
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div>
|
||||
<a href="#show">
|
||||
Show license
|
||||
</a>
|
||||
<div id="show">
|
||||
<div id="hide">
|
||||
<pre><code>Copyright 2018
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
||||
this software and associated documentation files (the "Software"), to deal in
|
||||
the Software without restriction, including without limitation the rights to
|
||||
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
||||
the Software, and to permit persons to whom the Software is furnished to do so,
|
||||
subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
||||
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
||||
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
||||
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
</code></pre>
|
||||
<a href="#hide">
|
||||
Hide license
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<iframe src="https://snowflake.torproject.org/embed.html" width="320" height="240" frameborder="0" scrolling="no"></iframe>
|
||||
</div>
|
||||
<div>
|
||||
<a href="https://geti2p.net/">
|
||||
<img class="i2plogo" src="i2plogo.png"></img>
|
||||
I2P
|
||||
</a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
221
docs/RELEASE.html
Normal file
221
docs/RELEASE.html
Normal file
@ -0,0 +1,221 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>
|
||||
I2P Easy-Install...
|
||||
</title>
|
||||
<meta name="author" content="eyedeekay" />
|
||||
<meta name="description" content="i2p.firefox" />
|
||||
<meta name="keywords" content="master" />
|
||||
<link rel="stylesheet" type="text/css" href="style.css" />
|
||||
<link rel="stylesheet" type="text/css" href="showhider.css" />
|
||||
<link rel="stylesheet" type="text/css" href="darklight.css" />
|
||||
</head>
|
||||
<body>
|
||||
<input type="checkbox" id="checkboxDarkLight">
|
||||
<div class="container">
|
||||
<div id="navbar">
|
||||
<a href="#shownav">
|
||||
Show navigation
|
||||
</a>
|
||||
<div id="shownav">
|
||||
<div id="hidenav">
|
||||
<ul>
|
||||
<li>
|
||||
<a href="..">
|
||||
Up one level ^
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="index.html">
|
||||
index
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="LICENSE.html">
|
||||
LICENSE
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="index.html">
|
||||
index.html
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="GOALS.html">
|
||||
GOALS
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="PRINCIPLES.html">
|
||||
PRINCIPLES
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="RELEASE.html">
|
||||
RELEASE
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="UPDATES.html">
|
||||
UPDATES
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
<br>
|
||||
<a href="#hidenav">
|
||||
Hide Navigation
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<a id="returnhome" href="/">
|
||||
/
|
||||
</a>
|
||||
<h1>
|
||||
I2P Easy-Install Bundle for Windows 2.4.9
|
||||
</h1>
|
||||
<p>
|
||||
This is a pre-release of the I2P Easy-Install Bundle for Windows.
|
||||
This changes how the I2P bundle and browser profile manager are installed and integrated with the host system.
|
||||
The Easy-Install bundle is now a “portable” system that can be moved to different locations within or between Windows file-systems while retaining all built-in functionality.
|
||||
A shortcut for starting the I2P router is still provided by the installer for convenience, but the shortcuts for starting the I2P Browser are now integrated with the I2P desktop UI.
|
||||
</p>
|
||||
<p>
|
||||
The browser profile manager itself has been split away from the monolithic I2P router+Java/jpackage, and moved into an I2P plugin managed by the router.
|
||||
While this was done primarily to reduce how complex the existing code was, this also results in behavior which is closer to the main distribution of I2P for Windows and will lead to a more flexible installer, which can bundle additional default plugins and may be suitable for installation as a Windows service.
|
||||
I2P Plugins can also be updated independently of the router that hosts them, so it will be possible to update the browser profile manager independently of the router itself.
|
||||
It also means that the browser profile manager can be un-installed by uninstalling the plugin, and much more importantly that the browser profile manager is now compatible with all Java I2P distributions.
|
||||
</p>
|
||||
<p>
|
||||
<strong>
|
||||
Why a dev build 3 weeks before the release?
|
||||
</strong>
|
||||
</p>
|
||||
<p>
|
||||
By further delineating the components of the bundle, these changes also affected how the release process happens.
|
||||
In particular the build process of each component has been encapsulated in a CI description which can be reproduced on a local PC.
|
||||
This simplifies and automates the build process by ensuring that up-to-date build tools are installed in a brand-new container for every build.
|
||||
In effect this should speed up the release process for I2P Easy-Install for Windows considerably.
|
||||
This release is a test-run of the new process, so I can document what is going on.
|
||||
It breaks down roughly like this:
|
||||
</p>
|
||||
<ul>
|
||||
<li>
|
||||
It takes ~22 minutes to compile all the targets for the
|
||||
<code>
|
||||
i2p.plugins.firefox
|
||||
</code>
|
||||
and make the resulting artifacts available. During this process, I must insert 1 HSM and enter 1 password. (This part used to be about 30 steps, now it takes 1)
|
||||
</li>
|
||||
<li>
|
||||
It takes ~22 minutes to compile all the targets for the
|
||||
<code>
|
||||
i2p.firefox
|
||||
</code>
|
||||
project and make the resulting artifacts available. This process produces only unsigned artifacts identified by their hashes, and is non-interactive. (This part used to be around 60 steps the first time, and 40 steps each additional time)
|
||||
</li>
|
||||
<li>
|
||||
<code>
|
||||
i2p.firefox
|
||||
</code>
|
||||
updates are signed in their
|
||||
<code>
|
||||
.su3
|
||||
</code>
|
||||
form. The
|
||||
<code>
|
||||
NSIS
|
||||
</code>
|
||||
-powered
|
||||
<code>
|
||||
.exe
|
||||
</code>
|
||||
installer is the current updater. The next step is to sign
|
||||
<em>
|
||||
just this installer
|
||||
</em>
|
||||
and generate a torrent of the result. (This process used to depend on the previous build process and couldn’t be done independently. Now it takes about 30 seconds)
|
||||
</li>
|
||||
<li>
|
||||
Generate and sign a newsfeed to notify the users of an update. This process is the only process that is
|
||||
<strong>
|
||||
slower
|
||||
</strong>
|
||||
when containerized, because there are dozens of feeds to be signed in their respective containers. It takes about an hour.
|
||||
</li>
|
||||
</ul>
|
||||
<p>
|
||||
For you the end user, nothing much should change.
|
||||
You’ll get your updates a lot faster, and have more options available for testing.
|
||||
The same installer is used for the updater, and the process is handled the same way.
|
||||
However for developers, testers, and maintainers, this release will result in big changes for the better.
|
||||
</p>
|
||||
<p>
|
||||
This release still embeds a
|
||||
<code>
|
||||
2.4.0
|
||||
</code>
|
||||
Java I2P router. No changes have been made to update the embedded router.
|
||||
Network behavior will be unchanged until the official
|
||||
<code>
|
||||
2.5.0
|
||||
</code>
|
||||
release.
|
||||
</p>
|
||||
<div id="sourcecode">
|
||||
<span id="sourcehead">
|
||||
<strong>
|
||||
Get the source code:
|
||||
</strong>
|
||||
</span>
|
||||
<ul>
|
||||
<li>
|
||||
<a href="https://github.com/eyedeekay/i2p.firefox">
|
||||
Source Repository: (https://github.com/eyedeekay/i2p.firefox)
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div>
|
||||
<a href="#show">
|
||||
Show license
|
||||
</a>
|
||||
<div id="show">
|
||||
<div id="hide">
|
||||
<pre><code>Copyright 2018
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
||||
this software and associated documentation files (the "Software"), to deal in
|
||||
the Software without restriction, including without limitation the rights to
|
||||
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
||||
the Software, and to permit persons to whom the Software is furnished to do so,
|
||||
subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
||||
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
||||
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
||||
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
</code></pre>
|
||||
<a href="#hide">
|
||||
Hide license
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<iframe src="https://snowflake.torproject.org/embed.html" width="320" height="240" frameborder="0" scrolling="no"></iframe>
|
||||
</div>
|
||||
<div>
|
||||
<a href="https://geti2p.net/">
|
||||
<img class="i2plogo" src="i2plogo.png"></img>
|
||||
I2P
|
||||
</a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
3
docs/RELEASE.md
Normal file
3
docs/RELEASE.md
Normal file
@ -0,0 +1,3 @@
|
||||
# I2P Easy-Install 2.8.0
|
||||
|
||||
This release updates the embedded I2P router to I2P 2.8.0.
|
@ -8,127 +8,142 @@
|
||||
<meta name="keywords" content="master" />
|
||||
<link rel="stylesheet" type="text/css" href="style.css" />
|
||||
<link rel="stylesheet" type="text/css" href="showhider.css" />
|
||||
<link rel="stylesheet" type="text/css" href="darklight.css" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="navbar">
|
||||
<a href="#shownav">
|
||||
Show navigation
|
||||
</a>
|
||||
<div id="shownav">
|
||||
<div id="hidenav">
|
||||
<ul>
|
||||
<li>
|
||||
<a href="..">
|
||||
Up one level ^
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="index.html">
|
||||
index
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="LICENSE.html">
|
||||
LICENSE
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="UPDATES.html">
|
||||
UPDATES
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
<br>
|
||||
<a href="#hidenav">
|
||||
Hide Navigation
|
||||
</a>
|
||||
<input type="checkbox" id="checkboxDarkLight">
|
||||
<div class="container">
|
||||
<div id="navbar">
|
||||
<a href="#shownav">
|
||||
Show navigation
|
||||
</a>
|
||||
<div id="shownav">
|
||||
<div id="hidenav">
|
||||
<ul>
|
||||
<li>
|
||||
<a href="..">
|
||||
Up one level ^
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="index.html">
|
||||
index
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="LICENSE.html">
|
||||
LICENSE
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="index.html">
|
||||
index.html
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="GOALS.html">
|
||||
GOALS
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="PRINCIPLES.html">
|
||||
PRINCIPLES
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="RELEASE.html">
|
||||
RELEASE
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="UPDATES.html">
|
||||
UPDATES
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
<br>
|
||||
<a href="#hidenav">
|
||||
Hide Navigation
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<a id="returnhome" href="/">
|
||||
/
|
||||
</a>
|
||||
<h1>
|
||||
Setting up an Update Server for an I2P Bundle
|
||||
</h1>
|
||||
<p>
|
||||
It is important to set up a signed update server so that people are able to
|
||||
safely and anonymously update your I2P bundle.
|
||||
</p>
|
||||
<h2>
|
||||
The quick way:
|
||||
</h2>
|
||||
<p>
|
||||
This process depends on my ability to push releases to github. If you are
|
||||
forking, setting up a dev server, or taking over because I got hit by a bus,
|
||||
you’ll need to do it the complete way.
|
||||
</p>
|
||||
<p>
|
||||
For as long as I am building updates, you will be able to mirror the jpackaged
|
||||
Windows bundle by cloning the repository
|
||||
<code>
|
||||
https://github.com/eyedeekay/i2p
|
||||
</code>
|
||||
and
|
||||
running the
|
||||
<code>
|
||||
make docker run
|
||||
</code>
|
||||
target in that repository. You can retrieve the
|
||||
base32 address of your update server by viewing the log with
|
||||
<code>
|
||||
docker logs eephttpd-jpackage | grep b32.i2p | tee eephttpd-address.md
|
||||
</code>
|
||||
. To
|
||||
update the site, run
|
||||
<code>
|
||||
./update.site.sh
|
||||
</code>
|
||||
in that repository.
|
||||
</p>
|
||||
<p>
|
||||
Once you have cloned the repository and started the container with
|
||||
<code>
|
||||
make docker run
|
||||
</code>
|
||||
, you can simply add
|
||||
<code>
|
||||
path/to/repo/update-site.sh
|
||||
</code>
|
||||
to your
|
||||
<code>
|
||||
crontab
|
||||
</code>
|
||||
and it will update at an interval of your choosing.
|
||||
</p>
|
||||
<h2>
|
||||
The complete way:
|
||||
</h2>
|
||||
<p>
|
||||
TODO: describe how to do it with less of the awesome fancy stuff I put together
|
||||
to make it easier on myself to keep an update server going.
|
||||
</p>
|
||||
<div id="sourcecode">
|
||||
<span id="sourcehead">
|
||||
<strong>
|
||||
Get the source code:
|
||||
</strong>
|
||||
</span>
|
||||
<ul>
|
||||
<li>
|
||||
<a href="https://github.com/eyedeekay/i2p.firefox">
|
||||
Source Repository: (https://github.com/eyedeekay/i2p.firefox)
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div>
|
||||
<a href="#show">
|
||||
Show license
|
||||
<a id="returnhome" href="/">
|
||||
/
|
||||
</a>
|
||||
<div id="show">
|
||||
<div id="hide">
|
||||
<pre><code>Copyright 2018
|
||||
<h1>
|
||||
Setting up an Update Server for an I2P Bundle
|
||||
</h1>
|
||||
<p>
|
||||
It is important to set up a signed update server so that people are able to
|
||||
safely and anonymously update your I2P bundle. There are two sort of “Levels”
|
||||
to what you might do to provide updates to your users. Each of them requires the
|
||||
generation of a
|
||||
<a href="https://eyedeekay.github.io/Hopefully-Holistic-Guide-to-I2P-Dev-Build-Update-Hosting/">
|
||||
signed newsfeed
|
||||
</a>
|
||||
,
|
||||
which also serves as a way to provide information to your users about updates,
|
||||
features, and security events.
|
||||
</p>
|
||||
<p>
|
||||
This project,
|
||||
<code>
|
||||
i2p.firefox
|
||||
</code>
|
||||
a.k.a. the “I2P Easy Install Bundle” uses the “Executable”
|
||||
update subtype, meaning that it capable of installing itself by executing code as the
|
||||
user who runs the update, which is usually the main user of a Windows 10 or 11 PC.
|
||||
This update subtype is highly flexible, but requires the creation of a “Scripted” using
|
||||
something like
|
||||
<code>
|
||||
NSIS
|
||||
</code>
|
||||
,
|
||||
<code>
|
||||
wixl
|
||||
</code>
|
||||
, or custom code. Other update types include ZIP (used by
|
||||
the core I2P product) and DMG(used by Mac OSX).
|
||||
</p>
|
||||
<h1>
|
||||
Static HTTP Update URL over I2P
|
||||
</h1>
|
||||
<h1>
|
||||
Bittorrent Update URL over I2P
|
||||
</h1>
|
||||
<p>
|
||||
<a href="https://github.com/i2p/i2p.plugins.zzzot">
|
||||
If you choose to do this, consider using zzzot to host your open tracker instead of a normal site
|
||||
</a>
|
||||
,
|
||||
which you can obtain from
|
||||
<a href="http://stats.i2p/i2p/plugins/zzzot.su3">
|
||||
this I2P link
|
||||
</a>
|
||||
.
|
||||
</p>
|
||||
<div id="sourcecode">
|
||||
<span id="sourcehead">
|
||||
<strong>
|
||||
Get the source code:
|
||||
</strong>
|
||||
</span>
|
||||
<ul>
|
||||
<li>
|
||||
<a href="https://github.com/eyedeekay/i2p.firefox">
|
||||
Source Repository: (https://github.com/eyedeekay/i2p.firefox)
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div>
|
||||
<a href="#show">
|
||||
Show license
|
||||
</a>
|
||||
<div id="show">
|
||||
<div id="hide">
|
||||
<pre><code>Copyright 2018
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
||||
this software and associated documentation files (the "Software"), to deal in
|
||||
@ -147,9 +162,10 @@ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
||||
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
</code></pre>
|
||||
<a href="#hide">
|
||||
Hide license
|
||||
</a>
|
||||
<a href="#hide">
|
||||
Hide license
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -158,7 +174,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
</div>
|
||||
<div>
|
||||
<a href="https://geti2p.net/">
|
||||
<img src="i2plogo.png"></img>
|
||||
<img class="i2plogo" src="i2plogo.png"></img>
|
||||
I2P
|
||||
</a>
|
||||
</div>
|
||||
|
24
docs/darklight.css
Normal file
24
docs/darklight.css
Normal file
@ -0,0 +1,24 @@
|
||||
/* edgar darklight CSS file */
|
||||
#checkboxDarkLight:checked + .container {
|
||||
background-color: #202020;
|
||||
filter: invert(100%);
|
||||
}
|
||||
#checkboxDarkLight{
|
||||
appearance: none;
|
||||
width: 80px;
|
||||
height: 40px;
|
||||
background: black;
|
||||
border-radius: 22px;
|
||||
cursor: pointer;
|
||||
outline: none;
|
||||
}
|
||||
#checkboxDarkLight::before{
|
||||
content: '';
|
||||
width: 40px;
|
||||
height: 35px;
|
||||
background-color:white;
|
||||
border-radius: 35px;
|
||||
cursor: pointer;
|
||||
transition: .3s linear;
|
||||
}
|
||||
|
BIN
docs/i2plogo.png
Normal file
BIN
docs/i2plogo.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 46 KiB |
15
docs/showhider.css
Normal file
15
docs/showhider.css
Normal file
@ -0,0 +1,15 @@
|
||||
/* edgar showhider CSS file */
|
||||
#show {display:none; }
|
||||
#hide {display:block; }
|
||||
#show:target {display: block; }
|
||||
#hide:target {display: none; }
|
||||
|
||||
#shownav {display:none; }
|
||||
#hidenav {display:block; }
|
||||
#shownav:target {display: block; }
|
||||
#hidenav:target {display: none; }
|
||||
|
||||
#donate {display:none; }
|
||||
#hidedonate {display:block; }
|
||||
#donate:target {display: block; }
|
||||
#hidedonate:target {display: none; }
|
163
docs/style.css
Normal file
163
docs/style.css
Normal file
@ -0,0 +1,163 @@
|
||||
/* edgar default CSS file */
|
||||
|
||||
body {
|
||||
font-family: "Roboto";
|
||||
font-family: monospace;
|
||||
text-align: justify;
|
||||
background-color: #373636;
|
||||
color: whitesmoke;
|
||||
font-size: 1.15em;
|
||||
}
|
||||
|
||||
ul {
|
||||
width: 55%;
|
||||
display: block;
|
||||
}
|
||||
|
||||
ol {
|
||||
width: 55%;
|
||||
display: block;
|
||||
}
|
||||
|
||||
li {
|
||||
margin-top: 1%;
|
||||
}
|
||||
|
||||
p {
|
||||
max-width: 90%;
|
||||
margin-top: 1%;
|
||||
margin-left: 3%;
|
||||
margin-right: 3%;
|
||||
}
|
||||
|
||||
img {
|
||||
float: left;
|
||||
top: 5%;
|
||||
left: 5%;
|
||||
max-width: 60%;
|
||||
display: inline;
|
||||
padding-right: 2%;
|
||||
}
|
||||
|
||||
.inline {
|
||||
display: inline;
|
||||
}
|
||||
|
||||
.link-button:focus {
|
||||
outline: none;
|
||||
}
|
||||
|
||||
.link-button:active {
|
||||
color: red;
|
||||
}
|
||||
|
||||
code {
|
||||
font-family: monospace;
|
||||
border-radius: 5%;
|
||||
padding: 1%;
|
||||
border-color: darkgray;
|
||||
font-size: .9em;
|
||||
}
|
||||
|
||||
a {
|
||||
color: #C6D9FE;
|
||||
padding: 1%;
|
||||
}
|
||||
|
||||
ul li {
|
||||
color: #C6D9FE;
|
||||
}
|
||||
|
||||
iframe {
|
||||
background: aliceblue;
|
||||
border-radius: 15%;
|
||||
margin: 2%;
|
||||
}
|
||||
|
||||
.container {
|
||||
display: inline-block;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.editor-toolbar a {
|
||||
display: inline-block;
|
||||
text-align: center;
|
||||
text-decoration: none !important;
|
||||
color: whitesmoke !important;
|
||||
}
|
||||
|
||||
#feed {
|
||||
width: 60vw;
|
||||
height: unset !important;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
float: right;
|
||||
background-color: #373636;
|
||||
color: whitesmoke;
|
||||
border: #C6D9FE solid 1px;
|
||||
}
|
||||
|
||||
.thread-post,
|
||||
.thread {
|
||||
color: whitesmoke !important;
|
||||
background-color: #373636;
|
||||
border: 1px solid darkgray;
|
||||
font-size: inherit;
|
||||
padding-top: 1%;
|
||||
padding-bottom: 1%;
|
||||
}
|
||||
|
||||
.thread-post {
|
||||
margin-left: 4%;
|
||||
}
|
||||
|
||||
input {
|
||||
text-align: center;
|
||||
color: whitesmoke !important;
|
||||
background-color: #373636;
|
||||
border: 1px solid darkgray;
|
||||
font: normal normal normal 14px/1 FontAwesome;
|
||||
font-size: inherit;
|
||||
padding-top: 1%;
|
||||
padding-bottom: 1%;
|
||||
}
|
||||
|
||||
.thread-hash {
|
||||
text-align: right;
|
||||
color: whitesmoke !important;
|
||||
background-color: #373636;
|
||||
border: 1px solid darkgray;
|
||||
font-size: inherit;
|
||||
padding-top: 1%;
|
||||
padding-bottom: 1%;
|
||||
}
|
||||
|
||||
.post-body {
|
||||
text-align: left;
|
||||
color: whitesmoke !important;
|
||||
font-size: inherit;
|
||||
padding-top: 1%;
|
||||
padding-bottom: 1%;
|
||||
}
|
||||
#show {display:none; }
|
||||
#hide {display:block; }
|
||||
#show:target {display: block; }
|
||||
#hide:target {display: none; }
|
||||
|
||||
#shownav {display:none; }
|
||||
#hidenav {display:block; }
|
||||
#shownav:target {display: block; }
|
||||
#hidenav:target {display: none; }
|
||||
|
||||
#navbar {
|
||||
float: right;
|
||||
width: 15%;
|
||||
}
|
||||
#returnhome {
|
||||
font-size: xxx-large;
|
||||
display: inline;
|
||||
}
|
||||
h1 {
|
||||
display: inline;
|
||||
}
|
42
i2pversion
42
i2pversion
@ -2,14 +2,38 @@
|
||||
|
||||
JNA_VERSION=5.12.1
|
||||
export JNA_VERSION=5.12.1
|
||||
I2PFIREFOX_VERSION=1.4.7
|
||||
export I2PFIREFOX_VERSION=1.4.7
|
||||
|
||||
export GITHUB_TAG=$(git describe --tags --abbrev=0 | sed 's|i2p||g' | tr -d [a-z-])
|
||||
if [ -z "$VERSIONMAJOR" ]; then
|
||||
VERSIONMAJOR=$(echo "$GITHUB_TAG" | cut -d . -f 1)
|
||||
fi
|
||||
if [ -z "$VERSIONMINOR" ]; then
|
||||
VERSIONMINOR=$(echo "$GITHUB_TAG" | cut -d . -f 2)
|
||||
fi
|
||||
if [ -z "$VERSIONBUILD" ]; then
|
||||
VERSIONBUILD=$(echo "$GITHUB_TAG" | cut -d . -f 3)
|
||||
fi
|
||||
if [ -z "$VERSIONMAJOR" ]; then
|
||||
I2P_VERSION="master"
|
||||
export I2P_VERSION="master"
|
||||
VERSION="master"
|
||||
export VERSION="master"
|
||||
I2PFIREFOX_VERSION="2.9.0"
|
||||
export I2PFIREFOX_VERSION="2.9.0"
|
||||
else
|
||||
I2P_VERSION="$VERSIONMAJOR.$VERSIONMINOR.$VERSIONBUILD"
|
||||
export I2P_VERSION="$VERSIONMAJOR.$VERSIONMINOR.$VERSIONBUILD"
|
||||
VERSION="i2p-$I2P_VERSION"
|
||||
export VERSION="i2p-$I2P_VERSION"
|
||||
I2PFIREFOX_VERSION="$VERSIONMAJOR.$VERSIONMINOR.$VERSIONBUILD"
|
||||
export I2PFIREFOX_VERSION="$VERSIONMAJOR.$VERSIONMINOR.$VERSIONBUILD"
|
||||
fi
|
||||
|
||||
# Comment this out to build from an alternate branch or
|
||||
# the tip of the master branch.
|
||||
VERSIONMAJOR=2
|
||||
VERSIONMINOR=4
|
||||
VERSIONBUILD=0
|
||||
I2P_VERSION="$VERSIONMAJOR.$VERSIONMINOR.$VERSIONBUILD"
|
||||
export I2P_VERSION="$VERSIONMAJOR.$VERSIONMINOR.$VERSIONBUILD"
|
||||
VERSION=i2p-2.4.0
|
||||
export VERSION=i2p-2.4.0
|
||||
#VERSION=i2p-2.4.0
|
||||
#export VERSION=i2p-2.4.0
|
||||
|
||||
echo "I2P version $I2P_VERSION"
|
||||
echo "Tag $VERSION"
|
||||
echo "I2P Firefox Profile version $I2PFIREFOX_VERSION"
|
||||
|
1355
index.html
1355
index.html
File diff suppressed because it is too large
Load Diff
@ -1,307 +0,0 @@
|
||||
package net.i2p.router;
|
||||
|
||||
import java.io.BufferedInputStream;
|
||||
import java.io.BufferedOutputStream;
|
||||
import java.io.File;
|
||||
import java.io.FileInputStream;
|
||||
import java.io.FileOutputStream;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.io.OutputStream;
|
||||
import java.util.logging.FileHandler;
|
||||
import java.util.logging.Logger;
|
||||
import java.util.logging.SimpleFormatter;
|
||||
|
||||
public class CopyConfigDir extends WindowsServiceUtil {
|
||||
final Logger logger = Logger.getLogger("configlog");
|
||||
|
||||
public void initLogger() {
|
||||
try {
|
||||
// This block configure the logger with handler and formatter
|
||||
FileHandler 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("My first log");
|
||||
} catch (SecurityException e) {
|
||||
e.printStackTrace();
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
public boolean copyDirectory(String baseDir, String workDir) {
|
||||
File baseFile = new File(baseDir);
|
||||
File workFile = new File(workDir);
|
||||
return copyDirectory(baseFile, workFile);
|
||||
}
|
||||
|
||||
public boolean copyDirectory(File baseDir, File workDir) {
|
||||
for (File file : baseDir.listFiles()) {
|
||||
String fPath = file.getAbsolutePath().replace(
|
||||
file.getParentFile().getAbsolutePath(), "");
|
||||
String newPath = workDir.toString() + fPath;
|
||||
if (file.isDirectory())
|
||||
if (copyDirectory(file, new File(newPath)))
|
||||
return false;
|
||||
if (file.isFile())
|
||||
if (0 == copyFile(file, new File(newPath), true))
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
public boolean copyConfigDirectory(File baseDir, File workDir) {
|
||||
for (File file : baseDir.listFiles()) {
|
||||
// System.out.println(file.getAbsolutePath());
|
||||
String fPath = file.getAbsolutePath().replace(
|
||||
file.getParentFile().getAbsolutePath(), "");
|
||||
String newPath = workDir.toString() + fPath;
|
||||
if (file.isDirectory())
|
||||
if (!copyConfigDirectory(file, new File(newPath)))
|
||||
return false;
|
||||
if (file.isFile()) {
|
||||
int cnr = copyFileNeverOverwrite(file, new File(newPath));
|
||||
if (0 == cnr)
|
||||
return false;
|
||||
if (1 == cnr) {
|
||||
logger.info(
|
||||
"using jpackaged configs in a jpackaged install, creating jpackaged file");
|
||||
File jpackagedConfigsInUse = new File(appImageHome(), "jpackaged");
|
||||
if (!jpackagedConfigsInUse.exists()) {
|
||||
try {
|
||||
jpackagedConfigsInUse.createNewFile();
|
||||
} catch (IOException e) {
|
||||
logger.warning(
|
||||
"Error creating jpackaged file, delete config files manually when uninstalling");
|
||||
}
|
||||
}
|
||||
}
|
||||
if (-1 == cnr) {
|
||||
logger.info(
|
||||
"not overwriting existing config file, not creating jpackaged file");
|
||||
}
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
public int copyFileNeverOverwrite(String basePath, String workPath) {
|
||||
File baseFile = new File(basePath);
|
||||
File workFile = new File(workPath);
|
||||
return copyFileNeverOverwrite(baseFile, workFile);
|
||||
}
|
||||
|
||||
public int copyFileNeverOverwrite(File basePath, File workPath) {
|
||||
return copyFile(basePath, workPath, false);
|
||||
}
|
||||
|
||||
public int copyFile(File basePath, File workPath, boolean overWrite) {
|
||||
if (!basePath.exists()) {
|
||||
logger.info(basePath.getAbsolutePath() + " doesn't exist, not copying");
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (!overWrite && workPath.exists()) {
|
||||
logger.info(workPath.getAbsolutePath() +
|
||||
" already exists, not overwriting");
|
||||
return -1;
|
||||
}
|
||||
|
||||
File workDir = workPath.getParentFile();
|
||||
if (!workDir.exists()) {
|
||||
workDir.mkdirs();
|
||||
}
|
||||
try (InputStream in =
|
||||
new BufferedInputStream(new FileInputStream(basePath));
|
||||
OutputStream out =
|
||||
new BufferedOutputStream(new FileOutputStream(workPath))) {
|
||||
|
||||
byte[] buffer = new byte[1024];
|
||||
int lengthRead;
|
||||
while ((lengthRead = in.read(buffer)) > 0) {
|
||||
out.write(buffer, 0, lengthRead);
|
||||
out.flush();
|
||||
}
|
||||
in.close();
|
||||
out.close();
|
||||
return 1;
|
||||
} catch (Throwable e) {
|
||||
logger.warning(e.toString());
|
||||
logger.warning("failed to copy " + basePath.getAbsolutePath() + " to " +
|
||||
workPath.getAbsolutePath());
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
protected File selectHome() { // throws Exception {
|
||||
String path_override = System.getenv("I2P_CONFIG");
|
||||
if (path_override != null) {
|
||||
File path = new File(path_override);
|
||||
if (path != null && path.exists()) {
|
||||
if (path.isDirectory())
|
||||
return path.getAbsoluteFile();
|
||||
else
|
||||
throw new RuntimeException("I2P_CONFIG is not a directory: " + path);
|
||||
}
|
||||
}
|
||||
File i2p = appImageHome();
|
||||
logger.info("Checking for signs of life in I2P_CONFIG directory: " + i2p);
|
||||
return i2p;
|
||||
}
|
||||
|
||||
protected File selectProgramFile() {
|
||||
String path_override = System.getenv("I2P");
|
||||
if (path_override != null) {
|
||||
File path = new File(path_override);
|
||||
if (path.exists()) {
|
||||
if (path.isDirectory())
|
||||
return path.getAbsoluteFile();
|
||||
else
|
||||
throw new RuntimeException("I2P is not a directory: " + path);
|
||||
}
|
||||
}
|
||||
File i2p = appImageHome();
|
||||
logger.info("Checking for signs of life in I2P directory: " + i2p);
|
||||
return i2p;
|
||||
}
|
||||
|
||||
/**
|
||||
* get the path to the java home, for jpackage this is related to the
|
||||
* executable itself, which is handy to know. It's a directory called runtime,
|
||||
* relative to the root of the app-image on each platform:
|
||||
*
|
||||
* Windows - Root of appimage is 1 directory above directory named runtime
|
||||
* ./runtime
|
||||
*
|
||||
* Linux - Root of appimage is 2 directories above directory named runtime
|
||||
* ./lib/runtime
|
||||
*
|
||||
* Mac OSX - Unknown for now
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
protected File javaHome() {
|
||||
File jrehome = new File(System.getProperty("java.home"));
|
||||
if (jrehome != null) {
|
||||
if (jrehome.exists()) {
|
||||
return jrehome;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* get the path to the root of the app-image root by getting the path to
|
||||
* java.home and the OS, and traversing up to the app-image root based on that
|
||||
* information.
|
||||
*
|
||||
* @return the app-image root
|
||||
*/
|
||||
protected File appImageHome() {
|
||||
File jreHome = javaHome();
|
||||
if (jreHome != null) {
|
||||
switch (osName()) {
|
||||
case "windows":
|
||||
return jreHome.getAbsoluteFile().getParentFile();
|
||||
case "mac":
|
||||
case "linux":
|
||||
return jreHome.getAbsoluteFile().getParentFile().getParentFile();
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* get the path to the binary of the app-image root by getting the path to
|
||||
* java.home and the OS, and traversing up to the app-image root based on that
|
||||
* information, then getting the binary path on a per-platform basis. The path
|
||||
* returned will be relative to the root.
|
||||
*
|
||||
* @return the app-image root
|
||||
*/
|
||||
protected String appImageExe() {
|
||||
File aih = appImageHome();
|
||||
if (aih != null) {
|
||||
switch (osName()) {
|
||||
case "windows":
|
||||
return "I2P.exe";
|
||||
case "mac":
|
||||
case "linux":
|
||||
return "./bin/I2P";
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* get the path to the default config of the app-image by getting the path to
|
||||
* java.home and the OS, and traversing up to the app-image root based on that
|
||||
* information, then appending the config directory to the end onn a
|
||||
* per-platform basis
|
||||
*
|
||||
* @return the app-image root
|
||||
*/
|
||||
protected File appImageConfig() {
|
||||
File aih = appImageHome();
|
||||
if (aih == null) {
|
||||
return null;
|
||||
}
|
||||
String osName = osName();
|
||||
switch (osName) {
|
||||
case "windows":
|
||||
File winConfigDir = new File(aih, "config");
|
||||
if (winConfigDir != null) {
|
||||
if (winConfigDir.exists()) {
|
||||
return winConfigDir;
|
||||
}
|
||||
}
|
||||
case "mac":
|
||||
case "linux":
|
||||
File linConfigDir = new File(aih, "lib/config");
|
||||
if (linConfigDir != null) {
|
||||
if (linConfigDir.exists()) {
|
||||
return linConfigDir;
|
||||
}
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
protected boolean copyConfigDir() {
|
||||
File appImageConfigDir = appImageConfig();
|
||||
File appImageHomeDir = selectHome();
|
||||
return copyConfigDirectory(appImageConfigDir, appImageHomeDir);
|
||||
}
|
||||
|
||||
protected String routerConfig() {
|
||||
File appImageHomeDir = selectHome();
|
||||
File routerConf = new File(appImageHomeDir, "router.config");
|
||||
if (routerConf != null) {
|
||||
if (routerConf.exists()) {
|
||||
return routerConf.getAbsolutePath();
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* set up the path to the log file
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
protected File logFile() { return logFile("launcher.log"); }
|
||||
|
||||
/**
|
||||
* set up the path to the log file
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
protected File logFile(String p) {
|
||||
File log = new File(selectProgramFile(), "logs");
|
||||
if (!log.exists())
|
||||
log.mkdirs();
|
||||
return new File(log, p);
|
||||
}
|
||||
}
|
83
java/net/i2p/router/I2PAppUtil.java
Normal file
83
java/net/i2p/router/I2PAppUtil.java
Normal file
@ -0,0 +1,83 @@
|
||||
package net.i2p.router;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
import javax.swing.JOptionPane;
|
||||
import net.i2p.router.RouterContext;
|
||||
|
||||
public class I2PAppUtil extends WindowsAppUtil {
|
||||
|
||||
public String ServiceUpdaterString() {
|
||||
return "http://tc73n4kivdroccekirco7rhgxdg5f3cjvbaapabupeyzrqwv5guq.b32.i2p/news.su3";
|
||||
}
|
||||
public String ServiceBackupUpdaterString() {
|
||||
return "http://dn3tvalnjz432qkqsvpfdqrwpqkw3ye4n4i2uyfr4jexvo3sp5ka.b32.i2p/news.su3";
|
||||
}
|
||||
public String ServiceStaticUpdaterString() {
|
||||
return "http://echelon.i2p/i2p/i2pupdate.sud,http://stats.i2p/i2p/i2pupdate.sud";
|
||||
}
|
||||
|
||||
public String getProgramFilesInstall() {
|
||||
String programFiles = System.getenv("PROGRAMFILES");
|
||||
if (programFiles != null) {
|
||||
File programFilesI2P = new File(programFiles, "i2p/i2p.exe");
|
||||
if (programFilesI2P.exists())
|
||||
return programFilesI2P.getAbsolutePath();
|
||||
}
|
||||
String programFiles86 = System.getenv("PROGRAMFILES86");
|
||||
if (programFiles86 != null) {
|
||||
File programFiles86I2P = new File(programFiles86, "i2p/i2p.exe");
|
||||
if (programFiles86I2P.exists())
|
||||
return programFiles86I2P.getAbsolutePath();
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public boolean checkProgramFilesInstall() {
|
||||
String programFiles = System.getenv("PROGRAMFILES");
|
||||
if (programFiles != null) {
|
||||
File programFilesI2P = new File(programFiles, "i2p/i2p.exe");
|
||||
if (programFilesI2P.exists())
|
||||
return true;
|
||||
}
|
||||
String programFiles86 = System.getenv("PROGRAMFILES86");
|
||||
if (programFiles86 != null) {
|
||||
File programFiles86I2P = new File(programFiles86, "i2p/i2p.exe");
|
||||
if (programFiles86I2P.exists())
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public boolean promptUserInstallStartIfAvailable() {
|
||||
if (osName() != "windows") {
|
||||
return true;
|
||||
}
|
||||
if (checkProgramFilesInstall()) {
|
||||
int a;
|
||||
String message =
|
||||
"It appears you have an existing, unbundled I2P rotuer installed.\n";
|
||||
message +=
|
||||
"However, it is not running yet. Please start it using the shortcut on the desktop.\n";
|
||||
message +=
|
||||
"If you click \"No\", the Easy-Install router will be launched instead.\n";
|
||||
a = JOptionPane.showConfirmDialog(null, message,
|
||||
"I2P Service detected not running",
|
||||
JOptionPane.YES_NO_OPTION);
|
||||
if (a == JOptionPane.NO_OPTION) {
|
||||
// Do nothing here, this will continue on to launch a jpackaged router
|
||||
return true;
|
||||
} else {
|
||||
try {
|
||||
String pfi = getProgramFilesInstall();
|
||||
if (pfi != null)
|
||||
Runtime.getRuntime().exec(new String[] {pfi});
|
||||
} catch (IOException e) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
@ -5,18 +5,14 @@ import java.net.InetAddress;
|
||||
import java.net.ServerSocket;
|
||||
import java.net.Socket;
|
||||
import java.util.*;
|
||||
import java.util.logging.FileHandler;
|
||||
import java.util.logging.Logger;
|
||||
import java.util.logging.SimpleFormatter;
|
||||
import net.i2p.app.ClientAppManager;
|
||||
import net.i2p.crypto.*;
|
||||
//import net.i2p.i2pfirefox.*;
|
||||
import net.i2p.router.Router;
|
||||
import net.i2p.router.RouterLaunch;
|
||||
import net.i2p.update.*;
|
||||
import net.i2p.update.UpdateManager;
|
||||
import net.i2p.update.UpdatePostProcessor;
|
||||
import net.i2p.update.UpdateType.*;
|
||||
import net.i2p.util.Log;
|
||||
|
||||
/**
|
||||
* Launches a router from %WORKINGDIR%/I2P using configuration data in
|
||||
@ -28,66 +24,21 @@ import net.i2p.update.UpdateType.*;
|
||||
* appdata
|
||||
* router.pid - the pid of the java process.
|
||||
*/
|
||||
public class WinLauncher extends CopyConfigDir {
|
||||
WindowsUpdatePostProcessor wupp = null;
|
||||
public class WinLauncher extends I2PAppUtil {
|
||||
// private final CopyConfigDir copyConfigDir;
|
||||
WinUpdatePostProcessor wupp = null;
|
||||
private Router i2pRouter;
|
||||
private final Log logger;
|
||||
|
||||
public static void main(String[] args) {
|
||||
var launcher = new WinLauncher();
|
||||
launcher.setupLauncher();
|
||||
launcher.initLogger();
|
||||
int proxyTimeoutTime = 200;
|
||||
ArrayList<String> newArgsList = new ArrayList<String>();
|
||||
|
||||
if (args != null) {
|
||||
if (args.length > 0) {
|
||||
for (String arg : args) {
|
||||
if (arg.equals("-private")) {
|
||||
launcher.logger.info(
|
||||
"Private browsing is true, profile will be discarded at end of session.");
|
||||
} else if (arg.equals("-chromium")) {
|
||||
launcher.logger.info("Chromium will be selected before Firefox.");
|
||||
} else if (arg.equals("-usability")) {
|
||||
launcher.logger.info(
|
||||
"Usability mode is true, using alternate extensions loadout.");
|
||||
} else if (arg.equals("-noproxycheck")) {
|
||||
proxyTimeoutTime = 0;
|
||||
launcher.logger.info("Proxy timeout time set to zero");
|
||||
} else {
|
||||
// make an effort to not let people launch into sites if the proxy
|
||||
// isn't quite ready yet, but also disable the proxy timeout if
|
||||
// they're reaching a router console
|
||||
if (arg.startsWith("http://localhost:76")) {
|
||||
newArgsList.add(arg);
|
||||
proxyTimeoutTime = 0;
|
||||
} else if (arg.startsWith("http://127.0.0.1:76")) {
|
||||
newArgsList.add(arg);
|
||||
proxyTimeoutTime = 0;
|
||||
} else if (arg.startsWith("https://localhost:76")) {
|
||||
newArgsList.add(arg);
|
||||
proxyTimeoutTime = 0;
|
||||
} else if (arg.startsWith("https://127.0.0.1:76")) {
|
||||
newArgsList.add(arg);
|
||||
proxyTimeoutTime = 0;
|
||||
} else if (proxyTimeoutTime > 0) {
|
||||
newArgsList.add(arg);
|
||||
} else if (!launcher.isAvailable(4444)) {
|
||||
newArgsList.add(arg);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
File programs = launcher.programFile();
|
||||
File home = launcher.homeDir();
|
||||
public WinLauncher() {
|
||||
File programs = programFile();
|
||||
|
||||
System.setProperty(
|
||||
"i2p.dir.base",
|
||||
new File(programs.getAbsolutePath(), "config").getAbsolutePath());
|
||||
System.setProperty("i2p.dir.config", home.getAbsolutePath());
|
||||
appImageConfig().getAbsolutePath());
|
||||
System.setProperty("i2p.dir.config", appImageConfig().getAbsolutePath());
|
||||
System.setProperty("router.pid",
|
||||
String.valueOf(ProcessHandle.current().pid()));
|
||||
String.valueOf(ProcessHandle.current().pid()));
|
||||
/**
|
||||
* IMPORTANT: You must set user.dir to the same directory where the
|
||||
* jpackage is intstalled, or when the launcher tries to re-run itself
|
||||
@ -95,40 +46,47 @@ public class WinLauncher extends CopyConfigDir {
|
||||
* to find the JVM and Runtime bundle. This broke Windows 11 installs.
|
||||
*/
|
||||
System.setProperty("user.dir", programs.getAbsolutePath());
|
||||
|
||||
i2pRouter = new Router(routerConfig(), System.getProperties());
|
||||
this.setLog(i2pRouter.getContext().logManager().getLog(WindowsAppUtil.class));
|
||||
// copyConfigDir = new CopyConfigDir(i2pRouter.getContext());
|
||||
logger = i2pRouter.getContext().logManager().getLog(WinLauncher.class);
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
var launcher = new WinLauncher();
|
||||
launcher.setupLauncher();
|
||||
int proxyTimeoutTime = 200;
|
||||
|
||||
launcher.logger.info("\t" + System.getProperty("user.dir"));
|
||||
launcher.logger.info("\t" + System.getProperty("i2p.dir.base"));
|
||||
launcher.logger.info("\t" + System.getProperty("i2p.dir.config"));
|
||||
launcher.logger.info("\t" + System.getProperty("router.pid"));
|
||||
boolean continuerunning = launcher.promptServiceStartIfAvailable("i2p");
|
||||
if (!continuerunning) {
|
||||
launcher.logger.severe(
|
||||
launcher.logger.error(
|
||||
"Service startup failure, please start I2P service with services.msc");
|
||||
System.exit(2);
|
||||
}
|
||||
continuerunning = launcher.promptUserInstallStartIfAvailable();
|
||||
if (!continuerunning) {
|
||||
launcher.logger.severe("User-install startup required.");
|
||||
launcher.logger.error("User-install startup required.");
|
||||
System.exit(2);
|
||||
}
|
||||
|
||||
// This actually does most of what we use NSIS for if NSIS hasn't
|
||||
// already done it, which essentially makes this whole thing portable.
|
||||
if (!launcher.copyConfigDir()) {
|
||||
launcher.logger.severe("Cannot copy the configuration directory");
|
||||
System.exit(1);
|
||||
}
|
||||
/*
|
||||
* if (!launcher.copyConfigDir.copyConfigDir()) {
|
||||
* launcher.logger.error("Cannot copy the configuration directory");
|
||||
* System.exit(1);
|
||||
* }
|
||||
*/
|
||||
|
||||
launcher.i2pRouter =
|
||||
new Router(launcher.routerConfig(), System.getProperties());
|
||||
if (!launcher.isInstalled("i2p")) {
|
||||
if (launcher.i2pRouter.saveConfig("routerconsole.browser", null)) {
|
||||
launcher.logger.info("removed routerconsole.browser config");
|
||||
}
|
||||
if (launcher.i2pRouter.saveConfig("routerconsole.browser",
|
||||
launcher.appImageExe() +
|
||||
" -noproxycheck")) {
|
||||
if (launcher.i2pRouter.saveConfig("routerconsole.browser", "NUL")) {
|
||||
launcher.logger.info("updated routerconsole.browser config " +
|
||||
launcher.appImageExe());
|
||||
launcher.appImageExe());
|
||||
}
|
||||
}
|
||||
launcher.logger.info("Router is configured");
|
||||
@ -138,8 +96,6 @@ public class WinLauncher extends CopyConfigDir {
|
||||
registrationThread.setDaemon(true);
|
||||
registrationThread.start();
|
||||
|
||||
launcher.setNotStarting();
|
||||
|
||||
launcher.i2pRouter.runRouter();
|
||||
}
|
||||
|
||||
@ -151,31 +107,18 @@ public class WinLauncher extends CopyConfigDir {
|
||||
}
|
||||
|
||||
private File programFile() {
|
||||
File programs = selectProgramFile();
|
||||
File programs = selectHome();
|
||||
if (!programs.exists())
|
||||
programs.mkdirs();
|
||||
else if (!programs.isDirectory()) {
|
||||
logger.warning(
|
||||
logger.warn(
|
||||
programs +
|
||||
" exists but is not a directory. Please get it out of the way");
|
||||
" exists but is not a directory. Please get it out of the way");
|
||||
System.exit(1);
|
||||
}
|
||||
return programs;
|
||||
}
|
||||
|
||||
private File homeDir() {
|
||||
File home = selectHome();
|
||||
if (!home.exists())
|
||||
home.mkdirs();
|
||||
else if (!home.isDirectory()) {
|
||||
logger.warning(
|
||||
home +
|
||||
" exists but is not a directory. Please get it out of the way");
|
||||
System.exit(1);
|
||||
}
|
||||
return home;
|
||||
}
|
||||
|
||||
// see
|
||||
// https://stackoverflow.com/questions/434718/sockets-discover-port-availability-using-java
|
||||
private boolean isAvailable(int portNr) {
|
||||
@ -188,93 +131,6 @@ public class WinLauncher extends CopyConfigDir {
|
||||
return portFree;
|
||||
}
|
||||
|
||||
private boolean i2pIsRunningCheck() {
|
||||
// check if there's something listening on port 7657(Router Console)
|
||||
if (!isAvailable(7657))
|
||||
return true;
|
||||
// check if there's something listening on port 7654(I2CP)
|
||||
if (!isAvailable(7654))
|
||||
return true;
|
||||
if (checkPing())
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
private void setNotStarting() {
|
||||
logger.info("removing startup file, the application has started");
|
||||
File home = selectHome();
|
||||
File starting = new File(home, "starting");
|
||||
if (starting.exists()) {
|
||||
starting.delete();
|
||||
}
|
||||
}
|
||||
|
||||
private void setStarting() {
|
||||
logger.info("creating startup file, router is starting up");
|
||||
File home = selectHome();
|
||||
File starting = new File(home, "starting");
|
||||
if (!starting.exists()) {
|
||||
try {
|
||||
starting.createNewFile();
|
||||
} catch (IOException e) {
|
||||
logger.info(e.toString());
|
||||
}
|
||||
}
|
||||
Runtime.getRuntime().addShutdownHook(new Thread() {
|
||||
@Override
|
||||
public void run() {
|
||||
setNotStarting();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
private boolean checkStarting() {
|
||||
logger.info("checking startup file");
|
||||
File home = selectHome();
|
||||
File starting = new File(home, "starting");
|
||||
if (starting.exists()) {
|
||||
logger.info("startup file exists, I2P is already starting up");
|
||||
return true;
|
||||
}
|
||||
logger.info("startup file does not exist but we're running now");
|
||||
setStarting();
|
||||
return false;
|
||||
}
|
||||
|
||||
// check for the existence of router.ping file, if it's less then 2
|
||||
// minutes old, exit
|
||||
private boolean checkPing() {
|
||||
File home = selectHome();
|
||||
File ping = new File(home, "router.ping");
|
||||
if (ping.exists()) {
|
||||
long diff = System.currentTimeMillis() - ping.lastModified();
|
||||
if (diff > 60 * 1000) {
|
||||
logger.info(
|
||||
"router.ping exists and is more than 1 minute old, I2P does not appear to be running.");
|
||||
logger.info("If I2P is running, report this as a bug.");
|
||||
return false;
|
||||
} else {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
private boolean i2pIsRunning() {
|
||||
if (checkStarting())
|
||||
return true;
|
||||
if (checkPing())
|
||||
return true;
|
||||
if (i2pIsRunningCheck())
|
||||
return true;
|
||||
for (int i = 0; i < 10; i++) {
|
||||
if (i2pIsRunningCheck())
|
||||
return true;
|
||||
sleep(1000);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
private final Runnable REGISTER_UPP = () -> {
|
||||
RouterContext ctx;
|
||||
while ((ctx = i2pRouter.getContext()) == null) {
|
||||
@ -286,11 +142,10 @@ public class WinLauncher extends CopyConfigDir {
|
||||
sleep(1000);
|
||||
}
|
||||
UpdateManager um;
|
||||
while ((um = (UpdateManager)cam.getRegisteredApp(UpdateManager.APP_NAME)) ==
|
||||
null) {
|
||||
while ((um = (UpdateManager) cam.getRegisteredApp(UpdateManager.APP_NAME)) == null) {
|
||||
sleep(1000);
|
||||
}
|
||||
WindowsUpdatePostProcessor wupp = new WindowsUpdatePostProcessor(ctx);
|
||||
WinUpdatePostProcessor wupp = new WinUpdatePostProcessor(ctx);
|
||||
um.register(wupp, UpdateType.ROUTER_SIGNED_SU3, SU3File.TYPE_EXE);
|
||||
um.register(wupp, UpdateType.ROUTER_DEV_SU3, SU3File.TYPE_EXE);
|
||||
};
|
||||
|
@ -16,7 +16,7 @@ import net.i2p.update.UpdateType;
|
||||
import net.i2p.util.Log;
|
||||
import net.i2p.util.SystemVersion;
|
||||
|
||||
public class WindowsUpdatePostProcessor implements UpdatePostProcessor {
|
||||
public class WinUpdatePostProcessor implements UpdatePostProcessor {
|
||||
private final Log _log;
|
||||
private final RouterContext ctx;
|
||||
private final AtomicBoolean hook = new AtomicBoolean();
|
||||
@ -26,17 +26,21 @@ public class WindowsUpdatePostProcessor implements UpdatePostProcessor {
|
||||
|
||||
private volatile File positionedFile = null;
|
||||
|
||||
WindowsUpdatePostProcessor(RouterContext ctx) {
|
||||
WinUpdatePostProcessor(RouterContext ctx) {
|
||||
this.ctx = ctx;
|
||||
this._log = ctx.logManager().getLog(WindowsUpdatePostProcessor.class);
|
||||
this._log = ctx.logManager().getLog(WinUpdatePostProcessor.class);
|
||||
}
|
||||
|
||||
public String getVersion() { return version; }
|
||||
public String getVersion() {
|
||||
return version;
|
||||
}
|
||||
|
||||
public File getFile() { return positionedFile; }
|
||||
public File getFile() {
|
||||
return positionedFile;
|
||||
}
|
||||
|
||||
public void updateDownloadedandVerified(UpdateType type, int fileType,
|
||||
String version, File file)
|
||||
String version, File file)
|
||||
throws IOException {
|
||||
_log.info("Got an update to post-process");
|
||||
if (type != UpdateType.ROUTER_SIGNED_SU3 &&
|
||||
@ -97,12 +101,11 @@ public class WindowsUpdatePostProcessor implements UpdatePostProcessor {
|
||||
|
||||
private File workDir() throws IOException {
|
||||
if (this.ctx != null) {
|
||||
File workDir =
|
||||
new File(this.ctx.getConfigDir().getAbsolutePath(), "i2p_update_win");
|
||||
File workDir = new File(this.ctx.getConfigDir().getAbsolutePath(), "i2p_update_win");
|
||||
if (workDir.exists()) {
|
||||
if (workDir.isFile())
|
||||
throw new IOException(workDir +
|
||||
" exists but is a file, get it out of the way");
|
||||
" exists but is a file, get it out of the way");
|
||||
return null;
|
||||
} else {
|
||||
workDir.mkdirs();
|
@ -14,7 +14,7 @@ class WinUpdateProcess implements Runnable {
|
||||
private final Log _log;
|
||||
|
||||
WinUpdateProcess(RouterContext ctx, Supplier<String> versionSupplier,
|
||||
Supplier<File> fileSupplier) {
|
||||
Supplier<File> fileSupplier) {
|
||||
this.ctx = ctx;
|
||||
this.versionSupplier = versionSupplier;
|
||||
this.fileSupplier = fileSupplier;
|
||||
@ -23,12 +23,11 @@ class WinUpdateProcess implements Runnable {
|
||||
|
||||
private File workDir() throws IOException {
|
||||
if (ctx != null) {
|
||||
File workDir =
|
||||
new File(ctx.getConfigDir().getAbsolutePath(), "i2p_update_win");
|
||||
File workDir = new File(ctx.getConfigDir().getAbsolutePath(), "i2p_update_win");
|
||||
if (workDir.exists()) {
|
||||
if (workDir.isFile())
|
||||
throw new IOException(workDir +
|
||||
" exists but is a file, get it out of the way");
|
||||
" exists but is a file, get it out of the way");
|
||||
return workDir;
|
||||
} else {
|
||||
workDir.mkdirs();
|
||||
@ -62,13 +61,13 @@ class WinUpdateProcess implements Runnable {
|
||||
|
||||
try {
|
||||
Process p = pb.directory(workingDir)
|
||||
.redirectErrorStream(true)
|
||||
.redirectOutput(logFile)
|
||||
.start();
|
||||
.redirectErrorStream(true)
|
||||
.redirectOutput(logFile)
|
||||
.start();
|
||||
exitCode = p.waitFor();
|
||||
if (exitCode != 0)
|
||||
_log.error("Update failed with exit code " + exitCode + " see " +
|
||||
logFile.getAbsolutePath() + " for more details");
|
||||
logFile.getAbsolutePath() + " for more details");
|
||||
} catch (IOException ex) {
|
||||
_log.error(
|
||||
"Unable to run update program in background. Update will fail.", ex);
|
||||
|
158
java/net/i2p/router/WindowsAppUtil.java
Normal file
158
java/net/i2p/router/WindowsAppUtil.java
Normal file
@ -0,0 +1,158 @@
|
||||
package net.i2p.router;
|
||||
|
||||
import java.io.File;
|
||||
import net.i2p.util.Log;
|
||||
import net.i2p.router.RouterContext;
|
||||
|
||||
public class WindowsAppUtil extends WindowsServiceUtil {
|
||||
private Log _log;
|
||||
|
||||
public void setLog(Log log) {
|
||||
this._log = log;
|
||||
}
|
||||
|
||||
private File checkPathEnvironmentVariable(String name) {
|
||||
String path_override = System.getenv(name);
|
||||
if (path_override != null) {
|
||||
File path = new File(path_override);
|
||||
if (path != null && path.exists()) {
|
||||
if (path.isDirectory())
|
||||
return path.getAbsoluteFile();
|
||||
else
|
||||
throw new RuntimeException(name + " is not a directory: " + path);
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
protected File selectHome() { // throws Exception {
|
||||
File i2p = checkPathEnvironmentVariable("JPACKAGE_HOME");
|
||||
if (i2p == null)
|
||||
i2p = appImageHome();
|
||||
return i2p;
|
||||
}
|
||||
|
||||
/**
|
||||
* get the path to the java home, for jpackage this is related to the
|
||||
* executable itself, which is handy to know. It's a directory called runtime,
|
||||
* relative to the root of the app-image on each platform:
|
||||
*
|
||||
* Windows - Root of appimage is 1 directory above directory named runtime
|
||||
* ./runtime
|
||||
*
|
||||
* Linux - Root of appimage is 2 directories above directory named runtime
|
||||
* ./lib/runtime
|
||||
*
|
||||
* Mac OSX - Unknown for now
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
protected File javaHome() {
|
||||
File jrehome = new File(System.getProperty("java.home"));
|
||||
if (jrehome != null) {
|
||||
if (jrehome.exists()) {
|
||||
return jrehome;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* get the path to the root of the app-image root by getting the path to
|
||||
* java.home and the OS, and traversing up to the app-image root based on that
|
||||
* information.
|
||||
*
|
||||
* @return the app-image root
|
||||
*/
|
||||
protected File appImageHome() {
|
||||
File jreHome = javaHome();
|
||||
if (jreHome != null) {
|
||||
switch (osName()) {
|
||||
case "windows":
|
||||
return jreHome.getAbsoluteFile().getParentFile();
|
||||
case "mac":
|
||||
case "linux":
|
||||
return jreHome.getAbsoluteFile().getParentFile().getParentFile();
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* get the path to the binary of the app-image root by getting the path to
|
||||
* java.home and the OS, and traversing up to the app-image root based on that
|
||||
* information, then getting the binary path on a per-platform basis. The path
|
||||
* returned will be relative to the root.
|
||||
*
|
||||
* @return the app-image root + the path to the executable
|
||||
*/
|
||||
protected String appImageExe() {
|
||||
File aih = appImageHome();
|
||||
if (aih != null) {
|
||||
// get the name of the aih directory itself, which will be the default
|
||||
// name of the executable as well
|
||||
String baseName = aih.getName();
|
||||
switch (osName()) {
|
||||
case "windows":
|
||||
return baseName + ".exe";
|
||||
case "mac":
|
||||
case "linux":
|
||||
return "./bin/" + baseName;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* get the path to the default config of the app-image by getting the path to
|
||||
* java.home and the OS, and traversing up to the app-image root based on that
|
||||
* information, then appending the config directory to the end onn a
|
||||
* per-platform basis
|
||||
*
|
||||
* @return the app-image root
|
||||
*/
|
||||
protected File appImageConfig() {
|
||||
File aih = appImageHome();
|
||||
if (aih == null) {
|
||||
return null;
|
||||
}
|
||||
String osName = osName();
|
||||
switch (osName) {
|
||||
case "windows":
|
||||
File winConfigDir = new File(aih, "config");
|
||||
if (winConfigDir != null) {
|
||||
if (winConfigDir.exists()) {
|
||||
return winConfigDir;
|
||||
}
|
||||
}
|
||||
case "mac":
|
||||
case "linux":
|
||||
File linConfigDir = new File(aih, "lib/config");
|
||||
if (linConfigDir != null) {
|
||||
if (linConfigDir.exists()) {
|
||||
File cfg = new File(linConfigDir, "router.config");
|
||||
if (cfg.canWrite())
|
||||
return linConfigDir;
|
||||
else {
|
||||
String home = System.getenv("HOME");
|
||||
if (home != null)
|
||||
linConfigDir = new File(home,"i2p-config");
|
||||
}
|
||||
return linConfigDir;
|
||||
}
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
protected String routerConfig() {
|
||||
File appImageHomeDir = selectHome();
|
||||
File routerConf = new File(appImageHomeDir, "router.config");
|
||||
if (routerConf != null) {
|
||||
if (routerConf.exists()) {
|
||||
return routerConf.getAbsolutePath();
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
@ -30,7 +30,9 @@ import javax.swing.JOptionPane;
|
||||
*/
|
||||
|
||||
public class WindowsServiceUtil {
|
||||
public WindowsServiceUtil() {}
|
||||
public WindowsServiceUtil() {
|
||||
}
|
||||
|
||||
public String queryService(String serviceName) {
|
||||
String result = "";
|
||||
String line;
|
||||
@ -39,8 +41,7 @@ public class WindowsServiceUtil {
|
||||
Process p = pb.start();
|
||||
try {
|
||||
p.waitFor(); // wait for process to finish then continue.
|
||||
BufferedReader bri =
|
||||
new BufferedReader(new InputStreamReader(p.getInputStream()));
|
||||
BufferedReader bri = new BufferedReader(new InputStreamReader(p.getInputStream()));
|
||||
while ((line = bri.readLine()) != null) {
|
||||
result += line;
|
||||
}
|
||||
@ -54,6 +55,7 @@ public class WindowsServiceUtil {
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
public String getStatePrefix(String qResult) {
|
||||
String statePrefix = "STATE : ";
|
||||
// get the first occurrence of "STATE", then find the
|
||||
@ -70,8 +72,9 @@ public class WindowsServiceUtil {
|
||||
}
|
||||
return statePrefix;
|
||||
}
|
||||
|
||||
public int getServiceStateInt(String serviceName) {
|
||||
// String statePrefix = "STATE : ";
|
||||
// String statePrefix = "STATE : ";
|
||||
String qResult = queryService(serviceName);
|
||||
String statePrefix = getStatePrefix(qResult);
|
||||
// check that the temp string contains the status prefix
|
||||
@ -79,7 +82,7 @@ public class WindowsServiceUtil {
|
||||
if (ix >= 0) {
|
||||
// compare status number to one of the states
|
||||
String stateStr = qResult.substring(ix + statePrefix.length(),
|
||||
ix + statePrefix.length() + 1);
|
||||
ix + statePrefix.length() + 1);
|
||||
int state = Integer.parseInt(stateStr);
|
||||
return state;
|
||||
}
|
||||
@ -113,15 +116,12 @@ public class WindowsServiceUtil {
|
||||
if (isInstalled(serviceName)) {
|
||||
if (!isStart(serviceName)) {
|
||||
int a;
|
||||
String message =
|
||||
"It appears you have an existing I2P service installed.\n";
|
||||
message +=
|
||||
"However, it is not running yet. Please start it through `services.msc`.\n";
|
||||
message +=
|
||||
"If you click \"No\", the jpackage router will be launched instead.\n";
|
||||
String message = "It appears you have an existing I2P service installed.\n";
|
||||
message += "However, it is not running yet. Please start it through `services.msc`.\n";
|
||||
message += "If you click \"No\", the jpackage router will be launched instead.\n";
|
||||
a = JOptionPane.showConfirmDialog(null, message,
|
||||
"I2P Service detected not running",
|
||||
JOptionPane.YES_NO_OPTION);
|
||||
"I2P Service detected not running",
|
||||
JOptionPane.YES_NO_OPTION);
|
||||
if (a == JOptionPane.NO_OPTION) {
|
||||
// Do nothing here, this will continue on to launch a jpackaged router
|
||||
return true;
|
||||
@ -131,8 +131,7 @@ public class WindowsServiceUtil {
|
||||
// user can start the service themselves. OR maybe we ask for
|
||||
// elevation here? May need to refactor Elevator and Shell32X to
|
||||
// achieve it though
|
||||
ProcessBuilder pb =
|
||||
new ProcessBuilder("C:\\Windows\\System32\\services.msc");
|
||||
ProcessBuilder pb = new ProcessBuilder("C:\\Windows\\System32\\services.msc");
|
||||
try {
|
||||
Process p = pb.start();
|
||||
int exitCode = p.waitFor();
|
||||
@ -145,112 +144,38 @@ public class WindowsServiceUtil {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return isStart("i2p");
|
||||
return isStart(serviceName);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
public String ServiceUpdaterString() {
|
||||
return "http://tc73n4kivdroccekirco7rhgxdg5f3cjvbaapabupeyzrqwv5guq.b32.i2p/news.su3";
|
||||
}
|
||||
public String ServiceBackupUpdaterString() {
|
||||
return "http://dn3tvalnjz432qkqsvpfdqrwpqkw3ye4n4i2uyfr4jexvo3sp5ka.b32.i2p/news.su3";
|
||||
}
|
||||
public String ServiceStaticUpdaterString() {
|
||||
return "http://echelon.i2p/i2p/i2pupdate.sud,http://stats.i2p/i2p/i2pupdate.sud";
|
||||
}
|
||||
|
||||
public String getProgramFilesInstall() {
|
||||
String programFiles = System.getenv("PROGRAMFILES");
|
||||
if (programFiles != null) {
|
||||
File programFilesI2P = new File(programFiles, "i2p/i2p.exe");
|
||||
if (programFilesI2P.exists())
|
||||
return programFilesI2P.getAbsolutePath();
|
||||
}
|
||||
String programFiles86 = System.getenv("PROGRAMFILES86");
|
||||
if (programFiles86 != null) {
|
||||
File programFiles86I2P = new File(programFiles86, "i2p/i2p.exe");
|
||||
if (programFiles86I2P.exists())
|
||||
return programFiles86I2P.getAbsolutePath();
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public boolean checkProgramFilesInstall() {
|
||||
String programFiles = System.getenv("PROGRAMFILES");
|
||||
if (programFiles != null) {
|
||||
File programFilesI2P = new File(programFiles, "i2p/i2p.exe");
|
||||
if (programFilesI2P.exists())
|
||||
return true;
|
||||
}
|
||||
String programFiles86 = System.getenv("PROGRAMFILES86");
|
||||
if (programFiles86 != null) {
|
||||
File programFiles86I2P = new File(programFiles86, "i2p/i2p.exe");
|
||||
if (programFiles86I2P.exists())
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public boolean promptUserInstallStartIfAvailable() {
|
||||
if (osName() != "windows") {
|
||||
return true;
|
||||
}
|
||||
if (checkProgramFilesInstall()) {
|
||||
int a;
|
||||
String message =
|
||||
"It appears you have an existing, unbundled I2P rotuer installed.\n";
|
||||
message +=
|
||||
"However, it is not running yet. Please start it using the shortcut on the desktop.\n";
|
||||
message +=
|
||||
"If you click \"No\", the Easy-Install router will be launched instead.\n";
|
||||
a = JOptionPane.showConfirmDialog(null, message,
|
||||
"I2P Service detected not running",
|
||||
JOptionPane.YES_NO_OPTION);
|
||||
if (a == JOptionPane.NO_OPTION) {
|
||||
// Do nothing here, this will continue on to launch a jpackaged router
|
||||
return true;
|
||||
} else {
|
||||
try {
|
||||
String pfi = getProgramFilesInstall();
|
||||
if (pfi != null)
|
||||
Runtime.getRuntime().exec(new String[] {pfi});
|
||||
} catch (IOException e) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
public String getServiceState(String serviceName) {
|
||||
String stateString = "uninstalled";
|
||||
int state = getServiceStateInt(serviceName);
|
||||
switch (state) {
|
||||
case (1): // service stopped
|
||||
stateString = "stopped";
|
||||
break;
|
||||
case (2): // service starting
|
||||
stateString = "starting";
|
||||
break;
|
||||
case (3): // service stopping
|
||||
stateString = "stopping";
|
||||
break;
|
||||
case (4): // service started
|
||||
stateString = "started";
|
||||
break;
|
||||
case (5): // service resuming from pause
|
||||
stateString = "resuming";
|
||||
break;
|
||||
case (6): // service pausing
|
||||
stateString = "pausing";
|
||||
break;
|
||||
case (7): // service paused
|
||||
stateString = "paused";
|
||||
break;
|
||||
case (1): // service stopped
|
||||
stateString = "stopped";
|
||||
break;
|
||||
case (2): // service starting
|
||||
stateString = "starting";
|
||||
break;
|
||||
case (3): // service stopping
|
||||
stateString = "stopping";
|
||||
break;
|
||||
case (4): // service started
|
||||
stateString = "started";
|
||||
break;
|
||||
case (5): // service resuming from pause
|
||||
stateString = "resuming";
|
||||
break;
|
||||
case (6): // service pausing
|
||||
stateString = "pausing";
|
||||
break;
|
||||
case (7): // service paused
|
||||
stateString = "paused";
|
||||
break;
|
||||
}
|
||||
return stateString;
|
||||
}
|
||||
@ -258,7 +183,7 @@ public class WindowsServiceUtil {
|
||||
/**
|
||||
* get the OS name(windows, mac, linux only)
|
||||
*
|
||||
* @return os name in lower-case, "windows" "mac" or "linux"
|
||||
* @return os name in lower-case, "windows" "mac" or "linux"
|
||||
*/
|
||||
protected String osName() {
|
||||
String osName = System.getProperty("os.name").toLowerCase();
|
||||
@ -268,6 +193,7 @@ public class WindowsServiceUtil {
|
||||
return "mac";
|
||||
return "linux";
|
||||
}
|
||||
|
||||
public static void main(String args[]) {
|
||||
WindowsServiceUtil wsu = new WindowsServiceUtil();
|
||||
// when querying the I2P router service installed by the IzPack installer
|
||||
|
@ -20,7 +20,7 @@ public class ZipUpdateProcess implements Runnable {
|
||||
private final Log _log;
|
||||
|
||||
ZipUpdateProcess(RouterContext ctx, Supplier<String> versionSupplier,
|
||||
Supplier<File> fileSupplier) {
|
||||
Supplier<File> fileSupplier) {
|
||||
this.ctx = ctx;
|
||||
this.versionSupplier = versionSupplier;
|
||||
this.fileSupplier = fileSupplier;
|
||||
@ -29,12 +29,11 @@ public class ZipUpdateProcess implements Runnable {
|
||||
|
||||
private File workDir() throws IOException {
|
||||
if (ctx != null) {
|
||||
File workDir =
|
||||
new File(ctx.getConfigDir().getAbsolutePath(), "i2p_update_zip");
|
||||
File workDir = new File(ctx.getConfigDir().getAbsolutePath(), "i2p_update_zip");
|
||||
if (workDir.exists()) {
|
||||
if (workDir.isFile())
|
||||
throw new IOException(workDir +
|
||||
" exists but is a file, get it out of the way");
|
||||
" exists but is a file, get it out of the way");
|
||||
return workDir;
|
||||
} else {
|
||||
workDir.mkdirs();
|
||||
|
@ -181,11 +181,13 @@ Function installerFunction
|
||||
|
||||
SetOutPath "$INSTDIR"
|
||||
createDirectory "$SMPROGRAMS\${APPNAME}"
|
||||
|
||||
CreateShortCut "$SMPROGRAMS\${APPNAME}\Browse I2P.lnk" "$INSTDIR\I2P.exe" "" "$INSTDIR\ui2pbrowser_icon.ico"
|
||||
CreateShortCut "$SMPROGRAMS\${APPNAME}\Browse I2P - Temporary Identity.lnk" "$INSTDIR\I2P.exe -private" "" "$INSTDIR\ui2pbrowser_icon.ico"
|
||||
Delete "$SMPROGRAMS\${APPNAME}\Browse I2P - Temporary Identity.lnk"
|
||||
|
||||
CreateShortCut "$DESKTOP\Browse I2P.lnk" "$INSTDIR\I2P.exe" "" "$INSTDIR\ui2pbrowser_icon.ico"
|
||||
CreateShortCut "$DESKTOP\Browse I2P - Temporary Identity.lnk" "$INSTDIR\I2P.exe -private" "" "$INSTDIR\ui2pbrowser_icon.ico"
|
||||
Delete "$DESKTOP\Browse I2P - Temporary Identity.lnk"
|
||||
|
||||
CreateShortCut "$SMPROGRAMS\${APPNAME}\Uninstall I2P Easy-Install Bundle.lnk" "$INSTDIR\uninstall-i2pbrowser.exe" "" "$INSTDIR\ui2pbrowser_icon.ico"
|
||||
SetOutPath "$INSTDIR"
|
||||
|
||||
|
@ -1,3 +1,3 @@
|
||||
!define VERSIONMAJOR 2
|
||||
!define VERSIONMINOR 4
|
||||
!define VERSIONMINOR 6
|
||||
!define VERSIONBUILD 0
|
||||
|
@ -1,8 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
TORSOCKS=$(which torsocks)
|
||||
if [ -f "${TORSOCKS}" ]; then
|
||||
. "${TORSOCKS}" on
|
||||
if [ -z "$NO_TORSOCKS" ]; then
|
||||
TORSOCKS=$(which torsocks)
|
||||
if [ -f "${TORSOCKS}" ]; then
|
||||
. "${TORSOCKS}" on
|
||||
fi
|
||||
fi
|
||||
|
||||
version="$(curl -s https://aus1.torproject.org/torbrowser/update_3/release/downloads.json | jq -r ".version")"
|
||||
|
@ -18,21 +18,11 @@ if [ ! -f ./tor.keyring ]; then
|
||||
fi
|
||||
|
||||
if [ ! -f "tor-browser-linux64-${version}_${locale}.exe" ]; then
|
||||
wget -cv "https://www.torproject.org/dist/torbrowser/${version}/torbrowser-install-win64-${version}_${locale}.exe"
|
||||
wget -cv "https://www.torproject.org/dist/torbrowser/${version}/torbrowser-install-win64-${version}_${locale}.exe.asc"
|
||||
wget -cv "https://dist.torproject.org/torbrowser/${version}/tor-browser-windows-x86_64-portable-${version}.exe"
|
||||
wget -cv "https://dist.torproject.org/torbrowser/${version}/tor-browser-windows-x86_64-portable-${version}.exe.asc"
|
||||
fi
|
||||
|
||||
gpgv --keyring ./tor.keyring "torbrowser-install-win64-${version}_${locale}.exe.asc" "torbrowser-install-win64-${version}_${locale}.exe"
|
||||
gpgv --keyring ./tor.keyring "tor-browser-windows-x86_64-portable-${version}.exe.asc" "tor-browser-windows-x86_64-portable-${version}.exe"
|
||||
|
||||
#tar xvJf "torbrowser-install-win64-${version}_${locale}.exe"
|
||||
#for n in `seq 1 2000`; do echo $n; dd ibs=256 if="torbrowser-install-win64-${version}_${locale}.exe" count=2 skip=$n | file - ; done 2>/dev/null |less
|
||||
#zip -FF "torbrowser-install-win64-${version}_${locale}.exe" --out extracted.zip
|
||||
WINE=$(which wine)
|
||||
if [ -z "$WINE" ]; then
|
||||
"./torbrowser-install-win64-${version}_${locale}.exe" /S #/D .
|
||||
cp -vr "$HOME/Desktop/Tor Browser/" "Tor Browser"
|
||||
else
|
||||
export WINEPREFIX=$(pwd)/../tmp
|
||||
$WINE "torbrowser-install-win64-${version}_${locale}.exe" /S #/D .
|
||||
cp -vr "$WINEPREFIX/drive_c/users/idk/Desktop/Tor Browser/" "Tor Browser"
|
||||
fi
|
||||
7z x "tor-browser-windows-x86_64-portable-${version}.exe" -o"Tor Browser"
|
||||
#7z --help
|
Reference in New Issue
Block a user