Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lib_base
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sikang
lib_base
Commits
8c8de76a
Commit
8c8de76a
authored
Oct 17, 2019
by
sikang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
f09e993d
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
105 additions
and
2 deletions
+105
-2
python/func.py
+1
-1
python/main.py
+4
-1
python/shell.py
+11
-0
python/tools/release_build.py
+89
-0
python/tools/screen_maker.py
+0
-0
No files found.
python/func.py
View file @
8c8de76a
# -*-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
...
...
python/main.py
View file @
8c8de76a
...
...
@@ -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
)
...
...
python/shell.py
View file @
8c8de76a
...
...
@@ -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
)
python/tools/release_build.py
0 → 100644
View file @
8c8de76a
# # -*-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
python/
script
/screen_maker.py
→
python/
tools
/screen_maker.py
View file @
8c8de76a
File moved
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment