首次添加 API 接口
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user