diff --git a/build/DEBIAN/control b/build/DEBIAN/control index e697985..7461e90 100644 --- a/build/DEBIAN/control +++ b/build/DEBIAN/control @@ -1,9 +1,9 @@ Package: spark-uengine-runner -Version: 1.2.2 +Version: 1.2.3 Maintainer: gfdgd xi <3025613752@qq.com> Homepage: https://gitee.com/gfdgd-xi/uengine-runner Architecture: all 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 diff --git a/build/DEBIAN/postinst b/build/DEBIAN/postinst index f28c601..208e896 100755 --- a/build/DEBIAN/postinst +++ b/build/DEBIAN/postinst @@ -1,3 +1,4 @@ # !/bin/sh -python3 -m pip install --upgrade pillow >> /tmp/uengine-runner.temp.install.log -python3 -m pip install --upgrade ttkthemes >> /tmp/uengine-runner.temp.install.log \ No newline at end of file +# python3 -m pip install --upgrade pillow +# 依赖已经有设置,可以舍去 +python3 -m pip install --upgrade ttkthemes \ No newline at end of file diff --git a/build/opt/apps/uengine-runner/uengine-runner b/build/opt/apps/uengine-runner/uengine-runner index eb110b5..349f141 100755 --- a/build/opt/apps/uengine-runner/uengine-runner +++ b/build/opt/apps/uengine-runner/uengine-runner @@ -2,8 +2,8 @@ # 使用系统默认的 python3 运行 ########################################################################################### # 作者:gfdgd xi -# 版本:1.2.2 -# 更新时间:2021年5月30日 +# 版本:1.2.3 +# 更新时间:2021年8月2日 # 感谢:anbox、deepin 和 UOS # 基于 Python3 的 tkinter 构建 ########################################################################################### @@ -89,7 +89,7 @@ def InstallApk(path: "apk 路径", quit: "是否静默安装" = False): try: global findApkHistory 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) BuildUengineDesktop(GetApkPackageName(path), GetApkActivityName(path), GetApkChineseLabel(path), iconSavePath, "{}/{}.desktop".format(get_desktop_path(), GetApkPackageName(path))) @@ -356,7 +356,7 @@ def get_home()->"获取用户主目录": # 程序信息 ########################### programUrl = "https://gitee.com/gfdgd-xi/uengine-runner" -version = "1.2.2" +version = "1.2.3" goodRunSystem = "Linux(deepin/UOS)" aaptVersion = GetCommandReturn("aapt version") about = '''一个基于 Python3 的 tkinter 制作的 uengine APK 安装器 @@ -371,11 +371,10 @@ tips = '''提示: 2、需要安装 uengine 才能使用; 3、如果报错是有关产生 .deksotp 文件有关,一般可以打开程序列表安装。 如果想要连接其他手机,请使用 1.2.0 以前的版本,可以使用 adb 连接。''' -updateThingsString = '''※1、对程序错误的显示更加人性化; -2、对 icon 的获取方式进行了升级; -3、增加了注释、删除部分冗余代码。''' +updateThingsString = '''※1、修改了 deb 的打包,防止部分需要库没有安装; +2、修改了一个弱智错误''' title = "uengine 运行器 {}".format(version) -updateTime = "2021年7月11日" +updateTime = "2021年8月2日" updateThings = "{} 更新内容:\n{}\n更新时间:{}".format(version, updateThingsString, updateTime, time.strftime("%Y")) iconPath = "{}/icon.png".format(os.path.split(os.path.realpath(__file__))[0]) desktop = "/opt/apps/uengine-runner/UengineAndroidProgramList.desktop" diff --git a/main.py b/main.py index eb110b5..349f141 100755 --- a/main.py +++ b/main.py @@ -2,8 +2,8 @@ # 使用系统默认的 python3 运行 ########################################################################################### # 作者:gfdgd xi -# 版本:1.2.2 -# 更新时间:2021年5月30日 +# 版本:1.2.3 +# 更新时间:2021年8月2日 # 感谢:anbox、deepin 和 UOS # 基于 Python3 的 tkinter 构建 ########################################################################################### @@ -89,7 +89,7 @@ def InstallApk(path: "apk 路径", quit: "是否静默安装" = False): try: global findApkHistory 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) BuildUengineDesktop(GetApkPackageName(path), GetApkActivityName(path), GetApkChineseLabel(path), iconSavePath, "{}/{}.desktop".format(get_desktop_path(), GetApkPackageName(path))) @@ -356,7 +356,7 @@ def get_home()->"获取用户主目录": # 程序信息 ########################### programUrl = "https://gitee.com/gfdgd-xi/uengine-runner" -version = "1.2.2" +version = "1.2.3" goodRunSystem = "Linux(deepin/UOS)" aaptVersion = GetCommandReturn("aapt version") about = '''一个基于 Python3 的 tkinter 制作的 uengine APK 安装器 @@ -371,11 +371,10 @@ tips = '''提示: 2、需要安装 uengine 才能使用; 3、如果报错是有关产生 .deksotp 文件有关,一般可以打开程序列表安装。 如果想要连接其他手机,请使用 1.2.0 以前的版本,可以使用 adb 连接。''' -updateThingsString = '''※1、对程序错误的显示更加人性化; -2、对 icon 的获取方式进行了升级; -3、增加了注释、删除部分冗余代码。''' +updateThingsString = '''※1、修改了 deb 的打包,防止部分需要库没有安装; +2、修改了一个弱智错误''' title = "uengine 运行器 {}".format(version) -updateTime = "2021年7月11日" +updateTime = "2021年8月2日" updateThings = "{} 更新内容:\n{}\n更新时间:{}".format(version, updateThingsString, updateTime, time.strftime("%Y")) iconPath = "{}/icon.png".format(os.path.split(os.path.realpath(__file__))[0]) desktop = "/opt/apps/uengine-runner/UengineAndroidProgramList.desktop" diff --git a/spark-uengine-runner.deb b/spark-uengine-runner.deb index d90d9b5..40686fb 100644 Binary files a/spark-uengine-runner.deb and b/spark-uengine-runner.deb differ