mirror of
https://github.com/syncthing/syncthing-android.git
synced 2024-11-26 06:11:19 +00:00
7791787bbc
* Add script to update submodule * Update publish-release.sh * Add helper script to build syncthing submodule only * Enable HTTPS for REST/WebUI only if OS supports it (fixes #137) * Update ApiRequest to handle both http or https * Add Constants#osSupportsTLS12 * Update APK version to 0.14.54.2 / 4181 * Update README.md * Update whatsnew
46 lines
926 B
Bash
Executable file
46 lines
926 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
|
|
version=$(git describe --tags)
|
|
regex='^[0-9]+\.[0-9]+\.[0-9]+$'
|
|
if [[ ! ${version} =~ $regex ]]
|
|
then
|
|
echo "Current commit is not a release"
|
|
exit;
|
|
fi
|
|
|
|
echo "
|
|
|
|
Pushing to Github
|
|
-----------------------------
|
|
"
|
|
git push
|
|
git push --tags
|
|
|
|
echo "
|
|
|
|
Push to Google Play
|
|
-----------------------------
|
|
"
|
|
|
|
read -s -p "Enter signing password: " password
|
|
|
|
SIGNING_PASSWORD=${password} ./gradlew assembleRelease
|
|
|
|
# Upload apk and listing to Google Play
|
|
SIGNING_PASSWORD=${password} ./gradlew publishRelease
|
|
|
|
echo "
|
|
|
|
Release published!
|
|
"
|
|
|
|
#echo "
|
|
#
|
|
#Create Github Release
|
|
#-----------------------------
|
|
#"
|
|
#ACCESS_TOKEN=""
|
|
#api_json=$(printf '{"tag_name": "v%s","target_commitish": "master","name": "v%s","body": "%s","draft": false,"prerelease": false}' $version $version $changelog)
|
|
#curl --data "$api_json" https://api.github.com/repos/Catfriend1/syncthing-android/releases?access_token=$ACCESS_TOKEN
|