File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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脚本日志,便于出错调试
You can’t perform that action at this time.
0 commit comments