Compare commits

...

1 Commits
1.2.2 ... 1.2.3

Author SHA1 Message Date
fde7a0d255 1.2.3——修复小问题 2021-08-02 08:01:23 +08:00
5 changed files with 19 additions and 20 deletions

View File

@@ -1,9 +1,9 @@
Package: spark-uengine-runner Package: spark-uengine-runner
Version: 1.2.2 Version: 1.2.3
Maintainer: gfdgd xi <3025613752@qq.com> Maintainer: gfdgd xi <3025613752@qq.com>
Homepage: https://gitee.com/gfdgd-xi/uengine-runner Homepage: https://gitee.com/gfdgd-xi/uengine-runner
Architecture: all Architecture: all
Priority: optional Priority: optional
Depends: python3, python3-tk, python3-pip, aapt, uengine Depends: python3, python3-tk, python3-pip, aapt, uengine, python3-pil, python3-pil.imagetk
Description: gfdgd xi make's uengine runner Description: gfdgd xi make's uengine runner

View File

@@ -1,3 +1,4 @@
# !/bin/sh # !/bin/sh
python3 -m pip install --upgrade pillow >> /tmp/uengine-runner.temp.install.log # python3 -m pip install --upgrade pillow
python3 -m pip install --upgrade ttkthemes >> /tmp/uengine-runner.temp.install.log # 依赖已经有设置,可以舍去
python3 -m pip install --upgrade ttkthemes

View File

