From 8176edd75c61d2582c7a349a06d4ecc5ec58b7e4 Mon Sep 17 00:00:00 2001 From: Aisnote Liu Date: Sun, 27 Aug 2023 15:41:47 -0700 Subject: [PATCH] save version on the updating --- README.md | 4 ++-- deploy.sh | 14 +++++++++++--- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 3bde9e1..d4a6cb9 100644 --- a/README.md +++ b/README.md @@ -149,6 +149,6 @@ For google play store. # Deploy -> ./deploy.sh "h:/myproject/lomoware/lomo-android-v232/app/release/" "com.lomoware.lomorage-v31(0.857)-release" 31 +> ./deploy.sh "h:/myproject/lomoware/lomo-android/app/release/" "com.lomoware.lomorage-v56(0.992)-release" 56 -> ./deploy-dev.sh "/h/myproject/lomoware/lomo-android/app/release/" "com.lomoware.lomorage-v41(0.944)-release" \ No newline at end of file +> ./deploy-dev.sh "/h/myproject/lomoware/lomo-android/app/release/" "com.lomoware.lomorage-v49(0.985)-release" \ No newline at end of file diff --git a/deploy.sh b/deploy.sh index 295b413..91bcbc8 100644 --- a/deploy.sh +++ b/deploy.sh @@ -14,6 +14,7 @@ version_code=$3 release_time=$now homepage='/h/myproject/lomoware/homepage' +lomosw_path='/h/myproject/lomoware/lomosw-new/android' echo "orig_apk_path="$orig_apk_path if [[ "$orig_apk_path" == "" ]]; then @@ -44,9 +45,16 @@ mv "./"$orig_apk_file".apk" "./"$release_apk_file -tag="release/${version_code}" +tag="latest_release" hub release delete $tag -hub release create -a $release_apk_file -m "latest release ($tag) $now" $tag +hub release create -a $release_apk_file -m "latest release/${version_code} ($tag) $now" $tag cd $homepage -./updatever.sh -p android -D $version_code -T $release_time \ No newline at end of file +./updatever.sh -p android -D $version_code -T $release_time + + +# copy from + +cp -f $orig_apk_file_path ${lomosw_path}/lomorage.apk + +cd $lomosw_path \ No newline at end of file