Commit 0e1ad9ec by sikang

update script

parent 4f64407d
cd ../../
. gradle.properties
basepath=$(cd `dirname $0`; pwd)
project_name=${basepath##*/}
now_time=$(date "+%Y-%m-%d %H_%M_%S")
cp resGuardApks/"${project_name}"_release.apk /Users/connor/Documents/apks/"${project_name}"_release_"${now_time}".apk
\ No newline at end of file
#now_time=$(date "+%Y-%m-%d %H_%M_%S")
file_name="${corp_id}_${app_name}.apk"
rm /Users/connor/Documents/apks/"${file_name}"
cp resGuardApks/"${project_name}"_release.apk /Users/connor/Documents/apks/"${file_name}"
\ No newline at end of file
......@@ -71,7 +71,7 @@ def create_config(read_path,write_path):
.replace("${privacy_url}",sys.argv[6])
f_w.write(line)
output = "/Users/connor/Documents/apks/"+sys.argv[5]+sys.argv[1];
output = "/Users/connor/Documents/apks/"+sys.argv[5]+"_"+sys.argv[1];
if not os.path.exists(output):
os.makedirs(output)
......
......@@ -255,9 +255,12 @@ elif (($commod == '26'));then
echo "${corp_id} ${app_name} "
echo "对内协议:${agreement_url}"
echo "对外协议:${home}/privacy.html"
echo " "
cd print
python create_desc.py "${app_name}" "${cus_email}" "${hot_line}" "${cus_adress}" "${corp_id}" "${home}/privacy.html"
echo " "
file_name="${corp_id}_${app_name}"
mv /Users/connor/Documents/apks/"${file_name}.apk" /Users/connor/Documents/apks/"${file_name}/${file_name}.apk"
elif (($commod == '10000'))
then
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment