Ai
1 Star 0 Fork 2K

昵称不能为空/QtScrcpy

forked from Barry/QtScrcpy 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
generate-version.py 472 Bytes
一键复制 编辑 原始数据 按行查看 历史
Barry 提交于 2024-04-08 14:39 +08:00 . fix: build error on version repeat
import sys
import os
if __name__ == '__main__':
p = os.popen('git rev-list --tags --max-count=1')
commit = p.read()
p.close()
p = os.popen('git describe --tags ' + commit)
tag = p.read()
p.close()
# print('get tag:', tag)
version = str(tag[1:])
version_file = os.path.abspath(os.path.join(os.path.dirname(__file__), "../QtScrcpy/appversion"))
file=open(version_file, 'w')
file.write(version)
file.close()
sys.exit(0)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/phpzhu/QtScrcpy.git
git@gitee.com:phpzhu/QtScrcpy.git
phpzhu
QtScrcpy
QtScrcpy
dev

搜索帮助