From e47e883fbccdcd3f026e08b244ee16bf2cb128ce Mon Sep 17 00:00:00 2001 From: xiaoleGun <1592501605@qq.com> Date: Fri, 12 Apr 2024 18:02:26 +0800 Subject: [PATCH] build.sh: Switch to mjw's server Change-Id: If44e2b2766b07489af5b8152b54a66bb5953537d Signed-off-by: xiaoleGun <1592501605@qq.com> --- README-EN.md | 4 +++- README-JP.md | 2 ++ README.md | 2 ++ build.sh | 12 +++++++++--- 4 files changed, 16 insertions(+), 4 deletions(-) diff --git a/README-EN.md b/README-EN.md index 3a37982..5b5d81a 100644 --- a/README-EN.md +++ b/README-EN.md @@ -67,4 +67,6 @@ These people have helped this project in some way or another, so they should be - [Peter Cai](https://github.com/PeterCxy) - [haridhayal11](https://github.com/haridhayal11) - [sooti](https://github.com/sooti) -- [Iceows](https://github.com/Iceows) \ No newline at end of file +- [Iceows](https://github.com/Iceows) + +- [mujianwu](https://github.com/mujianwu) for server \ No newline at end of file diff --git a/README-JP.md b/README-JP.md index e9bf137..d4ae28f 100644 --- a/README-JP.md +++ b/README-JP.md @@ -63,3 +63,5 @@ Miku UI GSI のビルドを始めるには、[How to build a GSI](https://github - [haridhayal11](https://github.com/haridhayal11) - [sooti](https://github.com/sooti) - [Iceows](https://github.com/Iceows) + +- [mujianwu](https://github.com/mujianwu) for server diff --git a/README.md b/README.md index 4983e7e..88e417b 100644 --- a/README.md +++ b/README.md @@ -69,3 +69,5 @@ Miku UI - [haridhayal11](https://github.com/haridhayal11) - [sooti](https://github.com/sooti) - [Iceows](https://github.com/Iceows) + +- [暮间雾](https://github.com/mujianwu)提供的服务器 diff --git a/build.sh b/build.sh index 8ec1f85..31169e1 100755 --- a/build.sh +++ b/build.sh @@ -252,14 +252,16 @@ generateOtaJson() { } } -# I use American server in China, so need it personal() { echo echo "--> $UP_GITHUB_RELEASE" echo cd $SD + git config user.name "xiaoleGun" + git config user.email "1592501605@qq.com" GITLATESTTAG=$(git describe --tags --abbrev=0) GITCHANGELOG=$(git log $GITLATESTTAG..HEAD --pretty=format:"%s") + GITHUB_TOKEN=$2 assets=() for f in $BD/MikuUI-$VERSION-$VERSION_CODE-*.xz; do [ -f "$f" ] && assets+=(-a "$f"); done hub release create ${assets[@]} -m "Miku UI $VERSION v$VERSION_CODE @@ -314,8 +316,12 @@ generatePackages miku_treble_arm64_bgN arm64-ab -gapps generatePackages miku_treble_a64_bvN a64-ab generatePackages miku_treble_a64_bgN a64-ab -gapps -if [ $USER == xiaolegun ]; then - generateOtaJson +generateOtaJson + +if [ $1 == release ] && [ -z $2 ]; then + echo "请预设Token" + exit 2 +else personal fi