Files
i2p.plugins.firefox/release.sh
idk 7bc0b6d045 unset https only mode during validation step for Firefox
Former-commit-id: 3d4f22676a
Former-commit-id: 4a1850cc6e07a0c0e35a8bd67fdf9030c47fcf15
2022-09-02 18:28:05 -04:00

52 lines
1.8 KiB
Bash
Executable File

#! /usr/bin/env sh
GITHUB_USER=eyedeekay
GITHUB_REPO=i2p.plugins.firefox
GITHUB_NAME="That unsets HTTPS-Only mode in favor of HTTPS-first mode so we don't require the interstitial."
GITHUB_DESCRIPTION=$(cat CHANGES.md)
GITHUB_TAG=0.0.20
ant distclean
./javadoc.sh
NUMLINE=`grep release.number build.xml | head -n 1`
sed -i "s|$NUMLINE| <property name=\"release.number\" value=\"$GITHUB_TAG\" />|g" build.xml
edgar && git push --all
ant jar freeZip jpackage
github-release release --user "${GITHUB_USER}" \
--repo "${GITHUB_REPO}" \
--name "${GITHUB_NAME}" \
--description "${GITHUB_DESCRIPTION}" \
--tag "${GITHUB_TAG}"; true
sleep 2s
github-release edit --user "${GITHUB_USER}" \
--repo "${GITHUB_REPO}" \
--name "${GITHUB_NAME}" \
--description "${GITHUB_DESCRIPTION}" \
--tag "${GITHUB_TAG}"; true
echo "Relase $GITHUB_TAG setup"
github-release upload --user "${GITHUB_USER}" \
--repo "${GITHUB_REPO}" \
--tag "${GITHUB_TAG}" \
--label "I2P Browser launcher as a .jar." \
--name "i2pfirefox.jar" \
--file "src/build/i2pfirefox.jar" \
--replace
echo "Uploaded jar"
github-release upload --user "${GITHUB_USER}" \
--repo "${GITHUB_REPO}" \
--tag "${GITHUB_TAG}" \
--label "I2P Browser launcher as a .jar and a set of semi-univeral launcher scripts." \
--name "i2pfirefox.zip" \
--file "i2pfirefox.zip" \
--replace
echo "Uploaded freestanding zip"
github-release upload --user "${GITHUB_USER}" \
--repo "${GITHUB_REPO}" \
--tag "${GITHUB_TAG}" \
--label "I2P Browser launcher as a Jpackage, does not require a JVM, Linux Only for now unless you BYO." \
--name "i2pbrowser.zip" \
--file "i2pbrowser.zip" \
--replace
echo "Uploaded jpackage zip"
git pull github --tags
git push --all