Skip to content

Commit

Permalink
save script
Browse files Browse the repository at this point in the history
  • Loading branch information
aisnote committed Aug 22, 2022
1 parent b715375 commit ad4b60d
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 3 deletions.
44 changes: 44 additions & 0 deletions deploy-dev.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
#!/bin/bash

echo -e "\033[0;32mDeploying lomorage.apk to GitHub...\033[0m"

### mm/dd/yyyy ###
now=$(date +'%Y-%m-%d_%H-%M-%S')
echo $now

rm -fr *.apk

### $1
orig_apk_path=$1
echo "orig_apk_path="$orig_apk_path
if [[ "$orig_apk_path" == "" ]]; then
orig_apk_path='/h/myproject/lomoware/lomo-android/app/release/'
fi

### $2
orig_apk_file=$2
echo "orig_apk_file="$orig_apk_file
if [[ "$orig_apk_file" == "" ]]; then
orig_apk_file="com.lomoware.lomorage-v9(0.72)-release"
fi


echo $orig_apk_file

orig_apk_file_path=$orig_apk_path$orig_apk_file'.apk'

echo $orig_apk_file_path

cp $orig_apk_file_path ./

release_apk_file=$orig_apk_file$now.apk

echo $release_apk_file

mv "./"$orig_apk_file".apk" "./"$release_apk_file



tag=$now
hub release delete $now
hub release create -a $release_apk_file -m "dev release $now" $now
6 changes: 3 additions & 3 deletions deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ mv "./"$orig_apk_file".apk" "./"$release_apk_file



tag=$now
hub release delete $now
hub release create -a $release_apk_file -m "latest release $now" $now
tag="release/${version_code}"
hub release delete $tag
hub release create -a $release_apk_file -m "latest release ($tag) $now" $tag

cd $homepage
./updatever.sh -p android -D $version_code -T $release_time

0 comments on commit ad4b60d

Please sign in to comment.