@@ -2,8 +2,8 @@
# 使用系统默认的 python3 运行 # 使用系统默认的 python3 运行
########################################################################################### ###########################################################################################
# 作者gfdgd xi # 作者gfdgd xi
# 版本1.2.2 # 版本1.2.3
# 更新时间2021年5月30 # 更新时间2021年8月2
# 感谢anbox、deepin 和 UOS # 感谢anbox、deepin 和 UOS
# 基于 Python3 的 tkinter 构建 # 基于 Python3 的 tkinter 构建
########################################################################################### ###########################################################################################
@@ -89,7 +89,7 @@ def InstallApk(path: "apk 路径", quit: "是否静默安装" = False):
try: try:
global findApkHistory global findApkHistory
commandReturn = GetCommandReturn("pkexec /usr/bin/uengine-session-launch-helper -- uengine install --apk='{}'".format(path)) commandReturn = GetCommandReturn("pkexec /usr/bin/uengine-session-launch-helper -- uengine install --apk='{}'".format(path))
iconSavePath = "{}/.local/share/icons/hicolor/256x256/apps/{}.desktop".format(get_home(), GetApkPackageName(path)) iconSavePath = "{}/.local/share/icons/hicolor/256x256/apps/{}.png".format(get_home(), GetApkPackageName(path))
SaveApkIcon(path, iconSavePath) SaveApkIcon(path, iconSavePath)
BuildUengineDesktop(GetApkPackageName(path), GetApkActivityName(path), GetApkChineseLabel(path), iconSavePath, BuildUengineDesktop(GetApkPackageName(path), GetApkActivityName(path), GetApkChineseLabel(path), iconSavePath,
"{}/{}.desktop".format(get_desktop_path(), GetApkPackageName(path))) "{}/{}.desktop".format(get_desktop_path(), GetApkPackageName(path)))
@@ -356,7 +356,7 @@ def get_home()->"获取用户主目录":
# 程序信息 # 程序信息
########################### ###########################
programUrl = "https://gitee.com/gfdgd-xi/uengine-runner" programUrl = "https://gitee.com/gfdgd-xi/uengine-runner"
version = "1.2.2" version = "1.2.3"
goodRunSystem = "Linuxdeepin/UOS" goodRunSystem = "Linuxdeepin/UOS"
aaptVersion = GetCommandReturn("aapt version") aaptVersion = GetCommandReturn("aapt version")
about = '''一个基于 Python3 的 tkinter 制作的 uengine APK 安装器 about = '''一个基于 Python3 的 tkinter 制作的 uengine APK 安装器
@@ -371,11 +371,10 @@ tips = '''提示:
2、需要安装 uengine 才能使用; 2、需要安装 uengine 才能使用;
3、如果报错是有关产生 .deksotp 文件有关,一般可以打开程序列表安装。 3、如果报错是有关产生 .deksotp 文件有关,一般可以打开程序列表安装。
如果想要连接其他手机,请使用 1.2.0 以前的版本,可以使用 adb 连接。''' 如果想要连接其他手机,请使用 1.2.0 以前的版本,可以使用 adb 连接。'''
updateThingsString = '''※1、对程序错误的显示更加人性化; updateThingsString = '''※1、修改了 deb 的打包,防止部分需要库没有安装;
2、对 icon 的获取方式进行了升级; 2、修改了一个弱智错误'''
3、增加了注释、删除部分冗余代码。'''
title = "uengine 运行器 {}".format(version) title = "uengine 运行器 {}".format(version)
updateTime = "2021年7月11日" updateTime = "2021年8月2日"
updateThings = "{} 更新内容:\n{}\n更新时间{}".format(version, updateThingsString, updateTime, time.strftime("%Y")) updateThings = "{} 更新内容:\n{}\n更新时间{}".format(version, updateThingsString, updateTime, time.strftime("%Y"))
iconPath = "{}/icon.png".format(os.path.split(os.path.realpath(__file__))[0]) iconPath = "{}/icon.png".format(os.path.split(os.path.realpath(__file__))[0])
desktop = "/opt/apps/uengine-runner/UengineAndroidProgramList.desktop" desktop = "/opt/apps/uengine-runner/UengineAndroidProgramList.desktop"

15
main.py
View File

@@ -2,8 +2,8 @@
# 使用系统默认的 python3 运行 # 使用系统默认的 python3 运行
########################################################################################### ###########################################################################################
# 作者gfdgd xi # 作者gfdgd xi
# 版本1.2.2 # 版本1.2.3
# 更新时间2021年5月30 # 更新时间2021年8月2
# 感谢anbox、deepin 和 UOS # 感谢anbox、deepin 和 UOS
# 基于 Python3 的 tkinter 构建 # 基于 Python3 的 tkinter 构建
########################################################################################### ###########################################################################################
@@ -89,7 +89,7 @@ def InstallApk(path: "apk 路径", quit: "是否静默安装" = False):
try: try:
global findApkHistory global findApkHistory
commandReturn = GetCommandReturn("pkexec /usr/bin/uengine-session-launch-helper -- uengine install --apk='{}'".format(path)) commandReturn = GetCommandReturn("pkexec /usr/bin/uengine-session-launch-helper -- uengine install --apk='{}'".format(path))
iconSavePath = "{}/.local/share/icons/hicolor/256x256/apps/{}.desktop".format(get_home(), GetApkPackageName(path)) iconSavePath = "{}/.local/share/icons/hicolor/256x256/apps/{}.png".format(get_home(), GetApkPackageName(path))
SaveApkIcon(path, iconSavePath) SaveApkIcon(path, iconSavePath)
BuildUengineDesktop(GetApkPackageName(path), GetApkActivityName(path), GetApkChineseLabel(path), iconSavePath, BuildUengineDesktop(GetApkPackageName(path), GetApkActivityName(path), GetApkChineseLabel(path), iconSavePath,
"{}/{}.desktop".format(get_desktop_path(), GetApkPackageName(path))) "{}/{}.desktop".format(get_desktop_path(), GetApkPackageName(path)))
@@ -356,7 +356,7 @@ def get_home()->"获取用户主目录":
# 程序信息 # 程序信息
########################### ###########################
programUrl = "https://gitee.com/gfdgd-xi/uengine-runner" programUrl = "https://gitee.com/gfdgd-xi/uengine-runner"
version = "1.2.2" version = "1.2.3"
goodRunSystem = "Linuxdeepin/UOS" goodRunSystem = "Linuxdeepin/UOS"
aaptVersion = GetCommandReturn("aapt version") aaptVersion = GetCommandReturn("aapt version")
about = '''一个基于 Python3 的 tkinter 制作的 uengine APK 安装器 about = '''一个基于 Python3 的 tkinter 制作的 uengine APK 安装器
@@ -371,11 +371,10 @@ tips = '''提示:
2、需要安装 uengine 才能使用; 2、需要安装 uengine 才能使用;
3、如果报错是有关产生 .deksotp 文件有关,一般可以打开程序列表安装。 3、如果报错是有关产生 .deksotp 文件有关,一般可以打开程序列表安装。
如果想要连接其他手机,请使用 1.2.0 以前的版本,可以使用 adb 连接。''' 如果想要连接其他手机,请使用 1.2.0 以前的版本,可以使用 adb 连接。'''
updateThingsString = '''※1、对程序错误的显示更加人性化; updateThingsString = '''※1、修改了 deb 的打包,防止部分需要库没有安装;
2、对 icon 的获取方式进行了升级; 2、修改了一个弱智错误'''
3、增加了注释、删除部分冗余代码。'''
title = "uengine 运行器 {}".format(version) title = "uengine 运行器 {}".format(version)
updateTime = "2021年7月11" updateTime = "2021年8月2"
updateThings = "{} 更新内容:\n{}\n更新时间:{}".format(version, updateThingsString, updateTime, time.strftime("%Y")) updateThings = "{} 更新内容:\n{}\n更新时间:{}".format(version, updateThingsString, updateTime, time.strftime("%Y"))
iconPath = "{}/icon.png".format(os.path.split(os.path.realpath(__file__))[0]) iconPath = "{}/icon.png".format(os.path.split(os.path.realpath(__file__))[0])
desktop = "/opt/apps/uengine-runner/UengineAndroidProgramList.desktop" desktop = "/opt/apps/uengine-runner/UengineAndroidProgramList.desktop"

Binary file not shown.