Commit 5011b97b by sikang

脚脚本更新 打印秘钥山散列ã。包名

parent 5887d93a
#!/usr/bin/env python3
import json
import string
import random
import base64
import glob, os
# def gen_rand_str():
# rand_str = ''.join(random.choices(string.ascii_uppercase + string.ascii_lowercase, k=8))
# return rand_str + str(random.randint(0, 1000000))
def print_path(path):
with open(path, "r") as f:
lines = f.readlines()
for line in lines:
if "package" in line and ";" in line:
act_path = line.replace("package ","").replace(";",".SplashActivity")
print(act_path)
for root, dirs, files in os.walk("../../../app/src/main"):
directory = os.path.join(os.getcwd(), root)
for file in files:
if file.endswith("SplashActivity.java"):
# get the path of the java file
path = os.path.join(directory, file)
print_path(path)
......@@ -163,9 +163,16 @@ then
elif (($commod == '21'))
then
cd ../../
. gradle.properties
. ../../gradle.properties
keytool -exportcert -alias ${signing_keyAlias} -keystore "app/${signing_certificate}" -storepass "${signing_keyAlias}" | openssl sha1 -binary | openssl base64
cd print
python print_splash_path.py
elif (($commod == '22'))
then
cd res
chmod a+x update_gateway.py
python update_gateway.py
elif (($commod == '23'))
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