Skip to content

SerBad/publish_pgyer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

更新

增加sign_apk.py,为apk执行签名 如果需要为aab格式的签名,参见 https://github.com/SerBad/RunBuildAAB

upload_pgyer.py增加企业微信webhook的参数

使用

新建文件upload_pgyer.py

在Android项目中的build.gradle,新建一个task,可以替换成自己需要的文件目录

task uploadpython(type: Exec) {
    commandLine 'python3', "${rootDir.absolutePath}/publish_pgyer/upload_pgyer.py", '--path', "$buildDir/outputs/apk", '--api_key', '你自己的key'
}

需要注意的是,新版本的apk不在outputs下面了,是在"$buildDir/intermediates/apk"下面。

新建上面的任务之后,然后使用下面的命令就可以上传了。

./gradlew uploadpython

项目地址,https://github.com/SerBad/publish_pgyer

git子模块

可以使用git的submodule方法来把其他git的子模块添加到项目里面去 使用方法是

git submodule add https://github.com/SerBad/publish_pgyer.git

About

使用python发布到蒲公英

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages