Commit 8c8de76a by sikang

update

parent f09e993d
# -*-coding:utf-8-*-
from utils import Utils
from script.screen_maker import ScreenMaker
from tools.screen_maker import ScreenMaker
import random
import sys
import os
......
......@@ -30,7 +30,10 @@ print("15、刷新本地协议")
command = int(input("请输入指令编号:"))
# 命令
if command == 2:
if command == 1:
Shell.build_release()
elif command == 2:
app_name = Function.new_appid(config['app_name'])
print(app_name)
......
......@@ -61,3 +61,14 @@ class Shell:
"git push origin %s" % tagName,
)
os.system(command)
#编译 待开发
@staticmethod
def build_release():
command = "%s\n%s\n" \
% (
"cd ../script",
"./release_builder.sh"
)
os.system(command)
# # -*-coding:utf-8-*-
# import shutil
# import os
# class Release:
# #初始化脚本
# def init():
# if os.path.exists("%s/script/api_mapping"):
# ./rename_api.py || { echo "rename_api error!"; exit 1; }
# #编译
# def build(self,config):
# print("1、GP包(无权限)")
# print("2、渠道包(有权限)")
# command = int(input("选择打包方式:"))
# os.system("rm -rf %s/resGuardApks"% config['root'])
# os.system("gradlew clean")
# init(){
# cd lib_base/script/garble
# #字符串混淆
# python string_decrypt.py || { echo "string_decrypt error!"; exit 1; }
# #四大组件混淆
# ./rename_project.sh || { echo "rename_project error!"; exit 1; }
# #代码结构混淆
# ./insert.py || { echo "insert_code error!"; exit 1; }
# cd ../../../
# }
# if((${action}=='1'))
# then
# cd lib_base/script
# ./sdk_manager.py 'close' 'NOLOG' || { echo "sdk_manager error!!!!!!!!!!!!!!!"; exit 1; }
# if [ "${contact}" = "true" ];then
# ./sdk_manager.py 'open' 'CONTACT' || { echo "sdk_manager error!!!!!!!!!!!!"; exit 1; }
# elif [ "${contact}" = "false" ];then
# ./sdk_manager.py 'close' 'CONTACT' || { echo "sdk_manager error!!!!!!!!!!!!"; exit 1; }
# fi
# cd ../..
# init
# gradlew resguardAppProductGoogleplayRelease
# elif((${action}=='2'))
# then
# init
# gradlew resguardAppProductWebsiteRelease
# #elif((${action}=='3'))
# #then
# # mv app/src/main/res/drawable-xxhdpi/logo_majia1.png app/src/main/res/drawable-xxhdpi/logo.png
# # mv script/api_mapping_majia1 script/api_mapping
# # LC_CTYPE=C && LANG=C && sed -i "" "s#^app_name=.*#app_name=${majia_name1}#g" gradle.properties
# # init
# # gradlew resguardAppProductGoogleplayRelease
# #
# #elif((${action}=='4'))
# #then
# # mv app/src/main/res/drawable-xxhdpi/logo_majia2.png app/src/main/res/drawable-xxhdpi/logo.png
# # LC_CTYPE=C && LANG=C && sed -i "" "s#^app_name=.*#app_name=${majia_name2}#g" gradle.properties
# # mv script/api_mapping_majia2 script/api_mapping
# # init
# # gradlew resguardAppProductGoogleplayRelease
# #
# #elif((${action}=='5'))
# #then
# # mv app/src/main/res/drawable-xxhdpi/logo_majia3.png app/src/main/res/drawable-xxhdpi/logo.png
# # LC_CTYPE=C && LANG=C && sed -i "" "s#^app_name=.*#app_name=${majia_name3}#g" gradle.properties
# # mv script/api_mapping_majia3 script/api_mapping
# # init
# # gradlew resguardAppProductGoogleplayRelease
# else
# echo "未知的打包方式"
# fi
# gradlew clean
# cd lib_base/script/garble/
# ./reset_name.sh
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