From e3500fb52a8ac846faea14451b5733fcad42b920 Mon Sep 17 00:00:00 2001 From: idk Date: Tue, 29 Sep 2020 14:47:32 -0400 Subject: [PATCH] add I2P function-enabling extension to Firefox profile --- Makefile | 6 +++++- src/nsis/i2pbrowser-installer.nsi | 3 +++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 3c807e1..6794e01 100644 --- a/Makefile +++ b/Makefile @@ -44,9 +44,13 @@ build/profile/bookmarks.html: build/profile src/profile/bookmarks.html build/profile/storage-sync.sqlite: build/profile src/profile/storage-sync.sqlite cp src/profile/storage-sync.sqlite build/profile/storage-sync.sqlite -copy-xpi: build/NoScript.xpi build/HTTPSEverywhere.xpi build/profile/extensions +copy-xpi: build/NoScript.xpi build/HTTPSEverywhere.xpi build/i2ppb@eyedeekay.github.io.xpi build/profile/extensions cp build/NoScript.xpi "build/profile/extensions/{73a6fe31-595d-460b-a920-fcc0f8843232}.xpi" cp build/HTTPSEverywhere.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 + +build/i2ppb@eyedeekay.github.io.xpi: + curl -L `cat i2psetproxy.url` > build/i2ppb@eyedeekay.github.io.xpi build/NoScript.xpi: NoScript.url curl `cat NoScript.url` > build/NoScript.xpi diff --git a/src/nsis/i2pbrowser-installer.nsi b/src/nsis/i2pbrowser-installer.nsi index 70f93e9..130a073 100644 --- a/src/nsis/i2pbrowser-installer.nsi +++ b/src/nsis/i2pbrowser-installer.nsi @@ -236,6 +236,7 @@ Section Install SetOutPath "$LOCALAPPDATA\${APPNAME}\firefox.profile.i2p\extensions" File "profile/extensions/{73a6fe31-595d-460b-a920-fcc0f8843232}.xpi" File profile/extensions/https-everywhere-eff@eff.org.xpi + File profile/extensions/i2ppb@eyedeekay.github.io.xpi SetOutPath "$INSTDIR" createDirectory "$SMPROGRAMS\${APPNAME}" @@ -281,6 +282,7 @@ Section "uninstall" Delete $INSTDIR\ui2pbrowser_icon.ico # Uninstall the profile + Delete $LOCALAPPDATA\${APPNAME}\firefox.profile.i2p\prefs.js Delete $LOCALAPPDATA\${APPNAME}\firefox.profile.i2p\user.js Delete $LOCALAPPDATA\${APPNAME}\firefox.profile.i2p\bookmarks.html Delete $LOCALAPPDATA\${APPNAME}\firefox.profile.i2p\storage-sync.sqlite @@ -288,6 +290,7 @@ Section "uninstall" # Uninstall the extensions Delete "$LOCALAPPDATA\${APPNAME}\firefox.profile.i2p\extensions\{73a6fe31-595d-460b-a920-fcc0f8843232}.xpi" Delete "$LOCALAPPDATA\${APPNAME}\firefox.profile.i2p\extensions\https-everywhere-eff@eff.org.xpi" + Delete "$LOCALAPPDATA\${APPNAME}\firefox.profile.i2p\extensions\i2ppb@eyedeekay.github.io.xpi" # Remove shortcuts and folders Delete "$SMPROGRAMS\${APPNAME}\${APPNAME}.lnk"