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
724292b0
Commit
724292b0
authored
Oct 17, 2019
by
sikang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updae
parent
d9878639
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
4 deletions
+18
-4
python/main.py
+16
-3
resguard.gradle
+2
-1
No files found.
python/main.py
View file @
724292b0
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
from
config
import
BuildConfig
from
config
import
BuildConfig
from
shell
import
Shell
from
shell
import
Shell
import
os
import
os
import
shutil
#properties 配置
#properties 配置
config
=
BuildConfig
.
load_properties
(
"../../gradle.properties"
)
config
=
BuildConfig
.
load_properties
(
"../../gradle.properties"
)
...
@@ -19,7 +20,7 @@ print("4、commit & push project")
...
@@ -19,7 +20,7 @@ print("4、commit & push project")
print
(
"5、pull lib_base & cash_plugin_toolbox"
)
print
(
"5、pull lib_base & cash_plugin_toolbox"
)
print
(
"6、commit & push lib_base"
)
print
(
"6、commit & push lib_base"
)
print
(
"8、提交一个渠道包Tag"
)
print
(
"8、提交一个渠道包Tag"
)
print
(
"
"
)
print
(
"
11、copy apk
"
)
commod
=
int
(
input
(
"请输入指令编号:"
))
commod
=
int
(
input
(
"请输入指令编号:"
))
...
@@ -41,4 +42,16 @@ elif commod == 6:
...
@@ -41,4 +42,16 @@ elif commod == 6:
Shell
.
push_base
(
config
)
Shell
.
push_base
(
config
)
elif
commod
==
8
:
elif
commod
==
8
:
Shell
.
push_with_tag
(
config
)
Shell
.
push_with_tag
(
config
)
\ No newline at end of file
elif
commod
==
11
:
file_name
=
"
%
s_
%
s"
%
(
config
[
'corp_id'
],
config
[
'app_name'
])
apk_local
=
"
%
s/resGuardApks/
%
s.apk"
%
(
config
[
'root'
],
file_name
)
apk1
=
"/Users/connor/Documents/apks/
%
s.apk"
%
file_name
apk2
=
"/Users/connor/Documents/apks/
%
s/
%
s.apk"
%
(
file_name
,
file_name
)
if
os
.
path
.
exists
(
"/Users/connor/Documents/apks/
%
s"
%
file_name
):
shutil
.
copy
(
apk_local
,
apk2
)
else
:
shutil
.
copy
(
apk_local
,
apk1
)
\ No newline at end of file
resguard.gradle
View file @
724292b0
...
@@ -45,7 +45,8 @@ andResGuard {
...
@@ -45,7 +45,8 @@ andResGuard {
// finalApkBackupPath = "${project.rootDir}/final.apk"
// finalApkBackupPath = "${project.rootDir}/final.apk"
android
.
applicationVariants
.
all
{
variant
->
android
.
applicationVariants
.
all
{
variant
->
variant
.
outputs
.
all
{
variant
.
outputs
.
all
{
finalApkBackupPath
=
"${project.rootDir}/resGuardApks/${project.rootProject.name}_${variant.buildType.name}.apk"
def
appName
=
"${app_name}"
.
replace
(
" "
,
"-"
)
finalApkBackupPath
=
"${project.rootDir}/resGuardApks/${appName}_${variant.buildType.name}.apk"
}
}
}
}
...
...
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