2022-08-07 20:20:29 -04:00
|
|
|
#! /usr/bin/env sh
|
|
|
|
|
2022-09-05 21:12:53 -04:00
|
|
|
. ./config.sh
|
2022-09-05 21:14:59 -04:00
|
|
|
ant distclean clangFmt
|
2022-08-27 13:53:14 -04:00
|
|
|
./javadoc.sh
|
2022-09-01 15:11:48 -04:00
|
|
|
NUMLINE=`grep release.number build.xml | head -n 1`
|
2022-09-15 14:08:28 -04:00
|
|
|
READMELINE=`grep 'i2p.plugins.firefox/releases/download' README.md`
|
|
|
|
sed -i "s|${READMELINE}|wget https://github.com/eyedeekay/i2p.plugins.firefox/releases/download/${GITHUB_TAG}/i2pfirefox.zip|g" README.md
|
|
|
|
sed -i "s|${NUMLINE}| <property name=\"release.number\" value=\"$GITHUB_TAG\" />|g" build.xml
|
2022-08-30 15:15:21 -04:00
|
|
|
edgar && git push --all
|
2022-09-06 20:06:50 -04:00
|
|
|
ant jar freeZip jpackage debian fedora
|
2022-09-15 18:30:48 -04:00
|
|
|
profilezipsum=$(sha256sum src/i2p.chromium.base.profile.zip)
|
|
|
|
github-release upload --user "${GITHUB_USER}" \
|
|
|
|
--repo "${GITHUB_REPO}" \
|
|
|
|
--tag "${GITHUB_TAG}" \
|
|
|
|
--label "Chromium strict extensions ${profilezipsum}" \
|
|
|
|
--name "i2p.chromium.base.profile.zip" \
|
|
|
|
--file "src/i2p.chromium.base.profile.zip" \
|
|
|
|
--replace
|
|
|
|
echo "Uploaded Chromium base profile"
|
|
|
|
profilezipsum=$(sha256sum src/i2p.chromium.usability.profile.zip)
|
|
|
|
github-release upload --user "${GITHUB_USER}" \
|
|
|
|
--repo "${GITHUB_REPO}" \
|
|
|
|
--tag "${GITHUB_TAG}" \
|
|
|
|
--label "Chromium usability extensions ${profilezipsum}" \
|
|
|
|
--name "i2p.chromium.usability.profile.zip" \
|
|
|
|
--file "src/i2p.chromium.usability.profile.zip" \
|
|
|
|
--replace
|
|
|
|
echo "Uploaded Chromium usability profile"
|
|
|
|
profilezipsum=$(sha256sum src/i2p.firefox.base.profile.zip)
|
|
|
|
github-release upload --user "${GITHUB_USER}" \
|
|
|
|
--repo "${GITHUB_REPO}" \
|
|
|
|
--tag "${GITHUB_TAG}" \
|
|
|
|
--label "Firefox strict profile ${profilezipsum}" \
|
|
|
|
--name "i2p.firefox.base.profile.zip" \
|
|
|
|
--file "src/i2p.firefox.base.profile.zip" \
|
|
|
|
--replace
|
|
|
|
echo "Uploaded Firefox base profile"
|
|
|
|
profilezipsum=$(sha256sum src/i2p.firefox.usability.profile.zip)
|
|
|
|
github-release upload --user "${GITHUB_USER}" \
|
|
|
|
--repo "${GITHUB_REPO}" \
|
|
|
|
--tag "${GITHUB_TAG}" \
|
|
|
|
--label "Firefox usability profile ${profilezipsum}" \
|
|
|
|
--name "i2p.firefox.usability.profile.zip" \
|
|
|
|
--file "src/i2p.firefox.usability.profile.zip" \
|
|
|
|
--replace
|
|
|
|
echo "Uploaded Firefox usability profile"
|
2022-08-07 20:20:29 -04:00
|
|
|
github-release release --user "${GITHUB_USER}" \
|
|
|
|
--repo "${GITHUB_REPO}" \
|
|
|
|
--name "${GITHUB_NAME}" \
|
|
|
|
--description "${GITHUB_DESCRIPTION}" \
|
2022-08-19 18:30:14 -04:00
|
|
|
--tag "${GITHUB_TAG}"; true
|
2022-08-07 20:20:29 -04:00
|
|
|
sleep 2s
|
2022-08-20 20:58:10 -04:00
|
|
|
github-release edit --user "${GITHUB_USER}" \
|
|
|
|
--repo "${GITHUB_REPO}" \
|
|
|
|
--name "${GITHUB_NAME}" \
|
|
|
|
--description "${GITHUB_DESCRIPTION}" \
|
|
|
|
--tag "${GITHUB_TAG}"; true
|
2022-09-06 20:57:43 -04:00
|
|
|
echo "Relase ${GITHUB_TAG} setup"
|
2022-09-06 21:06:31 -04:00
|
|
|
jarsum=$(sha256sum "src/build/i2pfirefox.jar")
|
2022-08-07 20:20:29 -04:00
|
|
|
github-release upload --user "${GITHUB_USER}" \
|
|
|
|
--repo "${GITHUB_REPO}" \
|
|
|
|
--tag "${GITHUB_TAG}" \
|
2022-09-06 21:22:03 -04:00
|
|
|
--label "I2P Browser launcher as a .jar. Useful as a library or for advanced users. ${jarsum}" \
|
2022-08-07 20:20:29 -04:00
|
|
|
--name "i2pfirefox.jar" \
|
2022-08-08 20:10:10 -04:00
|
|
|
--file "src/build/i2pfirefox.jar" \
|
2022-08-07 20:46:22 -04:00
|
|
|
--replace
|
2022-09-01 15:49:07 -04:00
|
|
|
echo "Uploaded jar"
|
2022-09-06 20:57:43 -04:00
|
|
|
zipsum=$(sha256sum "i2pfirefox.zip")
|
2022-08-07 20:49:20 -04:00
|
|
|
github-release upload --user "${GITHUB_USER}" \
|
|
|
|
--repo "${GITHUB_REPO}" \
|
|
|
|
--tag "${GITHUB_TAG}" \
|
2022-09-06 20:57:43 -04:00
|
|
|
--label "I2P Browser launcher as a .jar and a set of semi-univeral launcher scripts. ${zipsum}" \
|
2022-08-07 20:49:20 -04:00
|
|
|
--name "i2pfirefox.zip" \
|
|
|
|
--file "i2pfirefox.zip" \
|
2022-09-01 15:11:48 -04:00
|
|
|
--replace
|
2022-09-01 15:49:07 -04:00
|
|
|
echo "Uploaded freestanding zip"
|
2022-09-06 20:57:43 -04:00
|
|
|
jvmsum=$(sha256sum "i2pbrowser.zip")
|
2022-09-01 15:11:48 -04:00
|
|
|
github-release upload --user "${GITHUB_USER}" \
|
|
|
|
--repo "${GITHUB_REPO}" \
|
|
|
|
--tag "${GITHUB_TAG}" \
|
2022-09-06 20:57:43 -04:00
|
|
|
--label "I2P Browser launcher as a Jpackage, does not require a JVM. ${jvmsum}" \
|
2022-09-01 16:12:59 -04:00
|
|
|
--name "i2pbrowser.zip" \
|
2022-09-01 15:11:48 -04:00
|
|
|
--file "i2pbrowser.zip" \
|
2022-09-05 18:23:33 -04:00
|
|
|
--replace
|
2022-09-05 21:12:10 -04:00
|
|
|
echo "Uploaded jpackage zip"
|
2022-09-06 20:57:43 -04:00
|
|
|
debsum=$(sha256sum "i2pbrowser_${GITHUB_TAG}_amd64.deb")
|
2022-09-05 18:23:33 -04:00
|
|
|
github-release upload --user "${GITHUB_USER}" \
|
|
|
|
--repo "${GITHUB_REPO}" \
|
|
|
|
--tag "${GITHUB_TAG}" \
|
2022-09-06 20:57:43 -04:00
|
|
|
--label "I2P Browser launcher as a Jpackage inside of a Debian package. ${debsum}" \
|
2022-09-07 03:35:50 -04:00
|
|
|
--name "i2pbrowser_${GITHUB_TAG}_amd64.deb" \
|
2022-09-05 21:28:36 -04:00
|
|
|
--file "i2pbrowser_${GITHUB_TAG}_amd64.deb" \
|
|
|
|
--replace
|
2022-09-06 19:25:43 -04:00
|
|
|
echo "Uploaded debian package"
|
2022-09-06 20:57:43 -04:00
|
|
|
rpmsum=$(sha256sum i2pbrowser-${GITHUB_TAG}-1.x86_64.rpm)
|
2022-09-06 19:25:43 -04:00
|
|
|
github-release upload --user "${GITHUB_USER}" \
|
|
|
|
--repo "${GITHUB_REPO}" \
|
|
|
|
--tag "${GITHUB_TAG}" \
|
2022-09-06 20:57:43 -04:00
|
|
|
--label "I2P Browser launcher as a Jpackage inside of a Fedora package. ${rpmsum}" \
|
2022-09-07 03:49:31 -04:00
|
|
|
--name "i2pbrowser-${GITHUB_TAG}-1.x86_64.rpm" \
|
2022-09-06 20:42:36 -04:00
|
|
|
--file "i2pbrowser-${GITHUB_TAG}-1.x86_64.rpm" \
|
2022-09-06 19:25:43 -04:00
|
|
|
--replace
|
|
|
|
echo "Uploaded fedora package"
|
2022-09-15 18:30:48 -04:00
|
|
|
|
2022-08-07 22:57:40 -04:00
|
|
|
git pull github --tags
|
2022-09-01 15:11:48 -04:00
|
|
|
git push --all
|