From ebc33e4f6c1a8b3915426f7d6518f15d78a37786 Mon Sep 17 00:00:00 2001
From: poka <poka@p2p.legal>
Date: Sun, 21 Aug 2022 06:35:06 +0200
Subject: [PATCH] can auto push release with forum message

---
 scripts/build-apk.sh | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/scripts/build-apk.sh b/scripts/build-apk.sh
index 9a2fb853..3a87c366 100755
--- a/scripts/build-apk.sh
+++ b/scripts/build-apk.sh
@@ -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
-- 
GitLab