首次添加 API 接口

This commit is contained in:
2022-05-15 20:13:18 +08:00
parent 65eaf17d85
commit 677ff4c16b
12 changed files with 213 additions and 35 deletions

View File

@@ -2,8 +2,8 @@
# 使用系统默认的 python3 运行
###########################################################################################
# 作者gfdgd xi
# 版本1.5.3
# 更新时间2022年02月07日要开学了)
# 版本1.6.1
# 更新时间2022年04月30日五一了)
# 感谢anbox、deepin 和 统信
# 基于 Python3 的 tkinter 构建
###########################################################################################
@@ -68,9 +68,9 @@ def BuildApkDeb(apkPath):
RunCommandShow("echo '写入文件,因为写入过程过于复杂,不显示写入命令……'")
apkPackageName = GetApkPackageName(apkPath, False)
if qianZhui.get():
apkPackageNameNew = GetApkPackageName(apkPath, True)
apkPackageNameNew = GetApkPackageName(apkPath, True).lower()
else:
apkPackageNameNew = GetApkPackageName(apkPath, False)
apkPackageNameNew = GetApkPackageName(apkPath, False).lower()
apkPackageVersion = GetApkVersion(apkPath)
if apkPackageVersion[0].upper() == "V":
package = list(apkPackageVersion)
@@ -274,8 +274,8 @@ def GetApkPackageName(apkFilePath, setting):
line = line.replace(" ", "")
# 此较为特殊,因为需要判断用户是否要添加前缀
if setting:
return "uengine-dc-{}".format(line).lower()
return line.lower()
return "uengine-dc-{}".format(line)
return line
def GetApkVersion(apkFilePath):
info = GetApkInformation(apkFilePath)