Browse Source

change sh/automake

yuchuli 3 năm trước cách đây
mục cha
commit
5c617e64c7
1 tập tin đã thay đổi với 10 bổ sung3 xóa
  1. 10 3
      sh/automake/automake_agx.sh

+ 10 - 3
sh/automake/automake_agx.sh

@@ -19,7 +19,7 @@ git pull
 cd ./sh/automake
 
 
-VERSIONCODE=$(cat $folder/../../../modularization_exe/agx/appversion.md)
+VERSIONCODE=$(cat $folder/../../../modularization_exe/agx/appversion)
 echo "app  version: "$VERSIONCODE
 
 
@@ -40,6 +40,7 @@ foldernfs=$foldernfs/AGXXavier
 
 month=`date +%Y.%m`
 foldernfs=$foldernfs/$month
+urllink="http://10.16.1.138"
 echo $foldernfs
 
 if [ ! -d "$foldernfs" ]; then
@@ -62,8 +63,14 @@ else
 #	cp app.zip ../../modularization_exe/agx
 	cp app.zip $foldernfs/$GITVERSIONCODE.zip
 	cd ../../modularization_exe/agx
-	cat /dev/null > appversion.md
-    	echo "$VERSIONCODE" >> appversion.md
+	cat /dev/null > appversion
+    	echo "$VERSIONCODE" >> appversion
+	compiletime=`date "+%Y.%m.%d %H:%M:%S"`
+	cat /dev/null > Readme.md
+	echo " " > Readme.md
+	sed -i "1 a\ Build Time : $compiletime \n\n" Readme.md
+#	sed -i "1 a\ Version : $VERSIONCODE \n\n" Readme.md
+	sed -i "1 a\ 最新版本APP : [下载]($urllink/AGXXavier/$month/$GITVERSIONCODE.zip) \n\n" Readme.md
 	cd ..
 	git add -u
 	git commit -m "automake  change app.zip code version:$VERSIONCODE"