mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-07-28 00:43:37 +00:00
Stop updating README for each release
This commit is contained in:
parent
04008949b8
commit
0860e859f7
@ -16,13 +16,7 @@ Some highlight features:
|
||||
|
||||
## Downloads
|
||||
|
||||
[Github](https://github.com/topjohnwu/Magisk/) is the only source where you can get official Magisk information and downloads.
|
||||
|
||||
Click the icon below to download Magisk apk.
|
||||
|
||||
[](https://github.com/topjohnwu/Magisk/releases/tag/v29.0)
|
||||
[](https://github.com/topjohnwu/Magisk/releases/tag/v29.0)
|
||||
[](https://github.com/topjohnwu/Magisk/releases/tag/canary-29001)
|
||||
[Github](https://github.com/topjohnwu/Magisk/releases) is the only source where you can get official Magisk information and downloads.
|
||||
|
||||
## Useful Links
|
||||
|
||||
|
@ -12,7 +12,6 @@ NOTES=notes.md
|
||||
|
||||
# These are constants, do not modify
|
||||
GCONFIG=app/gradle.properties
|
||||
README=README.MD
|
||||
BUILDCMD="./build.py -c $CONFIG"
|
||||
CWD=$(pwd)
|
||||
|
||||
@ -38,23 +37,6 @@ disable_version_config() {
|
||||
sed -i "s:^version=:# version=:g" $CONFIG
|
||||
}
|
||||
|
||||
# $1 = tag
|
||||
update_readme_canary() {
|
||||
sed -i "s:badge/Magisk-Canary.*:badge/Magisk-Canary-red)](https\://github.com/topjohnwu/Magisk/releases/tag/$1):g" $README
|
||||
}
|
||||
|
||||
# $1 = tag
|
||||
update_readme_beta() {
|
||||
update_readme_canary $1
|
||||
sed -i "s:badge/Magisk%20Beta.*:badge/Magisk%20Beta-${1}-blue)](https\://github.com/topjohnwu/Magisk/releases/tag/$1):g" $README
|
||||
}
|
||||
|
||||
# $1 = tag
|
||||
update_readme_stable() {
|
||||
update_readme_beta $1
|
||||
sed -i "s:badge/Magisk-v.*:badge/Magisk-${1}-blue)](https\://github.com/topjohnwu/Magisk/releases/tag/$1):g" $README
|
||||
}
|
||||
|
||||
# $1 = tag
|
||||
# $2 = file name
|
||||
gen_link() {
|
||||
@ -109,7 +91,6 @@ bump_canary_version() {
|
||||
code=$((code + 1))
|
||||
local tag="canary-$code"
|
||||
sed -i "s:versionCode=.*:versionCode=${code}:g" $GCONFIG
|
||||
update_readme_canary $tag
|
||||
|
||||
# Commit version code changes
|
||||
git add -u .
|
||||
@ -143,10 +124,8 @@ set_version() {
|
||||
sed -i "1s:.*:## $(date +'%Y.%-m.%-d') Magisk v$ver:" $NOTES
|
||||
|
||||
if $stable; then
|
||||
update_readme_stable $tag
|
||||
update_stable_json
|
||||
else
|
||||
update_readme_beta $tag
|
||||
update_beta_json
|
||||
fi
|
||||
|
||||
@ -215,7 +194,7 @@ upload() {
|
||||
tail -n +3 $NOTES > release.md
|
||||
|
||||
case $type in
|
||||
"canary" )
|
||||
canary )
|
||||
tag="canary-$code"
|
||||
title="Magisk ($ver) ($code)"
|
||||
|
||||
@ -225,7 +204,7 @@ upload() {
|
||||
# Publish release
|
||||
gh release create --verify-tag $tag -p -t "$title" -F release.md $out/app-release.apk $out/app-debug.apk $NOTES
|
||||
;;
|
||||
"beta|stable" )
|
||||
beta|stable )
|
||||
tag="v$ver"
|
||||
title="Magisk v$ver"
|
||||
|
||||
@ -274,10 +253,10 @@ git pull
|
||||
trap disable_version_config EXIT
|
||||
ensure_config
|
||||
case $1 in
|
||||
"canary" ) build_canary ;;
|
||||
"beta" ) build_beta $2 ;;
|
||||
"stable" ) build_stable $2 ;;
|
||||
"upload" ) upload $2 ;;
|
||||
"revert" ) revert ;;
|
||||
canary ) build_canary ;;
|
||||
beta ) build_beta $2 ;;
|
||||
stable ) build_stable $2 ;;
|
||||
upload ) upload $2 ;;
|
||||
revert ) revert ;;
|
||||
* ) exit 1 ;;
|
||||
esac
|
||||
|
Loading…
x
Reference in New Issue
Block a user