Compare commits
33 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
cef19a24e0 | ||
|
|
0c15a46cea | ||
|
|
190a5741a8 | ||
|
|
b6fa3fae7a | ||
|
|
6f5ee3f0f4 | ||
|
|
184b5d9e0f | ||
|
|
8b1820bd81 | ||
|
|
835966aecb | ||
|
|
b0aa8a4989 | ||
|
|
a366a31dce | ||
|
|
a0f638c2de | ||
|
|
e216b67105 | ||
|
|
379264cfaf | ||
|
|
2270c2aadb | ||
|
|
2cf58e2460 | ||
|
|
6faaab1f44 | ||
|
|
3fc68f928b | ||
|
|
3c404cd15e | ||
|
|
2394ddf378 | ||
|
|
6594b1af99 | ||
|
|
3d8cddec4f | ||
|
|
e94d008335 | ||
|
|
068a8ef1a6 | ||
|
|
72b3f3910c | ||
|
|
11a8f2cb08 | ||
|
|
0183222ac9 | ||
|
|
0fb3193af2 | ||
|
|
15292c0aa4 | ||
|
|
fa0cfe6226 | ||
|
|
9e176175d3 | ||
|
|
bb58a3ce1f | ||
|
|
8de96b7df8 | ||
|
|
78148ee37f |
2
.gitignore
vendored
2
.gitignore
vendored
@@ -19,3 +19,5 @@ i2pversion_override
|
|||||||
cmd
|
cmd
|
||||||
*.so
|
*.so
|
||||||
*.jar
|
*.jar
|
||||||
|
*.zip
|
||||||
|
*.tar.gz
|
||||||
26
LICENSE.html
26
LICENSE.html
@@ -17,6 +17,11 @@
|
|||||||
<div id="shownav">
|
<div id="shownav">
|
||||||
<div id="hidenav">
|
<div id="hidenav">
|
||||||
<ul>
|
<ul>
|
||||||
|
<li>
|
||||||
|
<a href="..">
|
||||||
|
Up one level ^
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a href="index.html">
|
<a href="index.html">
|
||||||
index
|
index
|
||||||
@@ -40,12 +45,15 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<a id="returnhome" href="/">
|
||||||
|
/
|
||||||
|
</a>
|
||||||
<p>
|
<p>
|
||||||
Copyright 2018
|
Copyright 2018
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
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
|
this software and associated documentation files (the “Software”), to deal in
|
||||||
the Software without restriction, including without limitation the rights to
|
the Software without restriction, including without limitation the rights to
|
||||||
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
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,
|
the Software, and to permit persons to whom the Software is furnished to do so,
|
||||||
@@ -56,13 +64,27 @@
|
|||||||
copies or substantial portions of the Software.
|
copies or substantial portions of the Software.
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
||||||
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
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
|
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
|
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.
|
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
</p>
|
</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>
|
<div>
|
||||||
<a href="#show">
|
<a href="#show">
|
||||||
Show license
|
Show license
|
||||||
|
|||||||
8
Makefile
8
Makefile
@@ -32,7 +32,7 @@ i2pbrowser-jpackage.nsi:
|
|||||||
jpackage: version I2P build/I2P/config all
|
jpackage: version I2P build/I2P/config all
|
||||||
|
|
||||||
help: version
|
help: version
|
||||||
@echo "I2P-Profile-Installer-$(PROFILE_VERSION)"
|
@echo "I2P-Easy-Install-Bundle-$(PROFILE_VERSION)"
|
||||||
@echo "$(SIGNER)"
|
@echo "$(SIGNER)"
|
||||||
@echo "$(I2P_VERSION)"
|
@echo "$(I2P_VERSION)"
|
||||||
@echo "$(MAJOR).$(MINOR).$(BUILD)"
|
@echo "$(MAJOR).$(MINOR).$(BUILD)"
|
||||||
@@ -60,7 +60,7 @@ prep: #launchers build/licenses profile.tgz app-profile.tgz profile build/I2P bu
|
|||||||
cp src/icons/*.ico build
|
cp src/icons/*.ico build
|
||||||
|
|
||||||
install.exe: #build/licenses
|
install.exe: #build/licenses
|
||||||
cd build && makensis i2pbrowser-installer.nsi && cp I2P-Profile-Installer-*.exe ../ && echo "built windows installer"
|
cd build && makensis i2pbrowser-installer.nsi && cp I2P-Easy-Install-Bundle-*.exe ../ && echo "built windows installer"
|
||||||
|
|
||||||
export RES_DIR="../i2p.i2p.jpackage-build/installer/resources"
|
export RES_DIR="../i2p.i2p.jpackage-build/installer/resources"
|
||||||
export PKG_DIR="../i2p.i2p.jpackage-build/pkg-temp"
|
export PKG_DIR="../i2p.i2p.jpackage-build/pkg-temp"
|
||||||
@@ -122,7 +122,7 @@ build/licenses: build
|
|||||||
unix2dos build/licenses/LICENSE.txt
|
unix2dos build/licenses/LICENSE.txt
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -rf build app-profile-*.tgz profile-*.tgz I2P-Profile-Installer-*.exe *.deb src/I2P/config *.su3 .version *.url make.log
|
rm -rf build app-profile-*.tgz profile-*.tgz I2P-Easy-Install-Bundle-*.exe *.deb src/I2P/config *.su3 .version *.url make.log
|
||||||
git clean -fdx src build
|
git clean -fdx src build
|
||||||
|
|
||||||
build:
|
build:
|
||||||
@@ -159,7 +159,7 @@ BLANK=`awk '! NF { print NR; exit }' changelog.txt`
|
|||||||
I2P.zip: I2P-jpackage-windows-$(I2P_VERSION).zip
|
I2P.zip: I2P-jpackage-windows-$(I2P_VERSION).zip
|
||||||
|
|
||||||
I2P-jpackage-windows-$(I2P_VERSION).zip:
|
I2P-jpackage-windows-$(I2P_VERSION).zip:
|
||||||
zip I2P-jpackage-windows-$(I2P_VERSION).zip -r build/I2P
|
sh -c 'powershell Compress-Archive I2P I2P-jpackage-windows-$(I2P_VERSION).zip || zip I2P-jpackage-windows-$(I2P_VERSION).zip -r I2P'
|
||||||
|
|
||||||
changelog:
|
changelog:
|
||||||
head -n "$(BLANK)" changelog.txt
|
head -n "$(BLANK)" changelog.txt
|
||||||
|
|||||||
229
README.md
229
README.md
@@ -13,7 +13,7 @@ Features:
|
|||||||
Build Dependencies:
|
Build Dependencies:
|
||||||
-------------------
|
-------------------
|
||||||
|
|
||||||
To build this, you will need the following software packages (all available in Debian) :
|
To build this, you will need the following software packages (all available in Debian and Ubuntu, see WSL section below) :
|
||||||
|
|
||||||
- make
|
- make
|
||||||
- nsis
|
- nsis
|
||||||
@@ -30,89 +30,26 @@ and copy the content of `Plugins` to `/usr/share/nsis/Plugins`.
|
|||||||
cp -rv Plugins/* /usr/share/nsis/Plugins/
|
cp -rv Plugins/* /usr/share/nsis/Plugins/
|
||||||
```
|
```
|
||||||
|
|
||||||
To build a Debian package, you'll also need
|
|
||||||
|
|
||||||
- checkinstall
|
|
||||||
|
|
||||||
Preparation
|
|
||||||
-----------
|
|
||||||
|
|
||||||
Before you build, run the targets
|
|
||||||
|
|
||||||
make clean-extensions
|
|
||||||
make extensions
|
|
||||||
|
|
||||||
to update the extensions to point to their latest versions.
|
|
||||||
|
|
||||||
Windows Build
|
|
||||||
-------------
|
|
||||||
|
|
||||||
After installing the dependencies and completing the preparations,
|
|
||||||
just run `make`. This will produce three files:
|
|
||||||
|
|
||||||
profile.tgz - the firefox profile, plus a shell script which will
|
|
||||||
launch it if Firefox is found in the $PATH on Unix-Like operating
|
|
||||||
systems.
|
|
||||||
app-profile.tgz - the Firefox profile plus a launcher shell script,
|
|
||||||
which will launch a *modified* Firefox without a URL bar as a router
|
|
||||||
console wrapper.
|
|
||||||
install.exe - the windows installer, which sets up shortcuts to
|
|
||||||
launch Firefox on Windows.
|
|
||||||
|
|
||||||
When generating a Windows build it's important to make sure that the
|
|
||||||
licenses for all the bundled softare are included. This should happen
|
|
||||||
automatically. When bundling software, describe the terms and where
|
|
||||||
they are applied in the `LICENSE.index`, then add the full license
|
|
||||||
to the `licenses` directory. Then, add the full license to the `cat`
|
|
||||||
command in the `build/licenses` make target. The build/licenses
|
|
||||||
target is run automatically during the build process.
|
|
||||||
|
|
||||||
Unix Support
|
|
||||||
------------
|
|
||||||
|
|
||||||
It is possible to use these profiles on Linux and possibly other
|
|
||||||
Unixes, if Firefox is already installed on the system. It can be
|
|
||||||
installed system-wide using the `make install` target. Running
|
|
||||||
`make install` requires root, and requires `make` to have been run
|
|
||||||
first. To install on Unix, system-wide, run:
|
|
||||||
|
|
||||||
make
|
|
||||||
sudo make install
|
|
||||||
|
|
||||||
To run without installing them system wide, unpack the `profile*.tgz`
|
|
||||||
to a location of your choice and run the `i2pbrowser.sh` script. This
|
|
||||||
will start a Firefox profile configured to use I2P.
|
|
||||||
|
|
||||||
tar xvf profile-0.3.tgz
|
|
||||||
cd profile
|
|
||||||
./i2pbrowser.sh
|
|
||||||
|
|
||||||
If you want to run the app-like i2pconfig browser, then follow the
|
|
||||||
same steps with app-profile*.tgz.
|
|
||||||
|
|
||||||
tar xvf app-profile-0.3.tgz
|
|
||||||
cd app-profile
|
|
||||||
./i2pconfig.sh
|
|
||||||
|
|
||||||
To generate a `deb` package, install the package `checkinstall` and run
|
|
||||||
the `make checkinstall` target after building with `make`.
|
|
||||||
|
|
||||||
make
|
|
||||||
make checkinstall
|
|
||||||
sudo apt install ./i2p-firefox*.deb
|
|
||||||
|
|
||||||
If you want to set up i2pconfig to run when you start the service
|
|
||||||
with `sudo service i2p start` then you can run the script:
|
|
||||||
|
|
||||||
/usr/local/bin/i2p-config-service-setup
|
|
||||||
|
|
||||||
Including a jpackaged I2P Router
|
Including a jpackaged I2P Router
|
||||||
--------------------------------
|
--------------------------------
|
||||||
|
|
||||||
|
**Prerequisites:** You need to have OpenJDK 14 or greater installed and configured
|
||||||
|
with your `%JAVA_HOME%` environment variable configured and `%JAVA_HOME%/bin` on
|
||||||
|
your `%PATH%`. You need to have Apache Ant installed and configured with `%ANT_HOME%`
|
||||||
|
environment variable configured and `%ANT_HOME%/bin` on your `%PATH%`. You must have
|
||||||
|
Cygwin installed. You must have `NSIS.exe` installed and `makensis` available on your
|
||||||
|
`%PATH%`. You must have Git for Windows installed. When installing git for Windows,
|
||||||
|
you should select "Checkout as is, commit as is" and leave line-endings alone.
|
||||||
|
|
||||||
|
TODO: Add links to the respective instructions for each of these.
|
||||||
|
|
||||||
|
**Note that after the dependencies are installed, this step is automated**
|
||||||
|
**with `./build.sh`.**
|
||||||
|
|
||||||
In order to include a jpackaged(dependency-free) I2P router in the Profile
|
In order to include a jpackaged(dependency-free) I2P router in the Profile
|
||||||
Bundle you will need to build the jpackaged I2P router as an "App Image" on
|
Bundle you will need to build the jpackaged I2P router as an "App Image" on
|
||||||
a Windows system and place it into a directory called `I2P` in your `i2p.firefox`
|
a Windows system and place it into a directory called `I2P` in your `i2p.firefox`
|
||||||
checkout.
|
checkout. Building without a jpackage is no longer supported.
|
||||||
|
|
||||||
Assuming a working java and jpackage environment on your Windows system, the
|
Assuming a working java and jpackage environment on your Windows system, the
|
||||||
following command should generate a suitable "App Image" in a directory
|
following command should generate a suitable "App Image" in a directory
|
||||||
@@ -130,22 +67,36 @@ necessary, then complete the regular build instructions. If a jpackaged I2P rout
|
|||||||
isn't present to use at build time, the inclusion will be skipped automatically
|
isn't present to use at build time, the inclusion will be skipped automatically
|
||||||
with a non-fatal warning.
|
with a non-fatal warning.
|
||||||
|
|
||||||
In the near future, I'll start providing a pre-built app image to ease the
|
Pre-built app-images are available from my daily releases at:
|
||||||
build process for non-Windows users.
|
|
||||||
|
|
||||||
End-to-End Windows build process using WSL
|
https://github.com/eyedeekay/i2p.plugins.firefox/releases/
|
||||||
------------------------------------------
|
|
||||||
|
|
||||||
**If you've already done this once, you can just use:** `./build.sh && wsl make`
|
Windows Build
|
||||||
**in `git bash`** to automatically build an installer.
|
-------------
|
||||||
|
|
||||||
**Prerequisites:** You need to have OpenJDK 14 or greater installed and configured
|
After installing the dependencies and completing the preparations,
|
||||||
with your `%JAVA_HOME%` environment variable configured and `%JAVA_HOME%/bin` on
|
just run `make`. This will produce the install.exe - the windows
|
||||||
your `%PATH%`. You need to have Apache Ant installed and configured with `%ANT_HOME%`
|
installer, which sets up the shortcuts to launch Firefox on Windows.
|
||||||
environment variable configured and `%ANT_HOME%/bin` on your `%PATH%`. You must have
|
Building without a jpackage is no longer supported.
|
||||||
Cygwin installed. You must have `NSIS.exe` installed and `makensis` available on your
|
|
||||||
`%PATH%`. You must have Git for Windows installed. When installing git for Windows,
|
When generating a build it's important to make sure that the
|
||||||
you should select "Checkout as is, commit as is" and leave line-endings alone.
|
licenses for all the bundled softare are included. This should happen
|
||||||
|
automatically. When bundling software, describe the terms and where
|
||||||
|
they are applied in the `LICENSE.index`, then add the full license
|
||||||
|
to the `licenses` directory. Then, add the full license to the `cat`
|
||||||
|
command in the `build/licenses` make target. The build/licenses
|
||||||
|
target is run automatically during the build process.
|
||||||
|
|
||||||
|
End-to-End Windows build process using WSL(**Recommended**)
|
||||||
|
-----------------------------------------------------------
|
||||||
|
|
||||||
|
**See `config.sh` and `i2pversion` for instructions on how to tweak**
|
||||||
|
**the build process. File an issue if you need help.**
|
||||||
|
|
||||||
|
**If you've already done this once, you can just use:** `./unsigned.sh`
|
||||||
|
**in `git bash`** to automatically build an installer. If you
|
||||||
|
are using this method, you may use the `makensis` and `make` from
|
||||||
|
Ubuntu in WSL.
|
||||||
|
|
||||||
1. [Set up Windows Subsystem for Linux per Microsoft's instructions](https://docs.microsoft.com/en-us/windows/wsl/install-win10#manual-installation-steps)
|
1. [Set up Windows Subsystem for Linux per Microsoft's instructions](https://docs.microsoft.com/en-us/windows/wsl/install-win10#manual-installation-steps)
|
||||||
2. [Install Ubuntu Focal per Microsoft's instructions](https://www.microsoft.com/store/apps/9n6svws3rx71)
|
2. [Install Ubuntu Focal per Microsoft's instructions](https://www.microsoft.com/store/apps/9n6svws3rx71)
|
||||||
@@ -172,21 +123,25 @@ you should select "Checkout as is, commit as is" and leave line-endings alone.
|
|||||||
|
|
||||||
wsl make
|
wsl make
|
||||||
|
|
||||||
End-to-End Windows build process using Cygwin
|
End-to-End Windows build process using Cygwin(More difficult than WSL for now)
|
||||||
---------------------------------------------
|
------------------------------------------------------------------------------
|
||||||
|
|
||||||
I highly recommend you look into the Chocolatey package manager, which makes it much
|
I highly recommend you look into the Chocolatey package manager, which makes it much
|
||||||
easier to configure these tools and keep them up to date.
|
easier to configure these tools and keep them up to date.
|
||||||
|
|
||||||
**Prerequisites:** You need to have OpenJDK 14 or greater installed and configured
|
**Prerequisites:** In addition to the other prerequisites, you will need to to have
|
||||||
with your `%JAVA_HOME%` environment variable configured and `%JAVA_HOME%/bin` on
|
`make` installed with `cygwin`. If you are using this method, you cannot use the
|
||||||
your `%PATH%`. You need to have Apache Ant installed and configured with `%ANT_HOME%`
|
automated build scripts without a hack. You will need to create a file called `wsl`
|
||||||
environment variable configured and `%ANT_HOME%/bin` on your `%PATH%`. You must have
|
in a place that is in the path used by `git-bash.exe` sessions, with the content:
|
||||||
WSL and git bash installed. You must have `NSIS.exe` installed and `makensis` available on your
|
|
||||||
`%PATH%`. You must have Git for Windows installed. When installing git for Windows, you should
|
|
||||||
select "Checkout as is, commit as is" and leave line-endings alone.
|
|
||||||
|
|
||||||
TODO: Add links to the respective instructions for each of these.
|
```
|
||||||
|
#! /usr/bin/env bash
|
||||||
|
$@
|
||||||
|
```
|
||||||
|
|
||||||
|
For our purposes, as long as everything else is set up and you're using git bash,
|
||||||
|
that is enough to make the scripts compatible with `cygwin`. Cygwin builds without
|
||||||
|
git bash are not likely to work.
|
||||||
|
|
||||||
1. Run the Cygwin `setup-$arch.exe` for your platform to set up new packages. Select the `make` `jq` `dos2unix` and `curl` packages.
|
1. Run the Cygwin `setup-$arch.exe` for your platform to set up new packages. Select the `make` `jq` `dos2unix` and `curl` packages.
|
||||||
2. Open a cygwin terminal.
|
2. Open a cygwin terminal.
|
||||||
@@ -218,16 +173,11 @@ Certificate which Windows will recognize. The current signer of the Windows
|
|||||||
bundle is Zlatinb. Standard Windows signing tools are used.
|
bundle is Zlatinb. Standard Windows signing tools are used.
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
# Release Copypasta
|
./release.sh
|
||||||
./clean.sh
|
|
||||||
wsl make distclean
|
|
||||||
wsl make clean-extensions
|
|
||||||
wsl make extensions
|
|
||||||
./build.sh
|
|
||||||
wsl make
|
|
||||||
./sign.sh
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
produces the binary.
|
||||||
|
|
||||||
Building a signed update file
|
Building a signed update file
|
||||||
-----------------------------
|
-----------------------------
|
||||||
|
|
||||||
@@ -243,21 +193,35 @@ signed update file.
|
|||||||
Docker Support
|
Docker Support
|
||||||
--------------
|
--------------
|
||||||
|
|
||||||
You can use a Docker container to install this browser profile as well. In order
|
**MOVED, DEPRECATION NOTICE:** Most of this functionality has been moved
|
||||||
to do this, you can run the commands:
|
to http://git.idk.i2p/idk/i2p.plugins.native which is more stable,
|
||||||
|
easier to build and use, and easier to incorporate into other
|
||||||
|
projects.
|
||||||
|
|
||||||
xhost + local:docker
|
- https://git.idk.i2p/idk/i2p.plugins.firefox/-/blob/main/docker.sh
|
||||||
docker run -it --rm \
|
|
||||||
--net=host \
|
|
||||||
-e DISPLAY=unix$(DISPLAY) \
|
|
||||||
-v /tmp/.X11-unix:/tmp/.X11-unix \
|
|
||||||
geti2p/i2p.firefox firefox --profile /src/build/profile
|
|
||||||
|
|
||||||
To build and run the container locally, clone this repository and run the
|
Unix Support
|
||||||
|
------------
|
||||||
|
|
||||||
make run
|
**MOVED. DEPRECATION NOTICE:** Most of this functionality has been moved
|
||||||
|
to http://git.idk.i2p/idk/i2p.plugins.native 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:
|
||||||
|
|
||||||
target.
|
- 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.**
|
||||||
|
|
||||||
Issues
|
Issues
|
||||||
------
|
------
|
||||||
@@ -269,11 +233,28 @@ pertaining to the plugins may be reported to their upstream
|
|||||||
maintainers if it's determined that our configuration is not at
|
maintainers if it's determined that our configuration is not at
|
||||||
fault.
|
fault.
|
||||||
|
|
||||||
NoScript is developed on Github by `hackademix` and the community:
|
## Credits
|
||||||
- https://github.com/hackademix/noscript
|
|
||||||
|
|
||||||
HTTPS Everywhere is developed on Github by the EFF:
|
This profile manager makes use of a set of browser extensions which are largely the work of others.
|
||||||
- https://github.com/EFForg/https-everywhere
|
It makes use of dependencies that are the work of others. In many ways, it's merely an elaborate
|
||||||
|
configuration tool. A smart one, but a configuration tool nonetheless. Many thanks to the following
|
||||||
|
projects, developers, and communities:
|
||||||
|
|
||||||
|
### Firefox and Chrome Extensions
|
||||||
|
|
||||||
|
- [NoScript - Giorgio Maone and others](https://noscript.net)
|
||||||
|
- [HTTPS Everywhere - Electronic Frontier Foundation](https://www.eff.org/https-everywhere)
|
||||||
|
- [uBlock Origin - Raymond Gorhill and others](https://ublockorigin.com/)
|
||||||
|
- [LocalCDN - nobody and others](https://www.localcdn.org/)
|
||||||
|
- [jShelter - Libor Polčák and others](https://jshelter.org/)
|
||||||
|
|
||||||
|
### Firefox Configuration Modifiations
|
||||||
|
|
||||||
|
- [Arkenfox - Thorin Oakenpants and Others](https://github.com/arkenfox/user.js/)
|
||||||
|
|
||||||
|
You can find the license files for each of the these projects in the `src/i2p.firefox.*.profile/extensions/*`
|
||||||
|
directory for Firefox, and the `src/i2p.chromium.*.profile/extensions/*.js/*` directories for Chromium within
|
||||||
|
the [`i2p.plugins.firefox`](https://i2pgit.org/idk/i2p.plugins.firefox) project.
|
||||||
|
|
||||||
I2P in Private Browsing is developed on Gitlab and Github by idk and the community:
|
I2P in Private Browsing is developed on Gitlab and Github by idk and the community:
|
||||||
- https://i2pgit.org/idk/I2P-in-Private-Browsing-Mode-Firefox
|
- https://i2pgit.org/idk/I2P-in-Private-Browsing-Mode-Firefox
|
||||||
|
|||||||
24
UPDATES.html
24
UPDATES.html
@@ -17,6 +17,11 @@
|
|||||||
<div id="shownav">
|
<div id="shownav">
|
||||||
<div id="hidenav">
|
<div id="hidenav">
|
||||||
<ul>
|
<ul>
|
||||||
|
<li>
|
||||||
|
<a href="..">
|
||||||
|
Up one level ^
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a href="index.html">
|
<a href="index.html">
|
||||||
index
|
index
|
||||||
@@ -40,6 +45,9 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<a id="returnhome" href="/">
|
||||||
|
/
|
||||||
|
</a>
|
||||||
<h1>
|
<h1>
|
||||||
Setting up an Update Server for an I2P Bundle
|
Setting up an Update Server for an I2P Bundle
|
||||||
</h1>
|
</h1>
|
||||||
@@ -53,7 +61,7 @@
|
|||||||
<p>
|
<p>
|
||||||
This process depends on my ability to push releases to github. If you are
|
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,
|
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.
|
you’ll need to do it the complete way.
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
For as long as I am building updates, you will be able to mirror the jpackaged
|
For as long as I am building updates, you will be able to mirror the jpackaged
|
||||||
@@ -100,6 +108,20 @@
|
|||||||
TODO: describe how to do it with less of the awesome fancy stuff I put together
|
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.
|
to make it easier on myself to keep an update server going.
|
||||||
</p>
|
</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>
|
<div>
|
||||||
<a href="#show">
|
<a href="#show">
|
||||||
Show license
|
Show license
|
||||||
|
|||||||
@@ -1,3 +1,12 @@
|
|||||||
|
2022-09-16 idk
|
||||||
|
* remove unstable/deprecated functionality. Better solutions have been developed and instructions
|
||||||
|
on how to use them are provided.
|
||||||
|
* update build documentation.
|
||||||
|
|
||||||
|
2022-09-13 idk
|
||||||
|
* make it a "portable" application in that the entire app and config can be carried on a portable
|
||||||
|
storage device. Requires minor tweaks to work well still.
|
||||||
|
|
||||||
2022-09-08 idk
|
2022-09-08 idk
|
||||||
* Generate a source tarball when we checkout a branch of i2p.i2p
|
* Generate a source tarball when we checkout a branch of i2p.i2p
|
||||||
* Upload a source tarball when we do a daily build
|
* Upload a source tarball when we do a daily build
|
||||||
|
|||||||
52
daily-linux.sh
Executable file
52
daily-linux.sh
Executable file
@@ -0,0 +1,52 @@
|
|||||||
|
#! /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 config_overide.sh ]; then
|
||||||
|
. "$SCRIPT_DIR/config_override.sh"
|
||||||
|
fi
|
||||||
|
|
||||||
|
### How to set up this script:
|
||||||
|
#
|
||||||
|
# This script will not work unless you give it a Github API key.
|
||||||
|
# You need to create a file in your $HOME directory, which on
|
||||||
|
# Windows will by /c/Users/yourusername, called github-release-config.sh,
|
||||||
|
# containing this key as the variable GITHUB_TOKEN.
|
||||||
|
# github-release-config.sh must also contain:
|
||||||
|
# GITHUB_USERNAME=your github username
|
||||||
|
git clean -fd
|
||||||
|
git checkout .
|
||||||
|
./targz.sh
|
||||||
|
|
||||||
|
. "$HOME/github-release-config.sh"
|
||||||
|
|
||||||
|
if [ -f ./i2pversion_override ]; then
|
||||||
|
. ./i2pversion_override
|
||||||
|
fi
|
||||||
|
|
||||||
|
TODAYSDATE=$(date +%Y%m%d)
|
||||||
|
|
||||||
|
if [ -z "$DESCRIPTION" ]; then
|
||||||
|
DESCRIPTION="Daily unsigned build of i2p.firefox for $TODAYSDATE"
|
||||||
|
DESCRIPTION+="==================================================="
|
||||||
|
DESCRIPTION+=""
|
||||||
|
DESCRIPTION+="These builds are automatically built on a daily basis and may have serious bugs."
|
||||||
|
DESCRIPTION+="They are intended for testing purposes only, use them at your own risk."
|
||||||
|
DESCRIPTION+=""
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo github-release release -p -u "$GITHUB_USERNAME" -r "i2p.firefox" -n "$TODAYSDATE" -d "$DESCRIPTION" -t "$TODAYSDATE"
|
||||||
|
github-release release -p -u "$GITHUB_USERNAME" -r "i2p.firefox" -n "$TODAYSDATE" -d "$DESCRIPTION" -t "$TODAYSDATE"
|
||||||
|
sleep 2s
|
||||||
|
ZIPCHECKSUM=$(sha256sum "I2P.tar.gz")
|
||||||
|
echo github-release upload -R -u "$GITHUB_USERNAME" -r "i2p.firefox" -f "I2P.tar.gz" -l "$ZIPCHECKSUM" -t "$TODAYSDATE" -n "I2P.tar.gz"
|
||||||
|
github-release upload -R -u "$GITHUB_USERNAME" -r "i2p.firefox" -f "I2P.tar.gz" -l "$ZIPCHECKSUM" -t "$TODAYSDATE" -n "I2P.tar.gz"
|
||||||
26
daily.sh
26
daily.sh
@@ -37,19 +37,23 @@ TODAYSDATE=$(date +%Y%m%d)
|
|||||||
|
|
||||||
if [ -z "$DESCRIPTION" ]; then
|
if [ -z "$DESCRIPTION" ]; then
|
||||||
DESCRIPTION="Daily unsigned build of i2p.firefox for $TODAYSDATE"
|
DESCRIPTION="Daily unsigned build of i2p.firefox for $TODAYSDATE"
|
||||||
|
DESCRIPTION+="==================================================="
|
||||||
|
DESCRIPTION+=""
|
||||||
|
DESCRIPTION+="These builds are automatically built on a daily basis and may have serious bugs."
|
||||||
|
DESCRIPTION+="They are intended for testing purposes only, use them at your own risk."
|
||||||
|
DESCRIPTION+=""
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo github-release release -p -u "$GITHUB_USERNAME" -r "i2p.firefox" -n "$TODAYSDATE" -d "$DESCRIPTION" -t "$TODAYSDATE"
|
echo github-release release -p -u "$GITHUB_USERNAME" -r "i2p.firefox" -n "$TODAYSDATE" -d "$DESCRIPTION" -t "$TODAYSDATE"
|
||||||
github-release release -p -u "$GITHUB_USERNAME" -r "i2p.firefox" -n "$TODAYSDATE" -d "$DESCRIPTION" -t "$TODAYSDATE"
|
github-release release -p -u "$GITHUB_USERNAME" -r "i2p.firefox" -n "$TODAYSDATE" -d "$DESCRIPTION" -t "$TODAYSDATE"
|
||||||
EXECHECKSUM=$(sha256sum "I2P-Profile-Installer-$I2P_VERSION.exe")
|
EXECHECKSUM=$(sha256sum "I2P-Easy-Install-Bundle-$I2P_VERSION.exe")
|
||||||
echo github-release upload -R -u "$GITHUB_USERNAME" -r "i2p.firefox" -f "I2P-Profile-Installer-$I2P_VERSION.exe" -l "$EXECHECKSUM" -t "$TODAYSDATE" -n "I2P-Profile-Installer-$I2P_VERSION.exe"
|
echo github-release upload -R -u "$GITHUB_USERNAME" -r "i2p.firefox" -f "I2P-Easy-Install-Bundle-$I2P_VERSION.exe" -l "$EXECHECKSUM" -t "$TODAYSDATE" -n "I2P-Easy-Install-Bundle-$I2P_VERSION.exe"
|
||||||
github-release upload -R -u "$GITHUB_USERNAME" -r "i2p.firefox" -f "I2P-Profile-Installer-$I2P_VERSION.exe" -l "$EXECHECKSUM" -t "$TODAYSDATE" -n "I2P-Profile-Installer-$I2P_VERSION.exe"
|
github-release upload -R -u "$GITHUB_USERNAME" -r "i2p.firefox" -f "I2P-Easy-Install-Bundle-$I2P_VERSION.exe" -l "$EXECHECKSUM" -t "$TODAYSDATE" -n "I2P-Easy-Install-Bundle-$I2P_VERSION.exe"
|
||||||
cd build || exit
|
powershell Compress-Archive -force I2P I2P.zip
|
||||||
tar -a -cf ../I2P.zip I2P
|
ZIPCHECKSUM=$(sha256sum "I2P.zip")
|
||||||
ZIPCHECKSUM=$(sha256sum "../I2P.zip")
|
echo github-release upload -R -u "$GITHUB_USERNAME" -r "i2p.firefox" -f "I2P.zip" -l "$ZIPCHECKSUM" -t "$TODAYSDATE" -n "I2P.zip"
|
||||||
echo github-release upload -R -u "$GITHUB_USERNAME" -r "i2p.firefox" -f "../I2P.zip" -l "$ZIPCHECKSUM" -t "$TODAYSDATE" -n "I2P.zip"
|
github-release upload -R -u "$GITHUB_USERNAME" -r "i2p.firefox" -f "I2P.zip" -l "$ZIPCHECKSUM" -t "$TODAYSDATE" -n "I2P.zip"
|
||||||
github-release upload -R -u "$GITHUB_USERNAME" -r "i2p.firefox" -f "../I2P.zip" -l "$ZIPCHECKSUM" -t "$TODAYSDATE" -n "I2P.zip"
|
|
||||||
|
|
||||||
TARCHECKSUM=$(sha256sum "../../i2p.i2p.jpackage-build.tar.gz")
|
TARCHECKSUM=$(sha256sum "../i2p.i2p.jpackage-build.tar.gz")
|
||||||
echo github-release upload -R -u "$GITHUB_USERNAME" -r "i2p.firefox" -f "../../i2p.i2p.jpackage-build.tar.gz" -l "Upstream I2P Router source code $TARCHECKSUM" -t "$TODAYSDATE" -n "i2p.i2p.jpackage-build.tar.gz"
|
echo github-release upload -R -u "$GITHUB_USERNAME" -r "i2p.firefox" -f "../i2p.i2p.jpackage-build.tar.gz" -l "Upstream I2P Router source code $TARCHECKSUM" -t "$TODAYSDATE" -n "i2p.i2p.jpackage-build.tar.gz"
|
||||||
github-release upload -R -u "$GITHUB_USERNAME" -r "i2p.firefox" -f "../../i2p.i2p.jpackage-build.tar.gz" -l "Upstream I2P Router source code $TARCHECKSUM" -t "$TODAYSDATE" -n "i2p.i2p.jpackage-build.tar.gz"
|
github-release upload -R -u "$GITHUB_USERNAME" -r "i2p.firefox" -f "../i2p.i2p.jpackage-build.tar.gz" -l "Upstream I2P Router source code $TARCHECKSUM" -t "$TODAYSDATE" -n "i2p.i2p.jpackage-build.tar.gz"
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ export I2PFIREFOX_VERSION=0.0.36
|
|||||||
# the tip of the master branch.
|
# the tip of the master branch.
|
||||||
VERSIONMAJOR=1
|
VERSIONMAJOR=1
|
||||||
VERSIONMINOR=9
|
VERSIONMINOR=9
|
||||||
VERSIONBUILD=5
|
VERSIONBUILD=6
|
||||||
I2P_VERSION="$VERSIONMAJOR.$VERSIONMINOR.$VERSIONBUILD"
|
I2P_VERSION="$VERSIONMAJOR.$VERSIONMINOR.$VERSIONBUILD"
|
||||||
export I2P_VERSION="$VERSIONMAJOR.$VERSIONMINOR.$VERSIONBUILD"
|
export I2P_VERSION="$VERSIONMAJOR.$VERSIONMINOR.$VERSIONBUILD"
|
||||||
VERSION=i2p-jpackage-1.9.4
|
VERSION=i2p-jpackage-1.9.4
|
||||||
|
|||||||
624
index.html
624
index.html
@@ -17,6 +17,11 @@
|
|||||||
<div id="shownav">
|
<div id="shownav">
|
||||||
<div id="hidenav">
|
<div id="hidenav">
|
||||||
<ul>
|
<ul>
|
||||||
|
<li>
|
||||||
|
<a href="..">
|
||||||
|
Up one level ^
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a href="index.html">
|
<a href="index.html">
|
||||||
index
|
index
|
||||||
@@ -40,6 +45,9 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<a id="returnhome" href="/">
|
||||||
|
/
|
||||||
|
</a>
|
||||||
<h1>
|
<h1>
|
||||||
I2P Easy-Install Bundle for Windows(Also/formerly)I2P Browsing Profile for Firefox
|
I2P Easy-Install Bundle for Windows(Also/formerly)I2P Browsing Profile for Firefox
|
||||||
</h1>
|
</h1>
|
||||||
@@ -67,7 +75,7 @@
|
|||||||
Build Dependencies:
|
Build Dependencies:
|
||||||
</h2>
|
</h2>
|
||||||
<p>
|
<p>
|
||||||
To build this, you will need the following software packages (all available in Debian) :
|
To build this, you will need the following software packages (all available in Debian and Ubuntu, see WSL section below) :
|
||||||
</p>
|
</p>
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
@@ -87,8 +95,8 @@
|
|||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<p>
|
<p>
|
||||||
In addition, you will need the NSIS plugin “ShellExecAsUser” which you can get from the
|
In addition, you will need the NSIS plugin “ShellExecAsUser” which you can get from the
|
||||||
<a href="https://nsis.sourceforge.io/ShellExecAsUser_plug-in" rel="nofollow">
|
<a href="https://nsis.sourceforge.io/ShellExecAsUser_plug-in">
|
||||||
NSIS Wiki Page
|
NSIS Wiki Page
|
||||||
</a>
|
</a>
|
||||||
. In order to install
|
. In order to install
|
||||||
@@ -97,7 +105,7 @@
|
|||||||
WSL
|
WSL
|
||||||
</code>
|
</code>
|
||||||
, you can download the:
|
, you can download the:
|
||||||
<a href="https://nsis.sourceforge.io/mediawiki/images/6/68/ShellExecAsUser_amd64-Unicode.7z" rel="nofollow">
|
<a href="https://nsis.sourceforge.io/mediawiki/images/6/68/ShellExecAsUser_amd64-Unicode.7z">
|
||||||
7zip release
|
7zip release
|
||||||
</a>
|
</a>
|
||||||
and copy the content of
|
and copy the content of
|
||||||
@@ -110,215 +118,11 @@
|
|||||||
</code>
|
</code>
|
||||||
.
|
.
|
||||||
</p>
|
</p>
|
||||||
<pre><code>cp -rv Plugins/* /usr/share/nsis/Plugins/
|
<pre><code class="language-sh">cp -rv Plugins/* /usr/share/nsis/Plugins/
|
||||||
</code></pre>
|
|
||||||
<p>
|
|
||||||
To build a Debian package, you’ll also need
|
|
||||||
</p>
|
|
||||||
<ul>
|
|
||||||
<li>
|
|
||||||
checkinstall
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
<h2>
|
|
||||||
Preparation
|
|
||||||
</h2>
|
|
||||||
<p>
|
|
||||||
Before you build, run the targets
|
|
||||||
</p>
|
|
||||||
<pre><code> make clean-extensions
|
|
||||||
make extensions
|
|
||||||
</code></pre>
|
|
||||||
<p>
|
|
||||||
to update the extensions to point to their latest versions.
|
|
||||||
</p>
|
|
||||||
<h2>
|
|
||||||
Windows Build
|
|
||||||
</h2>
|
|
||||||
<p>
|
|
||||||
After installing the dependencies and completing the preparations,
|
|
||||||
just run
|
|
||||||
<code>
|
|
||||||
make
|
|
||||||
</code>
|
|
||||||
. This will produce three files:
|
|
||||||
</p>
|
|
||||||
<p>
|
|
||||||
profile.tgz - the firefox profile, plus a shell script which will
|
|
||||||
launch it if Firefox is found in the $PATH on Unix-Like operating
|
|
||||||
systems.
|
|
||||||
app-profile.tgz - the Firefox profile plus a launcher shell script,
|
|
||||||
which will launch a
|
|
||||||
<em>
|
|
||||||
modified
|
|
||||||
</em>
|
|
||||||
Firefox without a URL bar as a router
|
|
||||||
console wrapper.
|
|
||||||
install.exe - the windows installer, which sets up shortcuts to
|
|
||||||
launch Firefox on Windows.
|
|
||||||
</p>
|
|
||||||
<p>
|
|
||||||
When generating a Windows build it’s important to make sure that the
|
|
||||||
licenses for all the bundled softare are included. This should happen
|
|
||||||
automatically. When bundling software, describe the terms and where
|
|
||||||
they are applied in the
|
|
||||||
<code>
|
|
||||||
LICENSE.index
|
|
||||||
</code>
|
|
||||||
, then add the full license
|
|
||||||
to the
|
|
||||||
<code>
|
|
||||||
licenses
|
|
||||||
</code>
|
|
||||||
directory. Then, add the full license to the
|
|
||||||
<code>
|
|
||||||
cat
|
|
||||||
</code>
|
|
||||||
command in the
|
|
||||||
<code>
|
|
||||||
build/licenses
|
|
||||||
</code>
|
|
||||||
make target. The build/licenses
|
|
||||||
target is run automatically during the build process.
|
|
||||||
</p>
|
|
||||||
<h2>
|
|
||||||
Unix Support
|
|
||||||
</h2>
|
|
||||||
<p>
|
|
||||||
It is possible to use these profiles on Linux and possibly other
|
|
||||||
Unixes, if Firefox is already installed on the system. It can be
|
|
||||||
installed system-wide using the
|
|
||||||
<code>
|
|
||||||
make install
|
|
||||||
</code>
|
|
||||||
target. Running
|
|
||||||
<code>
|
|
||||||
make install
|
|
||||||
</code>
|
|
||||||
requires root, and requires
|
|
||||||
<code>
|
|
||||||
make
|
|
||||||
</code>
|
|
||||||
to have been run
|
|
||||||
first. To install on Unix, system-wide, run:
|
|
||||||
</p>
|
|
||||||
<pre><code> make
|
|
||||||
sudo make install
|
|
||||||
</code></pre>
|
|
||||||
<p>
|
|
||||||
To run without installing them system wide, unpack the
|
|
||||||
<code>
|
|
||||||
profile*.tgz
|
|
||||||
</code>
|
|
||||||
to a location of your choice and run the
|
|
||||||
<code>
|
|
||||||
i2pbrowser.sh
|
|
||||||
</code>
|
|
||||||
script. This
|
|
||||||
will start a Firefox profile configured to use I2P.
|
|
||||||
</p>
|
|
||||||
<pre><code> tar xvf profile-0.3.tgz
|
|
||||||
cd profile
|
|
||||||
./i2pbrowser.sh
|
|
||||||
</code></pre>
|
|
||||||
<p>
|
|
||||||
If you want to run the app-like i2pconfig browser, then follow the
|
|
||||||
same steps with app-profile*.tgz.
|
|
||||||
</p>
|
|
||||||
<pre><code> tar xvf app-profile-0.3.tgz
|
|
||||||
cd app-profile
|
|
||||||
./i2pconfig.sh
|
|
||||||
</code></pre>
|
|
||||||
<p>
|
|
||||||
To generate a
|
|
||||||
<code>
|
|
||||||
deb
|
|
||||||
</code>
|
|
||||||
package, install the package
|
|
||||||
<code>
|
|
||||||
checkinstall
|
|
||||||
</code>
|
|
||||||
and run
|
|
||||||
the
|
|
||||||
<code>
|
|
||||||
make checkinstall
|
|
||||||
</code>
|
|
||||||
target after building with
|
|
||||||
<code>
|
|
||||||
make
|
|
||||||
</code>
|
|
||||||
.
|
|
||||||
</p>
|
|
||||||
<pre><code> make
|
|
||||||
make checkinstall
|
|
||||||
sudo apt install ./i2p-firefox*.deb
|
|
||||||
</code></pre>
|
|
||||||
<p>
|
|
||||||
If you want to set up i2pconfig to run when you start the service
|
|
||||||
with
|
|
||||||
<code>
|
|
||||||
sudo service i2p start
|
|
||||||
</code>
|
|
||||||
then you can run the script:
|
|
||||||
</p>
|
|
||||||
<pre><code> /usr/local/bin/i2p-config-service-setup
|
|
||||||
</code></pre>
|
</code></pre>
|
||||||
<h2>
|
<h2>
|
||||||
Including a jpackaged I2P Router
|
Including a jpackaged I2P Router
|
||||||
</h2>
|
</h2>
|
||||||
<p>
|
|
||||||
In order to include a jpackaged(dependency-free) I2P router in the Profile
|
|
||||||
Bundle you will need to build the jpackaged I2P router as an “App Image” on
|
|
||||||
a Windows system and place it into a directory called
|
|
||||||
<code>
|
|
||||||
I2P
|
|
||||||
</code>
|
|
||||||
in your
|
|
||||||
<code>
|
|
||||||
i2p.firefox
|
|
||||||
</code>
|
|
||||||
checkout.
|
|
||||||
</p>
|
|
||||||
<p>
|
|
||||||
Assuming a working java and jpackage environment on your Windows system, the
|
|
||||||
following command should generate a suitable “App Image” in a directory
|
|
||||||
called “I2P.”
|
|
||||||
</p>
|
|
||||||
<pre><code> export I2P_VERSION=0.9.49
|
|
||||||
cp -R ../i2p.i2p/pkg-temp/lib build/lib
|
|
||||||
jpackage --type app-image --name I2P --app-version "$I2P_VERSION" \
|
|
||||||
--verbose \
|
|
||||||
--resource-dir build/lib \
|
|
||||||
--input build/lib --main-jar router.jar --main-class net.i2p.router.RouterLaunch
|
|
||||||
</code></pre>
|
|
||||||
<p>
|
|
||||||
Transfer the I2P directory to the machine where you build i2p.firefox if
|
|
||||||
necessary, then complete the regular build instructions. If a jpackaged I2P router
|
|
||||||
isn’t present to use at build time, the inclusion will be skipped automatically
|
|
||||||
with a non-fatal warning.
|
|
||||||
</p>
|
|
||||||
<p>
|
|
||||||
In the near future, I’ll start providing a pre-built app image to ease the
|
|
||||||
build process for non-Windows users.
|
|
||||||
</p>
|
|
||||||
<h2>
|
|
||||||
End-to-End Windows build process using WSL
|
|
||||||
</h2>
|
|
||||||
<p>
|
|
||||||
<strong>
|
|
||||||
If you’ve already done this once, you can just use:
|
|
||||||
</strong>
|
|
||||||
<code>
|
|
||||||
./build.sh && wsl make
|
|
||||||
</code>
|
|
||||||
<strong>
|
|
||||||
in
|
|
||||||
<code>
|
|
||||||
git bash
|
|
||||||
</code>
|
|
||||||
</strong>
|
|
||||||
to automatically build an installer.
|
|
||||||
</p>
|
|
||||||
<p>
|
<p>
|
||||||
<strong>
|
<strong>
|
||||||
Prerequisites:
|
Prerequisites:
|
||||||
@@ -363,20 +167,156 @@
|
|||||||
%PATH%
|
%PATH%
|
||||||
</code>
|
</code>
|
||||||
. You must have Git for Windows installed. When installing git for Windows,
|
. You must have Git for Windows installed. When installing git for Windows,
|
||||||
you should select “Checkout as is, commit as is” and leave line-endings alone.
|
you should select “Checkout as is, commit as is” and leave line-endings alone.
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
TODO: Add links to the respective instructions for each of these.
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
<strong>
|
||||||
|
Note that after the dependencies are installed, this step is automated
|
||||||
|
</strong>
|
||||||
|
<strong>
|
||||||
|
with
|
||||||
|
<code>
|
||||||
|
./build.sh
|
||||||
|
</code>
|
||||||
|
.
|
||||||
|
</strong>
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
In order to include a jpackaged(dependency-free) I2P router in the Profile
|
||||||
|
Bundle you will need to build the jpackaged I2P router as an “App Image” on
|
||||||
|
a Windows system and place it into a directory called
|
||||||
|
<code>
|
||||||
|
I2P
|
||||||
|
</code>
|
||||||
|
in your
|
||||||
|
<code>
|
||||||
|
i2p.firefox
|
||||||
|
</code>
|
||||||
|
checkout. Building without a jpackage is no longer supported.
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
Assuming a working java and jpackage environment on your Windows system, the
|
||||||
|
following command should generate a suitable “App Image” in a directory
|
||||||
|
called “I2P.”
|
||||||
|
</p>
|
||||||
|
<pre><code> export I2P_VERSION=0.9.49
|
||||||
|
cp -R ../i2p.i2p/pkg-temp/lib build/lib
|
||||||
|
jpackage --type app-image --name I2P --app-version "$I2P_VERSION" \
|
||||||
|
--verbose \
|
||||||
|
--resource-dir build/lib \
|
||||||
|
--input build/lib --main-jar router.jar --main-class net.i2p.router.RouterLaunch
|
||||||
|
</code></pre>
|
||||||
|
<p>
|
||||||
|
Transfer the I2P directory to the machine where you build i2p.firefox if
|
||||||
|
necessary, then complete the regular build instructions. If a jpackaged I2P router
|
||||||
|
isn’t present to use at build time, the inclusion will be skipped automatically
|
||||||
|
with a non-fatal warning.
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
Pre-built app-images are available from my daily releases at:
|
||||||
|
</p>
|
||||||
|
<pre><code> https://github.com/eyedeekay/i2p.plugins.firefox/releases/
|
||||||
|
</code></pre>
|
||||||
|
<h2>
|
||||||
|
Windows Build
|
||||||
|
</h2>
|
||||||
|
<p>
|
||||||
|
After installing the dependencies and completing the preparations,
|
||||||
|
just run
|
||||||
|
<code>
|
||||||
|
make
|
||||||
|
</code>
|
||||||
|
. 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.
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
When generating a build it’s important to make sure that the
|
||||||
|
licenses for all the bundled softare are included. This should happen
|
||||||
|
automatically. When bundling software, describe the terms and where
|
||||||
|
they are applied in the
|
||||||
|
<code>
|
||||||
|
LICENSE.index
|
||||||
|
</code>
|
||||||
|
, then add the full license
|
||||||
|
to the
|
||||||
|
<code>
|
||||||
|
licenses
|
||||||
|
</code>
|
||||||
|
directory. Then, add the full license to the
|
||||||
|
<code>
|
||||||
|
cat
|
||||||
|
</code>
|
||||||
|
command in the
|
||||||
|
<code>
|
||||||
|
build/licenses
|
||||||
|
</code>
|
||||||
|
make target. The build/licenses
|
||||||
|
target is run automatically during the build process.
|
||||||
|
</p>
|
||||||
|
<h2>
|
||||||
|
End-to-End Windows build process using WSL(
|
||||||
|
<strong>
|
||||||
|
Recommended
|
||||||
|
</strong>
|
||||||
|
)
|
||||||
|
</h2>
|
||||||
|
<p>
|
||||||
|
<strong>
|
||||||
|
See
|
||||||
|
<code>
|
||||||
|
config.sh
|
||||||
|
</code>
|
||||||
|
and
|
||||||
|
<code>
|
||||||
|
i2pversion
|
||||||
|
</code>
|
||||||
|
for instructions on how to tweak
|
||||||
|
</strong>
|
||||||
|
<strong>
|
||||||
|
the build process. File an issue if you need help.
|
||||||
|
</strong>
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
<strong>
|
||||||
|
If you’ve already done this once, you can just use:
|
||||||
|
</strong>
|
||||||
|
<code>
|
||||||
|
./unsigned.sh
|
||||||
|
</code>
|
||||||
|
<strong>
|
||||||
|
in
|
||||||
|
<code>
|
||||||
|
git bash
|
||||||
|
</code>
|
||||||
|
</strong>
|
||||||
|
to automatically build an installer. If you
|
||||||
|
are using this method, you may use the
|
||||||
|
<code>
|
||||||
|
makensis
|
||||||
|
</code>
|
||||||
|
and
|
||||||
|
<code>
|
||||||
|
make
|
||||||
|
</code>
|
||||||
|
from
|
||||||
|
Ubuntu in WSL.
|
||||||
</p>
|
</p>
|
||||||
<ol>
|
<ol>
|
||||||
<li>
|
<li>
|
||||||
<p>
|
<p>
|
||||||
<a href="https://docs.microsoft.com/en-us/windows/wsl/install-win10#manual-installation-steps" rel="nofollow">
|
<a href="https://docs.microsoft.com/en-us/windows/wsl/install-win10#manual-installation-steps">
|
||||||
Set up Windows Subsystem for Linux per Microsoft’s instructions
|
Set up Windows Subsystem for Linux per Microsoft’s instructions
|
||||||
</a>
|
</a>
|
||||||
</p>
|
</p>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<p>
|
<p>
|
||||||
<a href="https://www.microsoft.com/store/apps/9n6svws3rx71" rel="nofollow">
|
<a href="https://www.microsoft.com/store/apps/9n6svws3rx71">
|
||||||
Install Ubuntu Focal per Microsoft’s instructions
|
Install Ubuntu Focal per Microsoft’s instructions
|
||||||
</a>
|
</a>
|
||||||
</p>
|
</p>
|
||||||
</li>
|
</li>
|
||||||
@@ -439,7 +379,7 @@ cd ..
|
|||||||
</li>
|
</li>
|
||||||
</ol>
|
</ol>
|
||||||
<h2>
|
<h2>
|
||||||
End-to-End Windows build process using Cygwin
|
End-to-End Windows build process using Cygwin(More difficult than WSL for now)
|
||||||
</h2>
|
</h2>
|
||||||
<p>
|
<p>
|
||||||
I highly recommend you look into the Chocolatey package manager, which makes it much
|
I highly recommend you look into the Chocolatey package manager, which makes it much
|
||||||
@@ -449,50 +389,36 @@ cd ..
|
|||||||
<strong>
|
<strong>
|
||||||
Prerequisites:
|
Prerequisites:
|
||||||
</strong>
|
</strong>
|
||||||
You need to have OpenJDK 14 or greater installed and configured
|
In addition to the other prerequisites, you will need to to have
|
||||||
with your
|
|
||||||
<code>
|
<code>
|
||||||
%JAVA_HOME%
|
make
|
||||||
</code>
|
</code>
|
||||||
environment variable configured and
|
installed with
|
||||||
<code>
|
<code>
|
||||||
%JAVA_HOME%/bin
|
cygwin
|
||||||
</code>
|
</code>
|
||||||
on
|
. If you are using this method, you cannot use the
|
||||||
your
|
automated build scripts without a hack. You will need to create a file called
|
||||||
<code>
|
<code>
|
||||||
%PATH%
|
wsl
|
||||||
</code>
|
</code>
|
||||||
. You need to have Apache Ant installed and configured with
|
in a place that is in the path used by
|
||||||
<code>
|
<code>
|
||||||
%ANT_HOME%
|
git-bash.exe
|
||||||
</code>
|
</code>
|
||||||
environment variable configured and
|
sessions, with the content:
|
||||||
<code>
|
|
||||||
%ANT_HOME%/bin
|
|
||||||
</code>
|
|
||||||
on your
|
|
||||||
<code>
|
|
||||||
%PATH%
|
|
||||||
</code>
|
|
||||||
. You must have
|
|
||||||
WSL and git bash installed. You must have
|
|
||||||
<code>
|
|
||||||
NSIS.exe
|
|
||||||
</code>
|
|
||||||
installed and
|
|
||||||
<code>
|
|
||||||
makensis
|
|
||||||
</code>
|
|
||||||
available on your
|
|
||||||
<code>
|
|
||||||
%PATH%
|
|
||||||
</code>
|
|
||||||
. You must have Git for Windows installed. When installing git for Windows, you should
|
|
||||||
select “Checkout as is, commit as is” and leave line-endings alone.
|
|
||||||
</p>
|
</p>
|
||||||
|
<pre><code>#! /usr/bin/env bash
|
||||||
|
$@
|
||||||
|
</code></pre>
|
||||||
<p>
|
<p>
|
||||||
TODO: Add links to the respective instructions for each of these.
|
For our purposes, as long as everything else is set up and you’re using git bash,
|
||||||
|
that is enough to make the scripts compatible with
|
||||||
|
<code>
|
||||||
|
cygwin
|
||||||
|
</code>
|
||||||
|
. Cygwin builds without
|
||||||
|
git bash are not likely to work.
|
||||||
</p>
|
</p>
|
||||||
<ol>
|
<ol>
|
||||||
<li>
|
<li>
|
||||||
@@ -578,7 +504,7 @@ cd ..
|
|||||||
<code>
|
<code>
|
||||||
.exe
|
.exe
|
||||||
</code>
|
</code>
|
||||||
file produced by NSIS, you’re almost ready to
|
file produced by NSIS, you’re almost ready to
|
||||||
do a release. As a final step, someone must sign the
|
do a release. As a final step, someone must sign the
|
||||||
<code>
|
<code>
|
||||||
.exe
|
.exe
|
||||||
@@ -587,15 +513,11 @@ cd ..
|
|||||||
Certificate which Windows will recognize. The current signer of the Windows
|
Certificate which Windows will recognize. The current signer of the Windows
|
||||||
bundle is Zlatinb. Standard Windows signing tools are used.
|
bundle is Zlatinb. Standard Windows signing tools are used.
|
||||||
</p>
|
</p>
|
||||||
<pre><code># Release Copypasta
|
<pre><code class="language-sh">./release.sh
|
||||||
./clean.sh
|
|
||||||
wsl make distclean
|
|
||||||
wsl make clean-extensions
|
|
||||||
wsl make extensions
|
|
||||||
./build.sh
|
|
||||||
wsl make
|
|
||||||
./sign.sh
|
|
||||||
</code></pre>
|
</code></pre>
|
||||||
|
<p>
|
||||||
|
produces the binary.
|
||||||
|
</p>
|
||||||
<h2>
|
<h2>
|
||||||
Building a signed update file
|
Building a signed update file
|
||||||
</h2>
|
</h2>
|
||||||
@@ -614,23 +536,82 @@ wsl make
|
|||||||
Docker Support
|
Docker Support
|
||||||
</h2>
|
</h2>
|
||||||
<p>
|
<p>
|
||||||
You can use a Docker container to install this browser profile as well. In order
|
<strong>
|
||||||
to do this, you can run the commands:
|
MOVED, DEPRECATION NOTICE:
|
||||||
|
</strong>
|
||||||
|
Most of this functionality has been moved
|
||||||
|
to
|
||||||
|
<a href="http://git.idk.i2p/idk/i2p.plugins.native">
|
||||||
|
http://git.idk.i2p/idk/i2p.plugins.native
|
||||||
|
</a>
|
||||||
|
which is more stable,
|
||||||
|
easier to build and use, and easier to incorporate into other
|
||||||
|
projects.
|
||||||
</p>
|
</p>
|
||||||
<pre><code> xhost + local:docker
|
<ul>
|
||||||
docker run -it --rm \
|
<li>
|
||||||
--net=host \
|
<a href="https://git.idk.i2p/idk/i2p.plugins.firefox/-/blob/main/docker.sh">
|
||||||
-e DISPLAY=unix$(DISPLAY) \
|
https://git.idk.i2p/idk/i2p.plugins.firefox/-/blob/main/docker.sh
|
||||||
-v /tmp/.X11-unix:/tmp/.X11-unix \
|
</a>
|
||||||
geti2p/i2p.firefox firefox --profile /src/build/profile
|
</li>
|
||||||
</code></pre>
|
</ul>
|
||||||
|
<h2>
|
||||||
|
Unix Support
|
||||||
|
</h2>
|
||||||
<p>
|
<p>
|
||||||
To build and run the container locally, clone this repository and run the
|
<strong>
|
||||||
|
MOVED. DEPRECATION NOTICE:
|
||||||
|
</strong>
|
||||||
|
Most of this functionality has been moved
|
||||||
|
to
|
||||||
|
<a href="http://git.idk.i2p/idk/i2p.plugins.native">
|
||||||
|
http://git.idk.i2p/idk/i2p.plugins.native
|
||||||
|
</a>
|
||||||
|
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:
|
||||||
</p>
|
</p>
|
||||||
<pre><code> make run
|
<ul>
|
||||||
</code></pre>
|
<li>
|
||||||
|
<a href="https://github.com/eyedeekay/i2p.plugins.firefox/releases">
|
||||||
|
https://github.com/eyedeekay/i2p.plugins.firefox/releases
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
<p>
|
<p>
|
||||||
target.
|
or look at
|
||||||
|
</p>
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
<a href="https://i2pgit.org/idk/i2p.plugins.firefox/-/blob/master/PACKAGES.md">
|
||||||
|
https://i2pgit.org/idk/i2p.plugins.firefox/-/blob/master/PACKAGES.md
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
<p>
|
||||||
|
for instructions on how to build your own packages. These packages are
|
||||||
|
unofficial! Although I do dogfood most of them and the
|
||||||
|
<code>
|
||||||
|
.jar
|
||||||
|
</code>
|
||||||
|
gets thorough
|
||||||
|
testing.
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
<strong>
|
||||||
|
The only remotely interesting Unix functionality that remains in this
|
||||||
|
</strong>
|
||||||
|
<strong>
|
||||||
|
repository is the construction of a portable. You can use
|
||||||
|
<code>
|
||||||
|
targz.sh
|
||||||
|
</code>
|
||||||
|
to
|
||||||
|
</strong>
|
||||||
|
<strong>
|
||||||
|
generate that.
|
||||||
|
</strong>
|
||||||
</p>
|
</p>
|
||||||
<h2>
|
<h2>
|
||||||
Issues
|
Issues
|
||||||
@@ -638,47 +619,110 @@ wsl make
|
|||||||
<p>
|
<p>
|
||||||
To report issues against this browser profile, please file issues
|
To report issues against this browser profile, please file issues
|
||||||
at
|
at
|
||||||
<a href="https://i2pgit.org/i2p-hackers/i2p.firefox" rel="nofollow">
|
<a href="https://i2pgit.org/i2p-hackers/i2p.firefox">
|
||||||
the official Gitlab
|
the official Gitlab
|
||||||
</a>
|
</a>
|
||||||
or the
|
or the
|
||||||
<a href="https://github.com/i2p/i2p.firefox" rel="nofollow">
|
<a href="https://github.com/i2p/i2p.firefox">
|
||||||
Github Mirror
|
Github Mirror
|
||||||
</a>
|
</a>
|
||||||
. Issues
|
. Issues
|
||||||
pertaining to the plugins may be reported to their upstream
|
pertaining to the plugins may be reported to their upstream
|
||||||
maintainers if it’s determined that our configuration is not at
|
maintainers if it’s determined that our configuration is not at
|
||||||
fault.
|
fault.
|
||||||
</p>
|
</p>
|
||||||
|
<h2>
|
||||||
|
Credits
|
||||||
|
</h2>
|
||||||
<p>
|
<p>
|
||||||
NoScript is developed on Github by
|
This profile manager makes use of a set of browser extensions which are largely the work of others.
|
||||||
<code>
|
It makes use of dependencies that are the work of others. In many ways, it’s merely an elaborate
|
||||||
hackademix
|
configuration tool. A smart one, but a configuration tool nonetheless. Many thanks to the following
|
||||||
</code>
|
projects, developers, and communities:
|
||||||
and the community:
|
|
||||||
-
|
|
||||||
<a href="https://github.com/hackademix/noscript" rel="nofollow">
|
|
||||||
https://github.com/hackademix/noscript
|
|
||||||
</a>
|
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<h3>
|
||||||
HTTPS Everywhere is developed on Github by the EFF:
|
Firefox and Chrome Extensions
|
||||||
-
|
</h3>
|
||||||
<a href="https://github.com/EFForg/https-everywhere" rel="nofollow">
|
<ul>
|
||||||
https://github.com/EFForg/https-everywhere
|
<li>
|
||||||
|
<a href="https://noscript.net">
|
||||||
|
NoScript - Giorgio Maone and others
|
||||||
</a>
|
</a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="https://www.eff.org/https-everywhere">
|
||||||
|
HTTPS Everywhere - Electronic Frontier Foundation
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="https://ublockorigin.com/">
|
||||||
|
uBlock Origin - Raymond Gorhill and others
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="https://www.localcdn.org/">
|
||||||
|
LocalCDN - nobody and others
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="https://jshelter.org/">
|
||||||
|
jShelter - Libor Polčák and others
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
<h3>
|
||||||
|
Firefox Configuration Modifiations
|
||||||
|
</h3>
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
<a href="https://github.com/arkenfox/user.js/">
|
||||||
|
Arkenfox - Thorin Oakenpants and Others
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
<p>
|
||||||
|
You can find the license files for each of the these projects in the
|
||||||
|
<code>
|
||||||
|
src/i2p.firefox.*.profile/extensions/*
|
||||||
|
</code>
|
||||||
|
directory for Firefox, and the
|
||||||
|
<code>
|
||||||
|
src/i2p.chromium.*.profile/extensions/*.js/*
|
||||||
|
</code>
|
||||||
|
directories for Chromium within
|
||||||
|
the
|
||||||
|
<a href="https://i2pgit.org/idk/i2p.plugins.firefox">
|
||||||
|
<code>
|
||||||
|
i2p.plugins.firefox
|
||||||
|
</code>
|
||||||
|
</a>
|
||||||
|
project.
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
I2P in Private Browsing is developed on Gitlab and Github by idk and the community:
|
I2P in Private Browsing is developed on Gitlab and Github by idk and the community:
|
||||||
-
|
-
|
||||||
<a href="https://i2pgit.org/idk/I2P-in-Private-Browsing-Mode-Firefox" rel="nofollow">
|
<a href="https://i2pgit.org/idk/I2P-in-Private-Browsing-Mode-Firefox">
|
||||||
https://i2pgit.org/idk/I2P-in-Private-Browsing-Mode-Firefox
|
https://i2pgit.org/idk/I2P-in-Private-Browsing-Mode-Firefox
|
||||||
</a>
|
</a>
|
||||||
-
|
-
|
||||||
<a href="https://github.com/eyedeekay/I2P-in-Private-Browsing-Mode-Firefox" rel="nofollow">
|
<a href="https://github.com/eyedeekay/I2P-in-Private-Browsing-Mode-Firefox">
|
||||||
https://github.com/eyedeekay/I2P-in-Private-Browsing-Mode-Firefox
|
https://github.com/eyedeekay/I2P-in-Private-Browsing-Mode-Firefox
|
||||||
</a>
|
</a>
|
||||||
</p>
|
</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>
|
<div>
|
||||||
<a href="#show">
|
<a href="#show">
|
||||||
Show license
|
Show license
|
||||||
|
|||||||
@@ -13,14 +13,12 @@ import java.util.logging.Logger;
|
|||||||
import java.util.logging.SimpleFormatter;
|
import java.util.logging.SimpleFormatter;
|
||||||
|
|
||||||
public class CopyConfigDir {
|
public class CopyConfigDir {
|
||||||
static Logger logger = Logger.getLogger("configlog");
|
static final Logger logger = Logger.getLogger("configlog");
|
||||||
static WindowsUpdatePostProcessor wupp = null;
|
|
||||||
static FileHandler fh;
|
|
||||||
|
|
||||||
public CopyConfigDir() {
|
public static void initLogger() {
|
||||||
try {
|
try {
|
||||||
// This block configure the logger with handler and formatter
|
// This block configure the logger with handler and formatter
|
||||||
fh = new FileHandler(logFile().toString());
|
FileHandler fh = new FileHandler(logFile().toString());
|
||||||
logger.addHandler(fh);
|
logger.addHandler(fh);
|
||||||
SimpleFormatter formatter = new SimpleFormatter();
|
SimpleFormatter formatter = new SimpleFormatter();
|
||||||
fh.setFormatter(formatter);
|
fh.setFormatter(formatter);
|
||||||
@@ -133,17 +131,9 @@ public class CopyConfigDir {
|
|||||||
throw new RuntimeException("I2P_CONFIG is not a directory: " + path);
|
throw new RuntimeException("I2P_CONFIG is not a directory: " + path);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (osName() == "windows") {
|
|
||||||
File i2p = appImageHome();
|
File i2p = appImageHome();
|
||||||
logger.info("Checking for signs of life in I2P directory: " + i2p);
|
logger.info("Checking for signs of life in I2P_CONFIG directory: " + i2p);
|
||||||
return i2p;
|
return i2p;
|
||||||
} else {
|
|
||||||
File i2p = appImageHome();
|
|
||||||
File programs = new File(i2p, ".i2p");
|
|
||||||
logger.info("Linux portable jpackage wrapper starting up, using: " +
|
|
||||||
programs + " as base config");
|
|
||||||
return programs.getAbsoluteFile();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
protected static File selectProgramFile() {
|
protected static File selectProgramFile() {
|
||||||
@@ -157,19 +147,9 @@ public class CopyConfigDir {
|
|||||||
throw new RuntimeException("I2P is not a directory: " + path);
|
throw new RuntimeException("I2P is not a directory: " + path);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (osName() == "windows") {
|
File i2p = appImageHome();
|
||||||
File jrehome = new File(System.getProperty("java.home"));
|
logger.info("Checking for signs of life in I2P directory: " + i2p);
|
||||||
File programs = jrehome.getParentFile();
|
return i2p;
|
||||||
logger.info("Windows portable jpackage wrapper found, using: " +
|
|
||||||
programs + " as working config");
|
|
||||||
return programs.getAbsoluteFile();
|
|
||||||
} else {
|
|
||||||
File jrehome = new File(System.getProperty("java.home"));
|
|
||||||
File programs = new File(jrehome.getParentFile().getParentFile(), "i2p");
|
|
||||||
logger.info("Linux portable jpackage wrapper found, using: " + programs +
|
|
||||||
" as working config");
|
|
||||||
return programs.getAbsoluteFile();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -232,6 +212,28 @@ public class CopyConfigDir {
|
|||||||
return null;
|
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 static 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
|
* 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
|
* java.home and the OS, and traversing up to the app-image root based on that
|
||||||
@@ -268,10 +270,21 @@ public class CopyConfigDir {
|
|||||||
|
|
||||||
protected static boolean copyConfigDir() {
|
protected static boolean copyConfigDir() {
|
||||||
File appImageConfigDir = appImageConfig();
|
File appImageConfigDir = appImageConfig();
|
||||||
File appImageHomeDir = appImageHome();
|
File appImageHomeDir = selectHome();
|
||||||
return copyConfigDirectory(appImageConfigDir, appImageHomeDir);
|
return copyConfigDirectory(appImageConfigDir, appImageHomeDir);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected static 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
|
* set up the path to the log file
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -35,6 +35,7 @@ public class WinLauncher extends CopyConfigDir {
|
|||||||
|
|
||||||
public static void main(String[] args) throws Exception {
|
public static void main(String[] args) throws Exception {
|
||||||
setupLauncher();
|
setupLauncher();
|
||||||
|
initLogger();
|
||||||
boolean privateBrowsing = false;
|
boolean privateBrowsing = false;
|
||||||
boolean usabilityMode = false;
|
boolean usabilityMode = false;
|
||||||
boolean chromiumFirst = false;
|
boolean chromiumFirst = false;
|
||||||
@@ -94,19 +95,10 @@ public class WinLauncher extends CopyConfigDir {
|
|||||||
System.exit(1);
|
System.exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (launchBrowser(privateBrowsing, usabilityMode, chromiumFirst,
|
|
||||||
proxyTimeoutTime, newArgsList)) {
|
|
||||||
System.exit(0);
|
|
||||||
}
|
|
||||||
|
|
||||||
System.setProperty("i2p.dir.base", programs.getAbsolutePath());
|
System.setProperty("i2p.dir.base", programs.getAbsolutePath());
|
||||||
System.setProperty("i2p.dir.config", home.getAbsolutePath());
|
System.setProperty("i2p.dir.config", home.getAbsolutePath());
|
||||||
System.setProperty("router.pid",
|
System.setProperty("router.pid",
|
||||||
String.valueOf(ProcessHandle.current().pid()));
|
String.valueOf(ProcessHandle.current().pid()));
|
||||||
logger.info("\t" + System.getProperty("i2p.dir.base") + "\n\t" +
|
|
||||||
System.getProperty("i2p.dir.config") + "\n\t" +
|
|
||||||
System.getProperty("router.pid"));
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* IMPORTANT: You must set user.dir to the same directory where the
|
* IMPORTANT: You must set user.dir to the same directory where the
|
||||||
* jpackage is intstalled, or when the launcher tries to re-run itself
|
* jpackage is intstalled, or when the launcher tries to re-run itself
|
||||||
@@ -114,8 +106,22 @@ public class WinLauncher extends CopyConfigDir {
|
|||||||
* to find the JVM and Runtime bundle. This broke Windows 11 installs.
|
* to find the JVM and Runtime bundle. This broke Windows 11 installs.
|
||||||
*/
|
*/
|
||||||
System.setProperty("user.dir", programs.getAbsolutePath());
|
System.setProperty("user.dir", programs.getAbsolutePath());
|
||||||
|
logger.info("\t" + System.getProperty("user.dir"));
|
||||||
i2pRouter = new Router(System.getProperties());
|
logger.info("\t" + System.getProperty("i2p.dir.base"));
|
||||||
|
logger.info("\t" + System.getProperty("i2p.dir.config"));
|
||||||
|
logger.info("\t" + System.getProperty("router.pid"));
|
||||||
|
if (launchBrowser(privateBrowsing, usabilityMode, chromiumFirst,
|
||||||
|
proxyTimeoutTime, newArgsList)) {
|
||||||
|
System.exit(0);
|
||||||
|
}
|
||||||
|
i2pRouter = new Router(routerConfig(), System.getProperties());
|
||||||
|
if (i2pRouter.saveConfig("routerconsole.browser", null)) {
|
||||||
|
logger.info("removed routerconsole.browser config");
|
||||||
|
}
|
||||||
|
if (i2pRouter.saveConfig("routerconsole.browser",
|
||||||
|
appImageExe() + " -noproxycheck")) {
|
||||||
|
logger.info("updated routerconsole.browser config " + appImageExe());
|
||||||
|
}
|
||||||
logger.info("Router is configured");
|
logger.info("Router is configured");
|
||||||
|
|
||||||
Thread registrationThread = new Thread(REGISTER_UPP);
|
Thread registrationThread = new Thread(REGISTER_UPP);
|
||||||
@@ -126,24 +132,9 @@ public class WinLauncher extends CopyConfigDir {
|
|||||||
setNotStarting();
|
setNotStarting();
|
||||||
|
|
||||||
i2pRouter.runRouter();
|
i2pRouter.runRouter();
|
||||||
System.exit(0);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void setupLauncher() {
|
private static void setupLauncher() {
|
||||||
try {
|
|
||||||
// This block configure the logger with handler and formatter
|
|
||||||
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();
|
|
||||||
}
|
|
||||||
|
|
||||||
File jrehome = javaHome();
|
File jrehome = javaHome();
|
||||||
logger.info("jre home is: " + jrehome.getAbsolutePath());
|
logger.info("jre home is: " + jrehome.getAbsolutePath());
|
||||||
File appimagehome = appImageHome();
|
File appimagehome = appImageHome();
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
app-profile: .version build/app-profile/user.js build/app-profile/prefs.js build/app-profile/chrome/userChrome.css build/app-profile/bookmarks.html build/app-profile/storage-sync.sqlite copy-app-xpi
|
app-profile: .version build/app-profile/chrome/userChrome.css build/app-profile/storage-sync.sqlite
|
||||||
|
|
||||||
app-profile.tgz: app-profile
|
app-profile.tgz: app-profile
|
||||||
# $(eval PROFILE_VERSION := $(shell cat src/app-profile/version.txt))
|
# $(eval PROFILE_VERSION := $(shell cat src/app-profile/version.txt))
|
||||||
@@ -7,30 +7,8 @@ app-profile.tgz: app-profile
|
|||||||
install -m755 src/unix/i2pconfig.sh build/app-profile/i2pconfig.sh
|
install -m755 src/unix/i2pconfig.sh build/app-profile/i2pconfig.sh
|
||||||
cd build && tar -czf app-profile-$(PROFILE_VERSION).tgz app-profile && cp app-profile-$(PROFILE_VERSION).tgz ../
|
cd build && tar -czf app-profile-$(PROFILE_VERSION).tgz app-profile && cp app-profile-$(PROFILE_VERSION).tgz ../
|
||||||
|
|
||||||
src/app-profile/user.js:
|
|
||||||
wget -O src/app-profile/user.js "https://github.com/arkenfox/user.js/raw/master/user.js"
|
|
||||||
sed -i 's|user_pref("extensions.autoDisableScopes", 15);|user_pref("extensions.autoDisableScopes", 0);|g src/app-profile/user.js
|
|
||||||
sed -i 's|user_pref("extensions.enabledScopes", 5);|user_pref("extensions.enabledScopes", 1);|g' src/app-profile/user.js
|
|
||||||
sed -i 's|user_pref("dom.security.https_only_mode", true);|user_pref("dom.security.https_only_mode", false);|g' src/app-profile/user.js
|
|
||||||
|
|
||||||
|
|
||||||
build/app-profile/user.js: build/app-profile src/app-profile/user.js
|
|
||||||
cp src/app-profile/user.js build/app-profile/user.js
|
|
||||||
cp src/app-profile/user-overrides.js build/app-profile/user-overrides.js
|
|
||||||
|
|
||||||
build/app-profile/prefs.js: build/app-profile src/app-profile/prefs.js
|
|
||||||
cp src/app-profile/prefs.js build/app-profile/prefs.js
|
|
||||||
|
|
||||||
build/app-profile/chrome/userChrome.css: build/app-profile/chrome src/app-profile/chrome/userChrome.css
|
build/app-profile/chrome/userChrome.css: build/app-profile/chrome src/app-profile/chrome/userChrome.css
|
||||||
cp src/app-profile/chrome/userChrome.css build/app-profile/chrome/userChrome.css
|
cp src/app-profile/chrome/userChrome.css build/app-profile/chrome/userChrome.css
|
||||||
|
|
||||||
build/app-profile/bookmarks.html: build/app-profile src/app-profile/bookmarks.html
|
|
||||||
cp src/app-profile/bookmarks.html build/app-profile/bookmarks.html
|
|
||||||
|
|
||||||
build/app-profile/storage-sync.sqlite: build/app-profile src/app-profile/storage-sync.sqlite
|
build/app-profile/storage-sync.sqlite: build/app-profile src/app-profile/storage-sync.sqlite
|
||||||
cp src/app-profile/storage-sync.sqlite build/app-profile/storage-sync.sqlite
|
cp src/app-profile/storage-sync.sqlite build/app-profile/storage-sync.sqlite
|
||||||
|
|
||||||
copy-app-xpi: build/{73a6fe31-595d-460b-a920-fcc0f8843232}.xpi build/https-everywhere-eff@eff.org.xpi build/i2ppb@eyedeekay.github.io.xpi build/app-profile/extensions
|
|
||||||
cp build/{73a6fe31-595d-460b-a920-fcc0f8843232}.xpi "build/app-profile/extensions/{73a6fe31-595d-460b-a920-fcc0f8843232}.xpi"
|
|
||||||
cp build/https-everywhere-eff@eff.org.xpi "build/app-profile/extensions/https-everywhere-eff@eff.org.xpi"
|
|
||||||
cp build/i2ppb@eyedeekay.github.io.xpi build/app-profile/extensions/i2ppb@eyedeekay.github.io.xpi
|
|
||||||
@@ -1,55 +1,4 @@
|
|||||||
orig:
|
orig:
|
||||||
tar --exclude=debian --exclude=.git -cvzf ../i2p-firefox-profile_$(PROFILE_VERSION).orig.tar.gz .
|
tar --exclude=debian --exclude=.git -cvzf ../i2p-firefox-profile_$(PROFILE_VERSION).orig.tar.gz .
|
||||||
|
|
||||||
## HOWTO: If you need to release a package to launchpad, build for the oldest
|
## HOWTO: Don't bother. See http://i2pgit.org/idk/i2p.plugins.firefox debian jpackages.
|
||||||
## release launchpad supports(bionic AFIACT). Then, after the build is
|
|
||||||
## published, copy it to the other distributions. When bionic is out of date,
|
|
||||||
## update it to the new LTS.
|
|
||||||
|
|
||||||
bionic:
|
|
||||||
@sed -i "s|`head -n 1 debian/changelog`|i2p-firefox-profile ($(PROFILE_VERSION)-1) bionic; urgency=medium|g" debian/changelog
|
|
||||||
make orig
|
|
||||||
debuild -S
|
|
||||||
make dput
|
|
||||||
|
|
||||||
focal:
|
|
||||||
@sed -i "s|`head -n 1 debian/changelog`|i2p-firefox-profile ($(PROFILE_VERSION)-1) focal; urgency=medium|g" debian/changelog
|
|
||||||
make orig
|
|
||||||
debuild -S
|
|
||||||
make dput
|
|
||||||
|
|
||||||
groovy:
|
|
||||||
@sed -i "s|`head -n 1 debian/changelog`|i2p-firefox-profile ($(PROFILE_VERSION)-1) groovy; urgency=medium|g" debian/changelog
|
|
||||||
make orig
|
|
||||||
debuild -S
|
|
||||||
make dput
|
|
||||||
|
|
||||||
buster:
|
|
||||||
@sed -i "s|`head -n 1 debian/changelog`|i2p-firefox-profile ($(PROFILE_VERSION)-1) buster; urgency=medium|g" debian/changelog
|
|
||||||
make orig
|
|
||||||
debuild -S
|
|
||||||
make dput
|
|
||||||
|
|
||||||
bullseye:
|
|
||||||
@sed -i "s|`head -n 1 debian/changelog`|i2p-firefox-profile ($(PROFILE_VERSION)-1) bullseye; urgency=medium|g" debian/changelog
|
|
||||||
make orig
|
|
||||||
debuild -S
|
|
||||||
make dput
|
|
||||||
|
|
||||||
trixie:
|
|
||||||
@sed -i "s|`head -n 1 debian/changelog`|i2p-firefox-profile ($(PROFILE_VERSION)-1) trixie; urgency=medium|g" debian/changelog
|
|
||||||
make orig
|
|
||||||
debuild -S
|
|
||||||
make dput
|
|
||||||
|
|
||||||
sid:
|
|
||||||
@sed -i "s|`head -n 1 debian/changelog`|i2p-firefox-profile ($(PROFILE_VERSION)-1) sid; urgency=medium|g" debian/changelog
|
|
||||||
make orig
|
|
||||||
debuild -S
|
|
||||||
make dput
|
|
||||||
|
|
||||||
dput:
|
|
||||||
dput --simulate --force ppa:i2p-community/ppa ../i2p-firefox-profile_$(PROFILE_VERSION)-1_source.changes || exit
|
|
||||||
dput --force ppa:i2p-community/ppa ../i2p-firefox-profile_$(PROFILE_VERSION)-1_source.changes
|
|
||||||
|
|
||||||
launchpad: bionic
|
|
||||||
|
|||||||
@@ -1,12 +1 @@
|
|||||||
docker:
|
# DEPRECATED: see https://i2pgit.org/idk/i2p.plugins.firefox for much better replacement.
|
||||||
docker build -t geti2p/i2p.firefox .
|
|
||||||
|
|
||||||
xhost:
|
|
||||||
xhost + local:docker
|
|
||||||
|
|
||||||
run: docker xhost
|
|
||||||
docker run -it --rm \
|
|
||||||
--net=host \
|
|
||||||
-e DISPLAY=unix$(DISPLAY) \
|
|
||||||
-v /tmp/.X11-unix:/tmp/.X11-unix \
|
|
||||||
geti2p/i2p.firefox firefox --profile /src/build/profile
|
|
||||||
@@ -1,25 +1 @@
|
|||||||
|
#DEPRECATED moved to i2p.plugins.firefox as "Base/Strict Mode"
|
||||||
build-extensions: extensions build/i2ppb@eyedeekay.github.io.xpi build/{73a6fe31-595d-460b-a920-fcc0f8843232}.xpi build/https-everywhere-eff@eff.org.xpi
|
|
||||||
|
|
||||||
build/i2ppb@eyedeekay.github.io.xpi: i2psetproxy.url
|
|
||||||
curl -L `cat i2psetproxy.url` > build/i2ppb@eyedeekay.github.io.xpi
|
|
||||||
|
|
||||||
build/{73a6fe31-595d-460b-a920-fcc0f8843232}.xpi: NoScript.url
|
|
||||||
curl -L `cat NoScript.url` > "build/{73a6fe31-595d-460b-a920-fcc0f8843232}.xpi"
|
|
||||||
|
|
||||||
build/https-everywhere-eff@eff.org.xpi: HTTPSEverywhere.url
|
|
||||||
curl -L `cat HTTPSEverywhere.url` > build/https-everywhere-eff@eff.org.xpi
|
|
||||||
|
|
||||||
clean-extensions:
|
|
||||||
rm -fv i2psetproxy.url NoScript.url HTTPSEverywhere.url build/i2ppb@eyedeekay.github.io.xpi build/{73a6fe31-595d-460b-a920-fcc0f8843232}.xpi build/https-everywhere-eff@eff.org.xpi
|
|
||||||
|
|
||||||
extensions: HTTPSEverywhere.url NoScript.url i2psetproxy.url
|
|
||||||
|
|
||||||
HTTPSEverywhere.url:
|
|
||||||
@echo `./amo-version.sh https-everywhere` > HTTPSEverywhere.url
|
|
||||||
|
|
||||||
NoScript.url:
|
|
||||||
@echo `./amo-version.sh noscript` > NoScript.url
|
|
||||||
|
|
||||||
i2psetproxy.url:
|
|
||||||
@echo `./amo-version.sh i2p-in-private-browsing` > i2psetproxy.url
|
|
||||||
@@ -1,31 +1 @@
|
|||||||
|
#DEPRECATED moved to i2p.plugins.firefox as "Usability Mode"
|
||||||
build-new-extensions: build/i2ppb@eyedeekay.github.io.xpi build/uBlock0@raymondhill.net.xpi build/jsr@javascriptrestrictor.xpi build/onioncbt@eyedeekay.github.io.xpi build/{b86e4813-687a-43e6-ab65-0bde4ab75758}.xpi
|
|
||||||
|
|
||||||
build/uBlock0@raymondhill.net.xpi:
|
|
||||||
curl -L `cat UBlockOrigin.url` > build/uBlock0@raymondhill.net.xpi
|
|
||||||
|
|
||||||
build/jsr@javascriptrestrictor.xpi:
|
|
||||||
curl -L `cat JShelter.url` > build/jsr@javascriptrestrictor.xpi
|
|
||||||
|
|
||||||
build/onioncbt@eyedeekay.github.io.xpi:
|
|
||||||
curl -L `cat onioncontainer.url` > build/onioncbt@eyedeekay.github.io.xpi
|
|
||||||
|
|
||||||
build/{b86e4813-687a-43e6-ab65-0bde4ab75758}.xpi:
|
|
||||||
curl -L `cat LocalCDN.url` > build//{b86e4813-687a-43e6-ab65-0bde4ab75758}.xpi
|
|
||||||
|
|
||||||
UBlockOrigin.url:
|
|
||||||
@echo `./amo-version.sh ublock-origin` > UBlockOrigin.url
|
|
||||||
|
|
||||||
JShelter.url:
|
|
||||||
@echo "`./amo-version.sh javascript-restrictor`" > JShelter.url
|
|
||||||
|
|
||||||
onioncontainer.url:
|
|
||||||
@echo `./amo-version.sh onion-in-container-browsing` > onioncontainer.url
|
|
||||||
|
|
||||||
LocalCDN.url:
|
|
||||||
@echo `./amo-version.sh localcdn-fork-of-decentraleyes` > LocalCDN.url
|
|
||||||
|
|
||||||
clean-new-extensions:
|
|
||||||
rm -f UBlockOrigin.url JShelter.url onioncontainer.url LocalCDN.url build/i2ppb@eyedeekay.github.io.xpi build/onioncbt@eyedeekay.github.io.xpi
|
|
||||||
|
|
||||||
new-extensions: UBlockOrigin.url JShelter.url onioncontainer.url LocalCDN.url
|
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
profile: build/profile/user.js build/profile/prefs.js build/profile/bookmarks.html build/profile/storage-sync.sqlite copy-xpi
|
profile: .version build/profile/storage-sync.sqlite
|
||||||
|
|
||||||
profile.tgz: .version profile
|
profile.tgz: .version profile
|
||||||
# $(eval PROFILE_VERSION := $(shell cat src/profile/version.txt))
|
# $(eval PROFILE_VERSION := $(shell cat src/profile/version.txt))
|
||||||
@@ -8,26 +8,5 @@ profile.tgz: .version profile
|
|||||||
install -m755 src/unix/i2pbrowser.sh build/profile/i2pbrowser.sh
|
install -m755 src/unix/i2pbrowser.sh build/profile/i2pbrowser.sh
|
||||||
cd build && tar -czf profile-$(PROFILE_VERSION).tgz profile && cp profile-$(PROFILE_VERSION).tgz ../
|
cd build && tar -czf profile-$(PROFILE_VERSION).tgz profile && cp profile-$(PROFILE_VERSION).tgz ../
|
||||||
|
|
||||||
src/profile/user.js:
|
|
||||||
wget -O src/profile/user.js "https://github.com/arkenfox/user.js/raw/master/user.js"
|
|
||||||
sed -i 's|user_pref("extensions.autoDisableScopes", 15);|user_pref("extensions.autoDisableScopes", 0);|g src/profile/user.js
|
|
||||||
sed -i 's|user_pref("extensions.enabledScopes", 5);|user_pref("extensions.enabledScopes", 1);|g' src/profile/user.js
|
|
||||||
sed -i 's|user_pref("dom.security.https_only_mode", true);|user_pref("dom.security.https_only_mode", false);|g' src/profile/user.js
|
|
||||||
|
|
||||||
build/profile/user.js: build/profile src/profile/user.js
|
|
||||||
cp src/profile/user.js build/profile/user.js
|
|
||||||
cp src/profile/user-overrides.js build/profile/user-overrides.js
|
|
||||||
|
|
||||||
build/profile/prefs.js: build/profile src/profile/prefs.js
|
|
||||||
cp src/profile/prefs.js build/profile/prefs.js
|
|
||||||
|
|
||||||
build/profile/bookmarks.html: build/profile src/profile/bookmarks.html
|
|
||||||
cp src/profile/bookmarks.html build/profile/bookmarks.html
|
|
||||||
|
|
||||||
build/profile/storage-sync.sqlite: build/profile src/profile/storage-sync.sqlite
|
build/profile/storage-sync.sqlite: build/profile src/profile/storage-sync.sqlite
|
||||||
cp src/profile/storage-sync.sqlite build/profile/storage-sync.sqlite
|
cp src/profile/storage-sync.sqlite build/profile/storage-sync.sqlite
|
||||||
|
|
||||||
copy-xpi: build/{73a6fe31-595d-460b-a920-fcc0f8843232}.xpi build/https-everywhere-eff@eff.org.xpi build/i2ppb@eyedeekay.github.io.xpi build/profile/extensions
|
|
||||||
cp build/{73a6fe31-595d-460b-a920-fcc0f8843232}.xpi "build/profile/extensions/{73a6fe31-595d-460b-a920-fcc0f8843232}.xpi"
|
|
||||||
cp build/https-everywhere-eff@eff.org.xpi "build/profile/extensions/https-everywhere-eff@eff.org.xpi"
|
|
||||||
cp build/i2ppb@eyedeekay.github.io.xpi build/profile/extensions/i2ppb@eyedeekay.github.io.xpi
|
|
||||||
|
|||||||
@@ -8,3 +8,8 @@
|
|||||||
#hidenav {display:block; }
|
#hidenav {display:block; }
|
||||||
#shownav:target {display: block; }
|
#shownav:target {display: block; }
|
||||||
#hidenav:target {display: none; }
|
#hidenav:target {display: none; }
|
||||||
|
|
||||||
|
#donate {display:none; }
|
||||||
|
#hidedonate {display:block; }
|
||||||
|
#donate:target {display: block; }
|
||||||
|
#hidedonate:target {display: none; }
|
||||||
|
|||||||
8
sign.sh
8
sign.sh
@@ -37,9 +37,9 @@ linuxsign() {
|
|||||||
|
|
||||||
if [ "$(expr substr $(uname -s) 1 5)" == "Linux" ]; then
|
if [ "$(expr substr $(uname -s) 1 5)" == "Linux" ]; then
|
||||||
JAVA_HOME=`type -p java|xargs readlink -f|xargs dirname|xargs dirname`
|
JAVA_HOME=`type -p java|xargs readlink -f|xargs dirname|xargs dirname`
|
||||||
linuxsign I2P-Profile-Installer-$I2P_VERSION.exe
|
linuxsign I2P-Easy-Install-Bundle-$I2P_VERSION.exe
|
||||||
cp "I2P-Profile-Installer-$I2P_VERSION.exe" "I2P-Profile-Installer-$I2P_VERSION-signed.exe"
|
cp "I2P-Easy-Install-Bundle-$I2P_VERSION.exe" "I2P-Easy-Install-Bundle-$I2P_VERSION-signed.exe"
|
||||||
else
|
else
|
||||||
signtool.exe sign -a "I2P-Profile-Installer-$I2P_VERSION.exe"
|
signtool.exe sign -a "I2P-Easy-Install-Bundle-$I2P_VERSION.exe"
|
||||||
cp "I2P-Profile-Installer-$I2P_VERSION.exe" "I2P-Profile-Installer-$I2P_VERSION-signed.exe"
|
cp "I2P-Easy-Install-Bundle-$I2P_VERSION.exe" "I2P-Easy-Install-Bundle-$I2P_VERSION-signed.exe"
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -1,26 +1,45 @@
|
|||||||
|
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
|
||||||
|
|
||||||
|
/* only needed once */
|
||||||
|
|
||||||
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* only needed once */
|
|
||||||
@namespace html url("http://www.w3.org/1999/xhtml");
|
@namespace html url("http://www.w3.org/1999/xhtml");
|
||||||
|
#PersonalToolbar,
|
||||||
#PersonalToolbar, #PanelUI-Button, #PanelUI-menu-button, #star-button, #forward-button, #home-button, #bookmarks-toolbar-button, #library-button, #sidebar-button, #pocket-button, #fxa-toolbar-menu-button, #reader-mode-button, #identity-icon {
|
#PanelUI-Button,
|
||||||
|
#PanelUI-menu-button,
|
||||||
|
#star-button,
|
||||||
|
#forward-button,
|
||||||
|
#home-button,
|
||||||
|
#bookmarks-toolbar-button,
|
||||||
|
#library-button,
|
||||||
|
#sidebar-button,
|
||||||
|
#pocket-button,
|
||||||
|
#fxa-toolbar-menu-button,
|
||||||
|
#reader-mode-button,
|
||||||
|
#identity-icon {
|
||||||
visibility: collapse;
|
visibility: collapse;
|
||||||
}
|
}
|
||||||
|
|
||||||
#urlbar-background {background-color: black !important;}
|
#urlbar-background {
|
||||||
|
background-color: black !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/* Remove back button circle */
|
/* Remove back button circle */
|
||||||
|
|
||||||
#back-button:not(:hover),
|
#back-button:not(:hover),
|
||||||
#back-button:not(:hover) > .toolbarbutton-icon {
|
#back-button:not(:hover)>.toolbarbutton-icon {
|
||||||
background: transparent !important;
|
background: transparent !important;
|
||||||
border: none !important;
|
border: none !important;
|
||||||
box-shadow: none !important;
|
box-shadow: none !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
#back-button:hover,
|
#back-button:hover,
|
||||||
#back-button:hover > .toolbarbutton-icon {
|
#back-button:hover>.toolbarbutton-icon {
|
||||||
border: none !important;
|
border: none !important;
|
||||||
border-radius: 2px !important;
|
border-radius: 2px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
#urlbar-container, #nav-bar { visibility: collapse !important }
|
#urlbar-container,
|
||||||
|
#nav-bar {
|
||||||
|
visibility: collapse !important
|
||||||
}
|
}
|
||||||
@@ -1 +1 @@
|
|||||||
1.9.5
|
1.9.6
|
||||||
|
|||||||
@@ -3,8 +3,7 @@ UniCode true
|
|||||||
|
|
||||||
!define APPNAME "I2PBrowser-Launcher"
|
!define APPNAME "I2PBrowser-Launcher"
|
||||||
!define COMPANYNAME "I2P"
|
!define COMPANYNAME "I2P"
|
||||||
!define DESCRIPTION "This launches Firefox with a browser profile pre-configured to use i2p"
|
!define DESCRIPTION "This is a tool which contains an I2P router, a bundled JVM, and a tool for automatically configuring a browser to use with I2P."
|
||||||
!define FIREFOX_MESSAGE "Could not find Firefox. Please point to where you have installed Firefox. If you have not installed Firefox yet, exit this installer and install Firefox, then start this installer again."
|
|
||||||
!define I2P_MESSAGE "Could not find I2P. Installing portable Jpackaged I2P."
|
!define I2P_MESSAGE "Could not find I2P. Installing portable Jpackaged I2P."
|
||||||
!define LAUNCH_TEXT "Start I2P?"
|
!define LAUNCH_TEXT "Start I2P?"
|
||||||
!define LICENSE_TITLE "Many Licenses"
|
!define LICENSE_TITLE "Many Licenses"
|
||||||
@@ -30,7 +29,7 @@ LicenseData "licenses\LICENSE.txt"
|
|||||||
# This will be in the installer/uninstaller's title bar
|
# This will be in the installer/uninstaller's title bar
|
||||||
Name "${COMPANYNAME} - ${APPNAME}"
|
Name "${COMPANYNAME} - ${APPNAME}"
|
||||||
Icon ui2pbrowser_icon.ico
|
Icon ui2pbrowser_icon.ico
|
||||||
OutFile "I2P-Profile-Installer-${VERSIONMAJOR}.${VERSIONMINOR}.${VERSIONBUILD}.exe"
|
OutFile "I2P-Easy-Install-Bundle-${VERSIONMAJOR}.${VERSIONMINOR}.${VERSIONBUILD}.exe"
|
||||||
|
|
||||||
RequestExecutionLevel user
|
RequestExecutionLevel user
|
||||||
|
|
||||||
@@ -128,8 +127,6 @@ PageEx directory
|
|||||||
PageExEnd
|
PageExEnd
|
||||||
Page instfiles
|
Page instfiles
|
||||||
|
|
||||||
#!include i2pbrowser-mozcompat.nsi
|
|
||||||
|
|
||||||
Function .onInit
|
Function .onInit
|
||||||
StrCpy $I2PINSTEXE "${I2PINSTEXE_USERMODE}"
|
StrCpy $I2PINSTEXE "${I2PINSTEXE_USERMODE}"
|
||||||
UserInfo::GetAccountType
|
UserInfo::GetAccountType
|
||||||
@@ -213,16 +210,6 @@ Function installerFunction
|
|||||||
SetOutPath "$INSTDIR\licenses"
|
SetOutPath "$INSTDIR\licenses"
|
||||||
File /a /r "licenses/*"
|
File /a /r "licenses/*"
|
||||||
|
|
||||||
# Install the profile
|
|
||||||
createDirectory "$INSTDIR\firefox.profile.i2p"
|
|
||||||
SetOutPath "$INSTDIR\firefox.profile.i2p"
|
|
||||||
File /a /r "profile/*"
|
|
||||||
|
|
||||||
# Install the config profile
|
|
||||||
createDirectory "$INSTDIR\firefox.profile.config.i2p"
|
|
||||||
SetOutPath "$INSTDIR\firefox.profile.config.i2p"
|
|
||||||
File /a /r "app-profile/*"
|
|
||||||
|
|
||||||
SetOutPath "$I2PINSTEXE"
|
SetOutPath "$I2PINSTEXE"
|
||||||
createDirectory "$SMPROGRAMS\${APPNAME}"
|
createDirectory "$SMPROGRAMS\${APPNAME}"
|
||||||
CreateShortCut "$SMPROGRAMS\${APPNAME}\Browse I2P.lnk" "$I2PINSTEXE\I2P.exe" "" "$INSTDIR\ui2pbrowser_icon.ico"
|
CreateShortCut "$SMPROGRAMS\${APPNAME}\Browse I2P.lnk" "$I2PINSTEXE\I2P.exe" "" "$INSTDIR\ui2pbrowser_icon.ico"
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
!define I2P_VERSION 1.9.5
|
!define I2P_VERSION 1.9.6
|
||||||
|
|||||||
@@ -1,37 +0,0 @@
|
|||||||
; This Source Code Form is subject to the terms of the Mozilla Public
|
|
||||||
; License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
||||||
; file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
||||||
|
|
||||||
; Returns 1 in $0 if we should install the 64-bit build, or 0 if not.
|
|
||||||
; The requirements for selecting the 64-bit build to install are:
|
|
||||||
; 1) Running a 64-bit OS (we've already checked the OS version).
|
|
||||||
; 2) An amount of RAM strictly greater than RAM_NEEDED_FOR_64BIT
|
|
||||||
; 3) No third-party products installed that cause issues with the 64-bit build.
|
|
||||||
; Currently this includes Lenovo OneKey Theater and Lenovo Energy Management.
|
|
||||||
Function ShouldInstall64Bit
|
|
||||||
StrCpy $0 0
|
|
||||||
|
|
||||||
${IfNot} ${RunningX64}
|
|
||||||
Return
|
|
||||||
${EndIf}
|
|
||||||
|
|
||||||
System::Call "*(i 64, i, l 0, l, l, l, l, l, l)p.r1"
|
|
||||||
System::Call "Kernel32::GlobalMemoryStatusEx(p r1)"
|
|
||||||
System::Call "*$1(i, i, l.r2, l, l, l, l, l, l)"
|
|
||||||
System::Free $1
|
|
||||||
${If} $2 L<= ${RAM_NEEDED_FOR_64BIT}
|
|
||||||
Return
|
|
||||||
${EndIf}
|
|
||||||
|
|
||||||
; Lenovo OneKey Theater can theoretically be in a directory other than this
|
|
||||||
; one, because some installer versions let you change it, but it's unlikely.
|
|
||||||
${If} ${FileExists} "$PROGRAMFILES32\Lenovo\Onekey Theater\windowsapihookdll64.dll"
|
|
||||||
Return
|
|
||||||
${EndIf}
|
|
||||||
|
|
||||||
${If} ${FileExists} "$PROGRAMFILES32\Lenovo\Energy Management\Energy Management.exe"
|
|
||||||
Return
|
|
||||||
${EndIf}
|
|
||||||
|
|
||||||
StrCpy $0 1
|
|
||||||
FunctionEnd
|
|
||||||
@@ -1,71 +0,0 @@
|
|||||||
|
|
||||||
;;
|
|
||||||
;; TODO: Examine licensing for this function.
|
|
||||||
;;https://nsis.sourceforge.io/StrRep
|
|
||||||
|
|
||||||
!define StrRep "!insertmacro StrRep"
|
|
||||||
!macro StrRep output string old new
|
|
||||||
Push `${string}`
|
|
||||||
Push `${old}`
|
|
||||||
Push `${new}`
|
|
||||||
!ifdef __UNINSTALL__
|
|
||||||
Call un.StrRep
|
|
||||||
!else
|
|
||||||
Call StrRep
|
|
||||||
!endif
|
|
||||||
Pop ${output}
|
|
||||||
!macroend
|
|
||||||
|
|
||||||
!macro Func_StrRep un
|
|
||||||
Function ${un}StrRep
|
|
||||||
Exch $R2 ;new
|
|
||||||
Exch 1
|
|
||||||
Exch $R1 ;old
|
|
||||||
Exch 2
|
|
||||||
Exch $R0 ;string
|
|
||||||
Push $R3
|
|
||||||
Push $R4
|
|
||||||
Push $R5
|
|
||||||
Push $R6
|
|
||||||
Push $R7
|
|
||||||
Push $R8
|
|
||||||
Push $R9
|
|
||||||
|
|
||||||
StrCpy $R3 0
|
|
||||||
StrLen $R4 $R1
|
|
||||||
StrLen $R6 $R0
|
|
||||||
StrLen $R9 $R2
|
|
||||||
loop:
|
|
||||||
StrCpy $R5 $R0 $R4 $R3
|
|
||||||
StrCmp $R5 $R1 found
|
|
||||||
StrCmp $R3 $R6 done
|
|
||||||
IntOp $R3 $R3 + 1 ;move offset by 1 to check the next character
|
|
||||||
Goto loop
|
|
||||||
found:
|
|
||||||
StrCpy $R5 $R0 $R3
|
|
||||||
IntOp $R8 $R3 + $R4
|
|
||||||
StrCpy $R7 $R0 "" $R8
|
|
||||||
StrCpy $R0 $R5$R2$R7
|
|
||||||
StrLen $R6 $R0
|
|
||||||
IntOp $R3 $R3 + $R9 ;move offset by length of the replacement string
|
|
||||||
Goto loop
|
|
||||||
done:
|
|
||||||
|
|
||||||
Pop $R9
|
|
||||||
Pop $R8
|
|
||||||
Pop $R7
|
|
||||||
Pop $R6
|
|
||||||
Pop $R5
|
|
||||||
Pop $R4
|
|
||||||
Pop $R3
|
|
||||||
Push $R0
|
|
||||||
Push $R1
|
|
||||||
Pop $R0
|
|
||||||
Pop $R1
|
|
||||||
Pop $R0
|
|
||||||
Pop $R2
|
|
||||||
Exch $R1
|
|
||||||
FunctionEnd
|
|
||||||
!macroend
|
|
||||||
!insertmacro Func_StrRep ""
|
|
||||||
!insertmacro Func_StrRep "un."
|
|
||||||
@@ -1,3 +1,3 @@
|
|||||||
!define VERSIONMAJOR 1
|
!define VERSIONMAJOR 1
|
||||||
!define VERSIONMINOR 9
|
!define VERSIONMINOR 9
|
||||||
!define VERSIONBUILD 5
|
!define VERSIONBUILD 6
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
1.9.5
|
1.9.6
|
||||||
|
|||||||
@@ -153,5 +153,12 @@ input {
|
|||||||
|
|
||||||
#navbar {
|
#navbar {
|
||||||
float: right;
|
float: right;
|
||||||
width: 10%;
|
width: 15%;
|
||||||
|
}
|
||||||
|
#returnhome {
|
||||||
|
font-size: xxx-large;
|
||||||
|
display: inline;
|
||||||
|
}
|
||||||
|
h1 {
|
||||||
|
display: inline;
|
||||||
}
|
}
|
||||||
|
|||||||
17
targz.sh
Executable file
17
targz.sh
Executable file
@@ -0,0 +1,17 @@
|
|||||||
|
#! /usr/bin/env bash
|
||||||
|
|
||||||
|
SCRIPT_DIR=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd -P)
|
||||||
|
cd "$SCRIPT_DIR" || exit 1
|
||||||
|
|
||||||
|
. "$SCRIPT_DIR/config.sh"
|
||||||
|
|
||||||
|
if [ -f config_overide.sh ]; then
|
||||||
|
. "$SCRIPT_DIR/config_override.sh"
|
||||||
|
fi
|
||||||
|
|
||||||
|
./clean.sh
|
||||||
|
wsl make distclean
|
||||||
|
wsl make clean-extensions
|
||||||
|
wsl make extensions
|
||||||
|
./build.sh
|
||||||
|
tar czvf I2P.tar.gz I2P
|
||||||
Reference in New Issue
Block a user