Compare commits
42 Commits
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 |
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
|
19
.github/workflows/ant.yml
vendored
19
.github/workflows/ant.yml
vendored
@ -1,7 +1,14 @@
|
|||||||
|
|
||||||
name: Java CI
|
name: Java CI
|
||||||
|
|
||||||
on: [push]
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
- master
|
||||||
|
schedule:
|
||||||
|
- cron: '0 0 * * *' # Every day at midnight UTC
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
@ -27,6 +34,16 @@ jobs:
|
|||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
- name: build with script
|
- name: build with script
|
||||||
run: bash -c "./buildscripts/unsigned.sh; ls *.exe"
|
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
|
- name: Upload I2P-Easy-Install-Bundle-unsigned.exe
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
|
22
.github/workflows/github-sync.yml
vendored
22
.github/workflows/github-sync.yml
vendored
@ -1,22 +0,0 @@
|
|||||||
# File: .github/workflows/github-sync.yml for i2p-hackers/i2p.firefox
|
|
||||||
on:
|
|
||||||
schedule:
|
|
||||||
- cron: "*/5 * * * *"
|
|
||||||
workflow_dispatch:
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
repo-sync:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
with:
|
|
||||||
persist-credentials: false
|
|
||||||
- name: repo-sync
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
uses: repo-sync/github-sync@v2
|
|
||||||
with:
|
|
||||||
source_repo: "https://i2pgit.org/i2p-hackers/i2p.firefox"
|
|
||||||
source_branch: "master"
|
|
||||||
destination_branch: "master"
|
|
||||||
github_token: ${{ secrets.PAT }}
|
|
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"
|
11
.github/workflows/release-nightly.yml
vendored
11
.github/workflows/release-nightly.yml
vendored
@ -1,6 +1,13 @@
|
|||||||
name: Nightly Release
|
name: Nightly 22 Release
|
||||||
|
|
||||||
on: [push]
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
- master
|
||||||
|
schedule:
|
||||||
|
- cron: '0 0 * * *' # Every day at midnight UTC
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
@ -1,7 +1,5 @@
|
|||||||
name: Release
|
name: Release
|
||||||
|
|
||||||
#on: [push]
|
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
# Sequence of patterns matched against refs/tags
|
# Sequence of patterns matched against refs/tags
|
||||||
|
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: {}
|
@ -178,8 +178,7 @@ Doing a Release
|
|||||||
|
|
||||||
Once you have the installer `.exe` file produced by NSIS, you're almost ready to
|
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
|
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
|
Certificate which Windows will recognize. Standard Windows signing tools are used.
|
||||||
bundle is Zlatinb. Standard Windows signing tools are used.
|
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
./release.sh
|
./release.sh
|
||||||
|
@ -55,7 +55,12 @@ echo "preparing to invoke jpackage for I2P version $I2P_VERSION"
|
|||||||
rm -rf I2P
|
rm -rf I2P
|
||||||
|
|
||||||
if [ ! -d "I2P" ]; then
|
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 \
|
--verbose \
|
||||||
--java-options "-Xmx512m" \
|
--java-options "-Xmx512m" \
|
||||||
--java-options "--add-opens java.base/java.lang=ALL-UNNAMED" \
|
--java-options "--add-opens java.base/java.lang=ALL-UNNAMED" \
|
||||||
@ -81,3 +86,4 @@ cp "$SCRIPT_DIR/../i2p.i2p.jpackage-build/LICENSE.txt" license/I2P.txt
|
|||||||
mkdir -p "$SCRIPT_DIR"/build/I2P
|
mkdir -p "$SCRIPT_DIR"/build/I2P
|
||||||
cp -rv "$SCRIPT_DIR"/I2P/* "$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
|
. ./config.sh
|
||||||
. ./i2pversion
|
. ./i2pversion
|
||||||
./buildscripts/build.sh
|
./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 \
|
--verbose \
|
||||||
--java-options "-Xmx512m" \
|
--java-options "-Xmx512m" \
|
||||||
--java-options "--add-opens java.base/java.lang=ALL-UNNAMED" \
|
--java-options "--add-opens java.base/java.lang=ALL-UNNAMED" \
|
||||||
|
@ -53,7 +53,7 @@ if [ ! -d "$SCRIPT_DIR/../i2p.i2p.jpackage-build/" ]; then
|
|||||||
git clone --depth=1 -b "$VERSION" -l "$SCRIPT_DIR/../i2p.i2p/" "$SCRIPT_DIR/../i2p.i2p.jpackage-build/"
|
git clone --depth=1 -b "$VERSION" -l "$SCRIPT_DIR/../i2p.i2p/" "$SCRIPT_DIR/../i2p.i2p.jpackage-build/"
|
||||||
else
|
else
|
||||||
echo cloning from remote i2p.i2p repository
|
echo cloning from remote i2p.i2p repository
|
||||||
git clone --depth=1 -b "$VERSION" https://i2pgit.org/i2p-hackers/i2p.i2p "$SCRIPT_DIR/../i2p.i2p.jpackage-build/"
|
git clone --depth=1 -b "$VERSION" https://i2pgit.org/I2P_Developers/i2p.i2p "$SCRIPT_DIR/../i2p.i2p.jpackage-build/"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
cd "$SCRIPT_DIR/../i2p.i2p.jpackage-build/"
|
cd "$SCRIPT_DIR/../i2p.i2p.jpackage-build/"
|
||||||
@ -65,7 +65,6 @@ if [ -z "$EXTRA" ]; then
|
|||||||
fi
|
fi
|
||||||
if [ "$VERSION" = master ]; then
|
if [ "$VERSION" = master ]; then
|
||||||
VERSIONDATE="$(date +%m%d)"
|
VERSIONDATE="$(date +%m%d)"
|
||||||
export TAG_VERSION="$VERSIONMAJOR.$VERSIONMINOR.$VERSIONBUILD"
|
|
||||||
else
|
else
|
||||||
export TAG_VERSION="$VERSION"
|
export TAG_VERSION="$VERSION"
|
||||||
fi
|
fi
|
||||||
|
@ -9,7 +9,12 @@ cd "$SCRIPT_DIR" || exit 1
|
|||||||
. ./i2pversion
|
. ./i2pversion
|
||||||
|
|
||||||
"$SCRIPT_DIR"/buildscripts/build.sh
|
"$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 \
|
--verbose \
|
||||||
--java-options "-Xmx512m" \
|
--java-options "-Xmx512m" \
|
||||||
--java-options "--add-opens java.base/java.lang=ALL-UNNAMED" \
|
--java-options "--add-opens java.base/java.lang=ALL-UNNAMED" \
|
||||||
|
@ -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"
|
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_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"
|
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.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"
|
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_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"
|
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 -t "$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"
|
||||||
|
@ -41,8 +41,8 @@ echo "~~~~~~~~~~"
|
|||||||
MAGNET=$(transmission-show -m "i2pwinupdate.su3.torrent" 2>&1 3>&1 | tail -n 1)
|
MAGNET=$(transmission-show -m "i2pwinupdate.su3.torrent" 2>&1 3>&1 | tail -n 1)
|
||||||
echo "$MAGNET"
|
echo "$MAGNET"
|
||||||
ZIPCHECKSUM=$(sha256sum "i2pwinupdate.su3")
|
ZIPCHECKSUM=$(sha256sum "i2pwinupdate.su3")
|
||||||
echo github-release upload -R -u "$GITHUB_USERNAME" -r "i2p.firefox" -f "i2pwinupdate.su3" -l "$ZIPCHECKSUM" -t "i2p-firefox-$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 -R -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")
|
ZIPCHECKSUM=$(sha256sum "i2pwinupdate.su3.torrent")
|
||||||
echo github-release upload -R -u "$GITHUB_USERNAME" -r "i2p.firefox" -f "i2pwinupdate.su3.torrent" -l "$ZIPCHECKSUM" -t "i2p-firefox-$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 -R -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"
|
@ -1,3 +1,7 @@
|
|||||||
|
2025-06-05 idk
|
||||||
|
* Remove Chromium support completely. Much smaller binary now.
|
||||||
|
* Version 2.9.0
|
||||||
|
|
||||||
2023-01-23 idk
|
2023-01-23 idk
|
||||||
* Move build scripts to their own directory and make them use correct paths when moved
|
* Move build scripts to their own directory and make them use correct paths when moved
|
||||||
* Add EXTRA to router when generating embedded router jars.
|
* Add EXTRA to router when generating embedded router jars.
|
||||||
|
@ -1,6 +1,3 @@
|
|||||||
# I2P Easy-Install Nightly Build
|
# I2P Easy-Install 2.8.0
|
||||||
|
|
||||||
This is a pre-release of the I2P Easy-Install Bundle for Windows.
|
This release updates the embedded I2P router to I2P 2.8.0.
|
||||||
It is built from the `master` branch of the `i2p.i2p` and `i2p.firefox` repositories.
|
|
||||||
It is a nightly build and may contain bugs.
|
|
||||||
Use it at your own risk.
|
|
||||||
|
30
i2pversion
30
i2pversion
@ -14,22 +14,26 @@ if [ -z "$VERSIONBUILD" ]; then
|
|||||||
VERSIONBUILD=$(echo "$GITHUB_TAG" | cut -d . -f 3)
|
VERSIONBUILD=$(echo "$GITHUB_TAG" | cut -d . -f 3)
|
||||||
fi
|
fi
|
||||||
if [ -z "$VERSIONMAJOR" ]; then
|
if [ -z "$VERSIONMAJOR" ]; then
|
||||||
VERSIONMAJOR=2
|
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
|
fi
|
||||||
if [ -z "$VERSIONMINOR" ]; then
|
|
||||||
VERSIONMINOR=5
|
|
||||||
fi
|
|
||||||
if [ -z "$VERSIONBUILD" ]; then
|
|
||||||
VERSIONBUILD=2
|
|
||||||
fi
|
|
||||||
I2P_VERSION="$VERSIONMAJOR.$VERSIONMINOR.$VERSIONBUILD"
|
|
||||||
export I2P_VERSION="$VERSIONMAJOR.$VERSIONMINOR.$VERSIONBUILD"
|
|
||||||
# Comment this out to build from an alternate branch or
|
# Comment this out to build from an alternate branch or
|
||||||
# the tip of the master branch.
|
# the tip of the master branch.
|
||||||
#VERSION=i2p-2.4.0
|
#VERSION=i2p-2.4.0
|
||||||
#export VERSION=i2p-2.4.0
|
#export VERSION=i2p-2.4.0
|
||||||
VERSION=master
|
|
||||||
export VERSION=master
|
|
||||||
|
|
||||||
I2PFIREFOX_VERSION=$I2P_VERSION
|
echo "I2P version $I2P_VERSION"
|
||||||
export I2PFIREFOX_VERSION=$I2P_VERSION
|
echo "Tag $VERSION"
|
||||||
|
echo "I2P Firefox Profile version $I2PFIREFOX_VERSION"
|
||||||
|
@ -80,29 +80,4 @@ public class I2PAppUtil extends WindowsAppUtil {
|
|||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* 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) {
|
|
||||||
// get the name of the aih directory itself, which will be the default
|
|
||||||
// name of the executable as well
|
|
||||||
String baseName = "I2P";
|
|
||||||
switch (osName()) {
|
|
||||||
case "windows":
|
|
||||||
return baseName + ".exe";
|
|
||||||
case "mac":
|
|
||||||
case "linux":
|
|
||||||
return "./bin/" + baseName;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
@ -84,7 +84,7 @@ public class WindowsAppUtil extends WindowsServiceUtil {
|
|||||||
* information, then getting the binary path on a per-platform basis. The path
|
* information, then getting the binary path on a per-platform basis. The path
|
||||||
* returned will be relative to the root.
|
* returned will be relative to the root.
|
||||||
*
|
*
|
||||||
* @return the app-image root
|
* @return the app-image root + the path to the executable
|
||||||
*/
|
*/
|
||||||
protected String appImageExe() {
|
protected String appImageExe() {
|
||||||
File aih = appImageHome();
|
File aih = appImageHome();
|
||||||
@ -122,7 +122,6 @@ public class WindowsAppUtil extends WindowsServiceUtil {
|
|||||||
File winConfigDir = new File(aih, "config");
|
File winConfigDir = new File(aih, "config");
|
||||||
if (winConfigDir != null) {
|
if (winConfigDir != null) {
|
||||||
if (winConfigDir.exists()) {
|
if (winConfigDir.exists()) {
|
||||||
|
|
||||||
return winConfigDir;
|
return winConfigDir;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -131,6 +130,14 @@ public class WindowsAppUtil extends WindowsServiceUtil {
|
|||||||
File linConfigDir = new File(aih, "lib/config");
|
File linConfigDir = new File(aih, "lib/config");
|
||||||
if (linConfigDir != null) {
|
if (linConfigDir != null) {
|
||||||
if (linConfigDir.exists()) {
|
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 linConfigDir;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
!define VERSIONMAJOR 2
|
!define VERSIONMAJOR 2
|
||||||
!define VERSIONMINOR 5
|
!define VERSIONMINOR 6
|
||||||
!define VERSIONBUILD 2
|
!define VERSIONBUILD 0
|
||||||
|
Reference in New Issue
Block a user