can auto push release with forum message
This commit is contained in:
parent
2facd8cd7f
commit
ebc33e4f6c
|
@ -3,6 +3,8 @@
|
||||||
|
|
||||||
fVersion=$(grep "version: " pubspec.yaml | awk '{ print $2 }')
|
fVersion=$(grep "version: " pubspec.yaml | awk '{ print $2 }')
|
||||||
|
|
||||||
|
withPush=$1
|
||||||
|
|
||||||
APPNAME="gecko"
|
APPNAME="gecko"
|
||||||
VERSION=$(awk -F '+' '{ print $1 }' <<<$fVersion)
|
VERSION=$(awk -F '+' '{ print $1 }' <<<$fVersion)
|
||||||
BUILD=$(awk -F '+' '{ print $2 }' <<<$fVersion)
|
BUILD=$(awk -F '+' '{ print $2 }' <<<$fVersion)
|
||||||
|
@ -35,4 +37,6 @@ fi
|
||||||
appPath="$DL/${APPNAME}-${VERSION}+${BUILD}.apk"
|
appPath="$DL/${APPNAME}-${VERSION}+${BUILD}.apk"
|
||||||
mv build/app/outputs/flutter-apk/$ori_app "$appPath" && echo "$appPath" || exit 1
|
mv build/app/outputs/flutter-apk/$ori_app "$appPath" && echo "$appPath" || exit 1
|
||||||
|
|
||||||
|
[[ $withPush == "withPush" ]] && /home/poka/scripts/link/pushGecko $VERSION
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|
Loading…
Reference in New Issue