Skip to content

Commit

Permalink
build.sh: Switch to mjw's server
Browse files Browse the repository at this point in the history
Change-Id: If44e2b2766b07489af5b8152b54a66bb5953537d
Signed-off-by: xiaoleGun <[email protected]>
  • Loading branch information
xiaoleGun committed Apr 12, 2024
1 parent e50d776 commit e47e883
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 4 deletions.
4 changes: 3 additions & 1 deletion README-EN.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
- [Iceows](https://github.com/Iceows)
- [mujianwu](https://github.com/mujianwu) for server
2 changes: 2 additions & 0 deletions README-JP.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)提供的服务器
12 changes: 9 additions & 3 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 "[email protected]"
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
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit e47e883

Please sign in to comment.