can auto push release with forum message

This commit is contained in:
poka 2022-08-21 06:35:06 +02:00
parent 2facd8cd7f
commit ebc33e4f6c
1 changed files with 4 additions and 0 deletions

View File

@ -3,6 +3,8 @@
fVersion=$(grep "version: " pubspec.yaml | awk '{ print $2 }')
withPush=$1
APPNAME="gecko"
VERSION=$(awk -F '+' '{ print $1 }' <<<$fVersion)
BUILD=$(awk -F '+' '{ print $2 }' <<<$fVersion)
@ -35,4 +37,6 @@ fi
appPath="$DL/${APPNAME}-${VERSION}+${BUILD}.apk"
mv build/app/outputs/flutter-apk/$ori_app "$appPath" && echo "$appPath" || exit 1
[[ $withPush == "withPush" ]] && /home/poka/scripts/link/pushGecko $VERSION
exit 0