Skip to content

Commit c349ead

Browse files
committed
优化
1 parent 9c4bb2f commit c349ead

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@ android {
5757
def appversion=project.android.defaultConfig.versionName
5858
def appbuild=project.android.defaultConfig.versionCode
5959
def apitoken="368967b71745181a78ea8cb01ab237c5"
60-
def apklogo="D:/studioProject/AndroidJetPack/app/src/main/res/drawable/icon.png"
6160
def apkpath = applicationVariants.first().outputs.first().outputFile
62-
println("路径:" + applicationVariants.first())
61+
def apklogo=apkpath.parent.split("build")[0] + "src/main/res/drawable/icon.png"
62+
println("路径:" + apklogo)
6363
//调用python脚本 这个脚本需要放在app工程目录下,不要放在project目录下
6464
def process="python UploadToFir.py ${appname} ${apppackage} ${appversion} ${appbuild} ${apitoken} ${apklogo} ${apkpath}".execute()
6565
//打印Python脚本日志,便于出错调试

0 commit comments

Comments
 (0)