2020-03-05 17:31:36 -05:00
|
|
|
|
|
|
|
PREFIX?=/usr
|
2019-09-24 22:33:30 -04:00
|
|
|
|
2019-05-02 17:31:04 -04:00
|
|
|
default: zip
|
2019-02-05 17:27:39 -05:00
|
|
|
|
2020-03-06 00:34:12 -05:00
|
|
|
PWD=`pwd`
|
2020-03-05 17:31:36 -05:00
|
|
|
|
2019-02-07 22:19:43 -05:00
|
|
|
install: uninstall
|
2019-10-07 23:48:15 -04:00
|
|
|
mkdir -p $(PREFIX)/share/webext/i2ppb@eyedeekay.github.io \
|
2019-10-07 18:45:52 -04:00
|
|
|
$(PREFIX)/share/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}
|
2020-03-06 00:34:12 -05:00
|
|
|
@echo $(PWD)
|
|
|
|
cp -v ./* $(PREFIX)/share/webext/i2ppb@eyedeekay.github.io/; true
|
|
|
|
cp -vr ./i2pcontrol $(PREFIX)/share/webext/i2ppb@eyedeekay.github.io/i2pcontrol
|
|
|
|
cp -vr ./torrent $(PREFIX)/share/webext/i2ppb@eyedeekay.github.io/torrent
|
|
|
|
cp -vr ./_locales $(PREFIX)/share/webext/i2ppb@eyedeekay.github.io/_locales
|
|
|
|
cp -vr ./icons $(PREFIX)/share/webext/i2ppb@eyedeekay.github.io/icons
|
|
|
|
cp -vr ./options $(PREFIX)/share/webext/i2ppb@eyedeekay.github.io/options
|
2020-03-05 17:31:36 -05:00
|
|
|
make link
|
|
|
|
|
|
|
|
link:
|
|
|
|
ln -sf $(PREFIX)/share/webext/i2ppb@eyedeekay.github.io \
|
2020-03-05 18:27:21 -05:00
|
|
|
$(PREFIX)/share/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}/i2ppb@eyedeekay.github.io
|
2019-02-05 17:27:39 -05:00
|
|
|
|
|
|
|
uninstall:
|
2019-10-07 23:48:15 -04:00
|
|
|
rm -rf $(PREFIX)/share/webext/i2ppb@eyedeekay.github.io \
|
|
|
|
$(PREFIX)/share/webext/i2psetproxy.js@eyedeekay.github.io \
|
2020-03-05 17:31:36 -05:00
|
|
|
$(PREFIX)/share/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}/i2ppb@eyedeekay.github.io
|
2019-02-05 17:27:39 -05:00
|
|
|
|
2019-11-23 14:24:56 -05:00
|
|
|
|
2019-10-07 18:45:52 -04:00
|
|
|
ls:
|
2019-10-07 23:48:15 -04:00
|
|
|
ls -lah $(PREFIX)/share/webext/i2ppb@eyedeekay.github.io; \
|
2019-10-07 18:45:52 -04:00
|
|
|
ls -lah $(PREFIX)/share/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}
|
|
|
|
|
2020-03-05 17:31:36 -05:00
|
|
|
clean: rc clean-artifacts
|
2020-11-07 22:23:45 -05:00
|
|
|
rm -fr ../i2psetproxy.js.zip ../i2p_proxy*.xpi *.torrent #../i2psetproxy.js_*.*
|
2019-02-07 21:22:58 -05:00
|
|
|
|
2019-10-08 19:10:13 -04:00
|
|
|
## EVEN RELEASES are AMO RELEASES
|
|
|
|
## ODD RELEASES are SELFHOSTED RELEASES
|
|
|
|
|
2025-02-20 14:53:29 -05:00
|
|
|
MOZ_VERSION=2.8.2
|
|
|
|
VERSION=2.8.3
|
2020-01-06 12:15:22 -05:00
|
|
|
|
2022-10-16 16:08:01 -04:00
|
|
|
LAST_VERSION=$(shell grep '"version"' manifest.json | sed 's|"version"||g' | tr -d " :,'" | tr -d '"')
|
2019-03-04 00:11:15 -05:00
|
|
|
|
2019-11-10 20:28:31 -05:00
|
|
|
YELLOW=F7E59A
|
|
|
|
ORANGE=FFC56D
|
|
|
|
GREY=D9D9D6
|
|
|
|
BLUE=A4C8E1
|
|
|
|
PURPLE=A48fE1
|
|
|
|
|
|
|
|
colors:
|
2022-10-16 15:37:01 -04:00
|
|
|
@echo "'$(LAST_VERSION)'"
|
2019-11-10 20:28:31 -05:00
|
|
|
@echo " yellow $(YELLOW) \n orange $(ORANGE) \n grey $(GREY) \n blue $(BLUE) \n purple $(PURPLE)"
|
|
|
|
|
2019-10-31 14:50:33 -04:00
|
|
|
amo-readme:
|
|
|
|
markdown README.md | \
|
|
|
|
sed 's|<p>||g' | \
|
|
|
|
sed 's|</p>||g' | \
|
|
|
|
sed 's|<h1>|<strong>|g' | \
|
|
|
|
sed 's|</h1>|</strong>|g' | \
|
|
|
|
sed 's|<h2>|<strong>|g' | \
|
|
|
|
sed 's|</h2>|</strong>|g' | \
|
|
|
|
sed 's|<h3>|<strong>|g' | \
|
|
|
|
sed 's|</h3>|</strong>|g' | \
|
2019-12-24 13:28:25 -05:00
|
|
|
grep -v '<img' > amo-index.html
|
|
|
|
|
2021-05-26 11:57:43 -04:00
|
|
|
MAGNET=`rhash --magnet i2ppb@eyedeekay.github.io.xpi.torrent`
|
2020-01-04 13:06:32 -05:00
|
|
|
|
2019-12-24 13:28:25 -05:00
|
|
|
index:
|
2019-12-24 13:42:02 -05:00
|
|
|
@echo "<!DOCTYPE html>" > index.html
|
|
|
|
@echo "<html>" >> index.html
|
|
|
|
@echo "<head>" >> index.html
|
|
|
|
@echo " <title>I2P in Private Browsing Mode</title>" >> index.html
|
2020-02-25 23:03:47 -05:00
|
|
|
@echo " <link rel=\"stylesheet\" type=\"text/css\" href=\"home.css\" />" >> index.html
|
|
|
|
@echo " <link rel=\"stylesheet\" type=\"text/css\" href=\"sidebar.css\" />" >> index.html
|
2019-12-24 13:42:02 -05:00
|
|
|
@echo "</head>" >> index.html
|
2020-01-04 13:09:09 -05:00
|
|
|
@echo "<body>" >> index.html
|
2022-11-18 01:26:46 -05:00
|
|
|
@echo "<div class=\"content\" id=\"browserpanel\">" >> index.html
|
2020-02-26 00:29:56 -05:00
|
|
|
sed "s|magnetsub|[Magnet Link]($(MAGNET))|g" README.md | sed 's|README.md|index.html|g' | markdown >> index.html
|
2022-11-18 01:26:46 -05:00
|
|
|
@echo "</div>" >> index.html
|
2020-01-04 13:09:09 -05:00
|
|
|
@echo "</body>" >> index.html
|
2019-12-24 13:42:02 -05:00
|
|
|
@echo "</html>" >> index.html
|
|
|
|
|
2020-01-25 01:29:54 -05:00
|
|
|
torrenthelp:
|
|
|
|
@echo "<!DOCTYPE html>" > torrent/index.html
|
|
|
|
@echo "<html>" >> torrent/index.html
|
|
|
|
@echo "<head>" >> torrent/index.html
|
|
|
|
@echo " <title>I2P in Private Browsing Mode</title>" >> torrent/index.html
|
2020-02-25 23:03:47 -05:00
|
|
|
@echo " <link rel=\"stylesheet\" type=\"text/css\" href=\"../home.css\" />" >> torrent/index.html
|
|
|
|
@echo " <link rel=\"stylesheet\" type=\"text/css\" href=\"../sidebar.css\" />" >> torrent/index.html
|
2020-01-25 01:29:54 -05:00
|
|
|
@echo "</head>" >> torrent/index.html
|
|
|
|
@echo "<body>" >> torrent/index.html
|
|
|
|
sed "s|magnetsub|[Magnet Link]($(MAGNET))|g" torrent/README.md | markdown >> torrent/index.html
|
|
|
|
@echo "</body>" >> torrent/index.html
|
|
|
|
@echo "</html>" >> torrent/index.html
|
2019-10-31 14:50:33 -04:00
|
|
|
|
2020-03-05 17:31:36 -05:00
|
|
|
xpi: getxpi
|
2019-03-03 22:53:15 -05:00
|
|
|
|
|
|
|
version:
|
2022-10-16 22:58:48 -04:00
|
|
|
find . -name '*.json' -exec sed -i 's|$(LAST_VERSION)|$(VERSION)|g' {} \;
|
|
|
|
find . -name '*.json' -exec sed -i 's|$(MOZ_VERSION)|$(VERSION)|g' {} \;
|
2019-03-13 17:50:34 -04:00
|
|
|
|
2019-11-20 19:55:41 -05:00
|
|
|
moz-version:
|
2022-10-16 22:58:48 -04:00
|
|
|
find . -name '*.json' -exec sed -i 's|$(LAST_VERSION)|$(MOZ_VERSION)|g' {} \;
|
|
|
|
find . -name '*.json' -exec sed -i 's|$(VERSION)|$(MOZ_VERSION)|g' {} \;
|
2019-11-28 18:43:32 -05:00
|
|
|
|
|
|
|
rhz-version:
|
2019-11-20 19:55:41 -05:00
|
|
|
|
2019-12-24 16:50:47 -05:00
|
|
|
zip: version
|
2019-10-07 23:48:15 -04:00
|
|
|
zip --exclude="./i2ppb@eyedeekay.github.io.xpi" \
|
2019-10-16 23:59:12 -04:00
|
|
|
--exclude="./i2psetproxy.js@eyedeekay.github.io.xpi" \
|
2019-10-07 18:45:52 -04:00
|
|
|
--exclude="./i2psetproxy.js.png" \
|
2019-10-16 23:59:12 -04:00
|
|
|
--exclude="./i2psetproxy.js.gif" \
|
2019-11-11 21:54:26 -05:00
|
|
|
--exclude="./package.json" \
|
|
|
|
--exclude="./package-lock.json" \
|
2019-11-19 09:35:43 -05:00
|
|
|
--exclude="./.node_modules" \
|
|
|
|
--exclude="./node_modules" \
|
2019-12-24 12:11:06 -05:00
|
|
|
--exclude="./.git" \
|
|
|
|
--exclude="*/*.xpi" \
|
|
|
|
--exclude="web-ext-artifacts" \
|
|
|
|
--exclude="./*.pdf" -r -FS ../i2psetproxy.js.zip *
|
2019-10-07 18:45:52 -04:00
|
|
|
|
2020-02-25 22:38:55 -05:00
|
|
|
rc:
|
|
|
|
@grep "$(VERSION)" debian/changelog
|
|
|
|
@echo "changelog is prepared"
|
2020-03-05 17:31:36 -05:00
|
|
|
rm -f *.xpi
|
2020-02-25 22:38:55 -05:00
|
|
|
|
|
|
|
rtest: rc index torrenthelp
|
|
|
|
|
|
|
|
release: rc index torrenthelp
|
2023-06-10 23:39:06 -04:00
|
|
|
cat desc debian/changelog | grep -B 10 "$(LAST_VERSION)" | github-release release -p -u eyedeekay -r I2P-in-Private-Browsing-Mode-Firefox -t $(VERSION) -n $(VERSION) -d -; true
|
2019-03-04 00:11:15 -05:00
|
|
|
|
2020-02-25 22:38:55 -05:00
|
|
|
update-release:
|
2023-06-10 23:39:06 -04:00
|
|
|
cat desc debian/changelog | grep -B 10 "$(LAST_VERSION)" | github-release edit -p -u eyedeekay -r I2P-in-Private-Browsing-Mode-Firefox -t $(VERSION) -n $(VERSION) -d -; true
|
2020-02-25 22:38:55 -05:00
|
|
|
|
2019-10-08 19:10:13 -04:00
|
|
|
delete-release:
|
2023-06-10 23:39:06 -04:00
|
|
|
github-release delete -u eyedeekay -r I2P-in-Private-Browsing-Mode-Firefox -t $(VERSION); true
|
2019-05-03 18:40:46 -04:00
|
|
|
|
2019-10-08 19:10:13 -04:00
|
|
|
recreate-release: delete-release release upload
|
2019-05-03 18:40:46 -04:00
|
|
|
|
2019-10-07 18:45:52 -04:00
|
|
|
upload: upload-xpi upload-deb
|
|
|
|
|
2021-11-03 00:22:37 -04:00
|
|
|
moz-release: release moz-submit
|
|
|
|
#upload-xpi torrent upload-torrent deb upload-deb upload-rss seed
|
2019-11-19 09:35:43 -05:00
|
|
|
|
2021-10-13 21:25:54 -04:00
|
|
|
full-sign: moz-sign upload-xpi torrent upload-torrent deb upload-deb upload-rss seed
|
|
|
|
|
2019-11-19 09:35:43 -05:00
|
|
|
WEB_EXT_API_KEY=AMO_KEY
|
|
|
|
WEB_EXT_API_SECRET=AMO_SECRET
|
2019-11-22 16:38:36 -05:00
|
|
|
|
2019-11-22 16:39:28 -05:00
|
|
|
|
2019-11-22 16:38:36 -05:00
|
|
|
-include ../api_keys_moz.mk
|
|
|
|
|
|
|
|
tk:
|
|
|
|
echo $(WEB_EXT_API_KEY)
|
2019-11-19 09:35:43 -05:00
|
|
|
|
2020-03-24 18:51:47 -04:00
|
|
|
submit: moz-submit moz-sign
|
2019-11-23 18:54:48 -05:00
|
|
|
|
2019-11-28 19:24:53 -05:00
|
|
|
clean-artifacts:
|
2019-12-24 11:21:07 -05:00
|
|
|
rm -fr web-ext-artifacts/*
|
2019-11-28 19:24:53 -05:00
|
|
|
|
2019-11-19 09:35:43 -05:00
|
|
|
##ODD NUMBERED, SELF-DISTRIBUTED VERSIONS HERE!
|
2019-11-28 19:24:53 -05:00
|
|
|
moz-sign: version clean-artifacts
|
2019-11-19 09:35:43 -05:00
|
|
|
@echo "Using the 'sign' target to instantly sign an extension for self-distribution"
|
|
|
|
@echo "requires a JWT API Key and Secret from addons.mozilla.org to be made available"
|
|
|
|
@echo "to the Makefile under the variables WEB_EXT_API_KEY and WEB_EXT_API_SECRET."
|
2024-07-10 14:28:10 -04:00
|
|
|
$(HOME)/node_modules/.bin/web-ext sign --use-submission-api --channel unlisted --config-discovery false --api-key $(WEB_EXT_API_KEY) --api-secret $(WEB_EXT_API_SECRET) --timeout 900000 #--api-url-prefix http://localhost:3000/api/v4
|
2020-01-03 12:45:17 -05:00
|
|
|
make copyss
|
2020-01-04 16:46:19 -05:00
|
|
|
sleep 5
|
2020-01-03 12:45:17 -05:00
|
|
|
|
|
|
|
copyss:
|
2020-03-05 17:31:36 -05:00
|
|
|
cp web-ext-artifacts/*.xpi ../i2ppb@eyedeekay.github.io.xpi; true
|
2019-11-19 09:35:43 -05:00
|
|
|
|
|
|
|
##EVEN NUMBERED, MOZILLA-DISTRIBUTED VERSIONS HERE!
|
2019-11-23 18:54:48 -05:00
|
|
|
moz-submit: moz-version
|
2019-11-20 19:55:41 -05:00
|
|
|
@echo "Using the 'submit' target to instantly sign an extension for Mozilla distribution"
|
2019-11-19 09:35:43 -05:00
|
|
|
@echo "requires a JWT API Key and Secret from addons.mozilla.org to be made available"
|
|
|
|
@echo "to the Makefile under the variables WEB_EXT_API_KEY and WEB_EXT_API_SECRET."
|
2020-03-17 23:14:15 -04:00
|
|
|
mv manifest.json .manifest.json
|
|
|
|
grep -v update_url .manifest.json > manifest.json
|
2023-12-26 13:44:16 -05:00
|
|
|
$(HOME)/node_modules/.bin/web-ext sign --use-submission-api --channel listed --config-discovery false --api-key $(WEB_EXT_API_KEY) --api-secret $(WEB_EXT_API_SECRET) --timeout 900000 --verbose; true #--api-url-prefix http://localhost:3000/api/v4
|
2020-01-04 16:46:19 -05:00
|
|
|
sleep 5
|
2020-03-17 23:14:15 -04:00
|
|
|
mv .manifest.json manifest.json
|
2019-11-19 09:35:43 -05:00
|
|
|
|
2019-11-28 18:43:32 -05:00
|
|
|
rhz-submit: rhz-version
|
2020-01-02 23:15:59 -05:00
|
|
|
@echo "Rhizome releases are disabled while browser is completed."
|
|
|
|
#@echo "Using the 'sign' target to instantly sign an extension for self-distribution"
|
|
|
|
#@echo "requires a JWT API Key and Secret from addons.mozilla.org to be made available"
|
|
|
|
#@echo "to the Makefile under the variables WEB_EXT_API_KEY and WEB_EXT_API_SECRET."
|
2023-06-10 23:39:06 -04:00
|
|
|
#$PWD/node_modules/web-ext-submit/extender.sh --channel unlisted --config-discovery false --api-key $(WEB_EXT_API_KEY) --api-secret $(WEB_EXT_API_SECRET); true
|
2019-11-28 18:43:32 -05:00
|
|
|
#cp web-ext-artifacts/*.xpi ./i2ppb@eyedeekay.github.io.xpi
|
|
|
|
|
2020-01-03 12:45:17 -05:00
|
|
|
getxpi:
|
2023-06-10 23:39:06 -04:00
|
|
|
github-release download -t $(VERSION) -u eyedeekay -r I2P-in-Private-Browsing-Mode-Firefox -n i2ppb@eyedeekay.github.io.xpi
|
2020-03-05 17:31:36 -05:00
|
|
|
mv ./i2ppb@eyedeekay.github.io.xpi ../i2ppb-$(VERSION)@eyedeekay.github.io.xpi
|
|
|
|
cp ../i2ppb-$(VERSION)@eyedeekay.github.io.xpi ../i2ppb@eyedeekay.github.io.xpi
|
2020-01-03 12:45:17 -05:00
|
|
|
|
2020-01-04 16:46:19 -05:00
|
|
|
torrent: getxpi
|
2020-01-04 17:34:50 -05:00
|
|
|
rm -f "./i2ppb-$(VERSION)@eyedeekay.github.io.xpi.torrent"
|
2020-10-11 23:43:14 -04:00
|
|
|
mktorrent -a http://w7tpbzncbcocrqtwwm3nezhnnsw4ozadvi2hmvzdhrqzfxfum7wa.b32.i2p/a \
|
|
|
|
-a http://zviyq72xcmjupynn5y2f5qa3u7bxyu34jnqmwt6czte2l7idxm7q.b32.i2p/announce \
|
2020-01-03 12:45:17 -05:00
|
|
|
-a http://s5ikrdyjwbcgxmqetxb3nyheizftms7euacuub2hic7defkh3xhq.b32.i2p/a \
|
|
|
|
-a http://uajd4nctepxpac4c4bdyrdw7qvja2a5u3x25otfhkptcjgd53ioq.b32.i2p/announce \
|
2020-01-06 16:44:27 -05:00
|
|
|
-n "i2ppb-$(VERSION)@eyedeekay.github.io.xpi" \
|
|
|
|
-o "i2ppb-$(VERSION)@eyedeekay.github.io.xpi.torrent" \
|
2020-01-03 12:45:17 -05:00
|
|
|
-w https://github.com/eyedeekay/I2P-in-Private-Browsing-Mode-Firefox/releases/download/$(VERSION)/i2ppb@eyedeekay.github.io.xpi \
|
2020-03-05 17:31:36 -05:00
|
|
|
../i2ppb@eyedeekay.github.io.xpi; true
|
2020-02-25 21:23:51 -05:00
|
|
|
cp -v "./i2ppb-$(VERSION)@eyedeekay.github.io.xpi.torrent" "./i2ppb@eyedeekay.github.io.xpi.torrent"
|
2020-01-04 17:34:50 -05:00
|
|
|
make index
|
2019-12-24 11:21:07 -05:00
|
|
|
|
|
|
|
upload-torrent:
|
2023-06-10 23:39:06 -04:00
|
|
|
github-release upload -R -u eyedeekay -r I2P-in-Private-Browsing-Mode-Firefox -t $(VERSION) -n "i2ppb@eyedeekay.github.io.xpi.torrent" -f "./i2ppb-$(VERSION)@eyedeekay.github.io.xpi.torrent"
|
2019-12-24 11:21:07 -05:00
|
|
|
|
2019-10-07 18:45:52 -04:00
|
|
|
upload-xpi:
|
2023-06-10 23:39:06 -04:00
|
|
|
github-release upload -R -u eyedeekay -r I2P-in-Private-Browsing-Mode-Firefox -t $(VERSION) -n "i2ppb@eyedeekay.github.io.xpi" -f "../i2ppb@eyedeekay.github.io.xpi"
|
2019-10-07 18:45:52 -04:00
|
|
|
|
|
|
|
upload-deb:
|
2023-06-10 23:39:06 -04:00
|
|
|
github-release upload -R -u eyedeekay -r I2P-in-Private-Browsing-Mode-Firefox -t $(VERSION) -n "i2psetproxy.js_$(VERSION)-1_amd64.deb" -f "../i2psetproxy.js_$(VERSION)-1_amd64.deb"
|
|
|
|
github-release upload -R -u eyedeekay -r I2P-in-Private-Browsing-Mode-Firefox -t $(VERSION) -n "i2psetproxy.js_$(VERSION).orig.tar.gz" -f "../i2psetproxy.js_$(VERSION).orig.tar.gz"
|
|
|
|
github-release upload -R -u eyedeekay -r I2P-in-Private-Browsing-Mode-Firefox -t $(VERSION) -n "i2psetproxy.js_$(VERSION)-1.debian.tar.xz" -f "../i2psetproxy.js_$(VERSION)-1.debian.tar.xz"
|
|
|
|
github-release upload -R -u eyedeekay -r I2P-in-Private-Browsing-Mode-Firefox -t $(VERSION) -n "i2psetproxy.js_$(VERSION)-1.dsc" -f "../i2psetproxy.js_$(VERSION)-1.dsc"
|
|
|
|
github-release upload -R -u eyedeekay -r I2P-in-Private-Browsing-Mode-Firefox -t $(VERSION) -n "i2psetproxy.js_$(VERSION)-1_amd64.changes" -f "../i2psetproxy.js_$(VERSION)-1_amd64.changes"
|
|
|
|
github-release upload -R -u eyedeekay -r I2P-in-Private-Browsing-Mode-Firefox -t $(VERSION) -n "i2psetproxy.js_$(VERSION)-1_amd64.buildinfo" -f "../i2psetproxy.js_$(VERSION)-1_amd64.buildinfo"
|
2019-06-29 00:32:03 -04:00
|
|
|
|
2020-01-03 13:06:55 -05:00
|
|
|
upload-docs:
|
2023-06-10 23:39:06 -04:00
|
|
|
github-release release -p -u eyedeekay -r I2P-in-Private-Browsing-Mode-Firefox -t docs -n "Documentation" -d "PDF's and text about the extension"; true
|
|
|
|
github-release upload -R -u eyedeekay -r I2P-in-Private-Browsing-Mode-Firefox -t docs -n "Landing Page Documentation.pdf" -f ../smartlander.pdf
|
|
|
|
github-release upload -R -u eyedeekay -r I2P-in-Private-Browsing-Mode-Firefox -t docs -n "Browser Design Documentation.pdf" -f ../browser.pdf
|
2020-01-03 13:06:55 -05:00
|
|
|
|
2020-03-05 14:47:12 -05:00
|
|
|
fmt: fmt-css fmt-html fmt-js
|
|
|
|
|
|
|
|
fmt-css:
|
2019-11-22 17:55:58 -05:00
|
|
|
cleancss -O1 all -O2 all --format beautify home.css -o .home.css && mv .home.css home.css
|
|
|
|
cleancss -O1 all -O2 all --format beautify info.css -o .info.css && mv .info.css info.css
|
2020-01-11 22:32:25 -05:00
|
|
|
cleancss -O1 all -O2 all --format beautify search.css -o .search.css && mv .search.css search.css
|
2020-01-14 18:43:55 -05:00
|
|
|
cleancss -O1 all -O2 all --format beautify sidebar.css -o .sidebar.css && mv .sidebar.css sidebar.css
|
|
|
|
cleancss -O1 all -O2 all --format beautify options/options.css -o options/.options.css && mv options/.options.css options/options.css
|
2020-03-05 14:47:12 -05:00
|
|
|
|
|
|
|
fmt-html:
|
2020-01-12 01:18:26 -05:00
|
|
|
tidy --as-xhtml --drop-empty-elements no --input-xml --tidy-mark no -indent --indent-spaces 4 -wrap 0 --new-blocklevel-tags article,header,footer --new-inline-tags video,audio,canvas,ruby,rt,rp --break-before-br yes --sort-attributes alpha --vertical-space yes index.html > .index.html; mv .index.html index.html
|
|
|
|
tidy --as-xhtml --drop-empty-elements no --input-xml --tidy-mark no -indent --indent-spaces 4 -wrap 0 --new-blocklevel-tags article,header,footer --new-inline-tags video,audio,canvas,ruby,rt,rp --break-before-br yes --sort-attributes alpha --vertical-space yes window.html > .window.html; mv .window.html window.html
|
|
|
|
tidy --as-xhtml --drop-empty-elements no --input-xml --tidy-mark no -indent --indent-spaces 4 -wrap 0 --new-blocklevel-tags article,header,footer --new-inline-tags video,audio,canvas,ruby,rt,rp --break-before-br yes --sort-attributes alpha --vertical-space yes home.html > .home.html; mv .home.html home.html
|
2020-03-05 14:47:12 -05:00
|
|
|
tidy --as-xhtml --drop-empty-elements no --input-xml --tidy-mark no -indent --indent-spaces 4 -wrap 0 --new-blocklevel-tags article,header,footer --new-inline-tags video,audio,canvas,ruby,rt,rp --break-before-br yes --sort-attributes alpha --vertical-space yes security.html > .security.html; mv .security.html security.html
|
2020-01-14 18:43:55 -05:00
|
|
|
tidy --as-xhtml --drop-empty-elements no --input-xml --tidy-mark no -indent --indent-spaces 4 -wrap 0 --new-blocklevel-tags article,header,footer --new-inline-tags video,audio,canvas,ruby,rt,rp --break-before-br yes --sort-attributes alpha --vertical-space yes options/options.html > options/.options.html; mv options/.options.html options/options.html
|
2020-02-25 15:19:15 -05:00
|
|
|
|
|
|
|
fmt-js:
|
2020-06-22 21:49:14 -04:00
|
|
|
fixjsstyle *.js
|
|
|
|
fixjsstyle options/*.js
|
2025-02-09 17:47:48 -05:00
|
|
|
#fixjsstyle torrent/*.js
|
|
|
|
#fixjsstyle i2pcontrol/*.js
|
2020-09-24 20:06:24 -04:00
|
|
|
fixjsstyle manifest.json
|
2021-10-01 14:33:11 -04:00
|
|
|
#work around fixjsstyle issue
|
|
|
|
sed -i 's|= >|=>|g' *.js */*.js
|
2020-06-22 21:49:14 -04:00
|
|
|
#find . -path ./node_modules -prune -o -name '*.json' -exec fixjsstyle --write {} \;
|
2019-08-01 00:39:03 -04:00
|
|
|
|
2022-05-08 17:18:54 -04:00
|
|
|
fmt-locales:
|
2023-12-26 13:34:25 -05:00
|
|
|
find _locales -name '*.js*' -exec $(HOME)/node_modules/.bin/prettier -w {} \;
|
2022-05-08 17:18:54 -04:00
|
|
|
|
2020-11-10 21:48:08 -05:00
|
|
|
fmt-prettier:
|
2023-12-26 13:34:25 -05:00
|
|
|
find . -name '*.js*' -exec $(HOME)/node_modules/.bin/prettier -w {} \;
|
2020-11-10 21:48:08 -05:00
|
|
|
|
2019-11-10 20:28:31 -05:00
|
|
|
lint:
|
2020-06-22 21:49:14 -04:00
|
|
|
|
2020-01-14 14:49:48 -05:00
|
|
|
gjslint *.js; true
|
|
|
|
#eslint --color *.js
|
2019-11-10 20:28:31 -05:00
|
|
|
|
2020-03-05 17:31:36 -05:00
|
|
|
deborig: version
|
2019-10-17 18:54:39 -04:00
|
|
|
rm -rf ../i2psetproxy.js-$(VERSION)
|
2020-03-05 17:31:36 -05:00
|
|
|
mkdir -p ../i2psetproxy.js-$(VERSION)
|
|
|
|
cp -r ./* ../i2psetproxy.js-$(VERSION)
|
2020-01-02 23:15:59 -05:00
|
|
|
cd ../i2psetproxy.js-$(VERSION) && \
|
2020-03-05 18:27:21 -05:00
|
|
|
rm -rf web-ext-artifacts .git node_modules && \
|
2019-10-17 18:54:39 -04:00
|
|
|
tar \
|
|
|
|
-cvz \
|
|
|
|
--exclude=i2psetproxy.js.gif \
|
2019-12-24 11:21:07 -05:00
|
|
|
--exclude=*.pdf \
|
2019-10-17 18:54:39 -04:00
|
|
|
-f ../i2psetproxy.js_$(VERSION).orig.tar.gz \
|
|
|
|
.
|
2019-09-24 22:33:30 -04:00
|
|
|
|
|
|
|
deb: deborig
|
|
|
|
cd ../i2psetproxy.js-$(VERSION) && debuild -us -uc -rfakeroot
|
2019-11-19 09:35:43 -05:00
|
|
|
|
2019-11-22 17:49:27 -05:00
|
|
|
-include mirrors.mk
|
2019-11-28 17:52:35 -05:00
|
|
|
|
|
|
|
dat:
|
2020-01-04 18:28:00 -05:00
|
|
|
wget -c -O dat.js https://bundle.run/dat-js
|
|
|
|
|
|
|
|
rss: torrent
|
|
|
|
rm -f releases.diff
|
|
|
|
mv releases.atom .releases.atom
|
|
|
|
wget https://github.com/eyedeekay/I2P-in-Private-Browsing-Mode-Firefox/releases.atom
|
|
|
|
sed -i "s|<title>$(VERSION)</title>|<title>$(VERSION)</title>\n <enclosure url=\"$(MAGNET)\" type=\"application/x-bittorrent\" />|g" releases.atom
|
|
|
|
|
2020-03-17 22:53:41 -04:00
|
|
|
upload-rss: rss
|
2023-06-10 23:39:06 -04:00
|
|
|
github-release upload -R -u eyedeekay -r I2P-in-Private-Browsing-Mode-Firefox -t docs -n "releases.atom" -f releases.atom
|
2020-01-14 17:11:23 -05:00
|
|
|
|
2020-03-17 22:53:41 -04:00
|
|
|
upload-updatemanifest:
|
2023-06-10 23:39:06 -04:00
|
|
|
github-release upload -R -u eyedeekay -r I2P-in-Private-Browsing-Mode-Firefox -t docs -n "updateManifest.json" -f updateManifest.json
|
2020-03-17 22:53:41 -04:00
|
|
|
|
2020-02-25 16:51:39 -05:00
|
|
|
webext:
|
2023-05-21 20:34:34 +00:00
|
|
|
mkdir -p profile
|
2024-08-02 19:09:06 -04:00
|
|
|
$(HOME)/node_modules/.bin/web-ext run --firefox /usr/bin/firefox --firefox-profile ./profile -u "about:devtools-toolbox?type=extension&id=i2ppb%40eyedeekay.github.io" http://idk.i2p http://localhost:7657 https://github.com/i2p/i2p.i2p https://i2pgit.org/i2p-hackers/i2p.i2p
|
2020-02-25 22:38:55 -05:00
|
|
|
|
|
|
|
snark-mirror:
|
2020-02-25 22:58:51 -05:00
|
|
|
http_proxy=http://127.0.0.1:4444 wget -c -O ../i2psnark-rpc.su3 http://stats.i2p/i2p/plugins/i2psnark-rpc.su3
|
2023-06-10 23:39:06 -04:00
|
|
|
github-release upload -R -u eyedeekay -r I2P-in-Private-Browsing-Mode-Firefox -t $(VERSION) -n "i2psnark-rpc.su3" -f ../i2psnark-rpc.su3
|
2020-02-25 22:58:51 -05:00
|
|
|
http_proxy=http://127.0.0.1:4444 wget -c -O ../i2psnark-rpc-update.su3 http://stats.i2p/i2p/plugins/i2psnark-rpc-update.su3
|
2023-06-10 23:39:06 -04:00
|
|
|
github-release upload -R -u eyedeekay -r I2P-in-Private-Browsing-Mode-Firefox -t $(VERSION) -n "i2psnark-rpc-update.su3" -f ../i2psnark-rpc-update.su3
|
2020-03-22 16:07:03 -04:00
|
|
|
|
|
|
|
seed:
|
2023-06-11 00:21:36 -04:00
|
|
|
cp -v "./i2ppb-$(VERSION)@eyedeekay.github.io.xpi.torrent" "$(HOME)/.i2p/i2psnark"
|
|
|
|
cp -v "../i2ppb-$(VERSION)@eyedeekay.github.io.xpi" "$(HOME)/.i2p/i2psnark"
|
2020-12-09 14:19:59 -05:00
|
|
|
|
2021-09-30 16:46:20 -04:00
|
|
|
android:
|
2023-12-26 13:34:25 -05:00
|
|
|
$(HOME)/node_modules/.bin/web-ext run \
|
2022-10-24 13:28:40 -04:00
|
|
|
--target firefox-android \
|
|
|
|
--android-device HT78N1A00453 \
|
|
|
|
--firefox-apk org.mozilla.fenix
|
2021-09-30 16:46:20 -04:00
|
|
|
|
2022-10-16 17:00:03 -04:00
|
|
|
run: webext
|