Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
Android-AutoPackage
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
app
Android-AutoPackage
Commits
39ada1f9
Commit
39ada1f9
authored
Jun 10, 2025
by
段志勇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
95549
parent
1e34f309
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
apk_script/auto_package_apk.sh
+5
-4
No files found.
apk_script/auto_package_apk.sh
View file @
39ada1f9
...
...
@@ -34,12 +34,13 @@ echo_log "======================================="
# 打包命令
cd
${
PROJECT_DIR
}
#
gradle clean
#
gradle assemble${BUILD_ENV}${BUILD_TYPE}
gradle clean
gradle assemble
${
BUILD_ENV
}${
BUILD_TYPE
}
JKS_PATH
=(
$(
find
${
PROJECT_DIR
}
-name
*
.jks
)
)
APK_NAME
=
BUILD_ENV
==
'PRD'
?
'*arm64-v8a.apk'
:
'*.apk'
APK_PATH
=(
$(
find
${
PROJECT_DIR
}
/app/build
-name
${
APK_NAME
})
)
APK_PATH
=(
$(
find
${
PROJECT_DIR
}
/app/build
-name
*
.apk
)
)
if
[
"PRD"
==
"
$BUILD_ENV
"
]
;
then
APK_PATH
=(
$(
find
${
PROJECT_DIR
}
/app/build
-name
*
arm64-v8a.apk
)
)
APK_INFO
=
$(
aapt d badging
$APK_PATH
|
grep
package
)
APK_INFO
=(
${
APK_INFO
/ /
}
)
VERSION
=(
${
APK_INFO
[2]/=/
}
)
...
...
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