Compare commits
14 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| ad5f08ca38 | |||
| 618a8c4941 | |||
| 9ef3c45ff6 | |||
| ac677c1bb1 | |||
| 655b45de4d | |||
| 278e1722a5 | |||
| 34937827d9 | |||
| 712f2d25cc | |||
| 4845337d73 | |||
| 4fd7840bbe | |||
| 4ec0887a58 | |||
| d105f85510 | |||
| 8057f2a596 | |||
| 74831ea4c2 |
256
Language.json
Normal file
@@ -0,0 +1,256 @@
|
||||
{
|
||||
"zh_CN.UTF-8": {
|
||||
"Main": {
|
||||
"MainWindow": {
|
||||
"Title": "UEngine 运行器",
|
||||
"LabApkPath": "安装/卸载 APK:",
|
||||
"LabUninstallPath": "卸载 Apk:",
|
||||
"BtnFindApk": "浏览",
|
||||
"BtnInstall": "安装",
|
||||
"BtnShowUengineApp": "打开 UEngine 应用列表",
|
||||
"BtnUninstallApkBrowser": "浏览",
|
||||
"BtnUninstall": "卸载",
|
||||
"Btngeticon": "保存图标",
|
||||
"BtnSaveApk": "保存Apk",
|
||||
"BtnApkInformation": "Apk 信息",
|
||||
"Menu": [
|
||||
{
|
||||
"Name": "程序",
|
||||
"Menu": [
|
||||
"清空软件历史记录",
|
||||
"退出程序"
|
||||
]
|
||||
},
|
||||
{
|
||||
"Name": "adb",
|
||||
"Menu": [
|
||||
"Adb 连接 UEngine",
|
||||
{
|
||||
"Name": "Adb 服务",
|
||||
"Menu": [
|
||||
"打开 Adb 服务",
|
||||
"停止 Adb 服务",
|
||||
"杀死 Adb 进程"
|
||||
]
|
||||
},
|
||||
"显示 Adb 连接的设备",
|
||||
"Adb 修改 UEngine 分辨率",
|
||||
"Adb 查看 UEngine 应用列表",
|
||||
"Adb 查看 UEngine 资源使用情况",
|
||||
"打开 Adb 连接 UEngine 的终端",
|
||||
"使用 Scrcpy 连接 UEngine(只支持使用 Snap 安装的 Scrcpy)",
|
||||
{
|
||||
"Name": "UEngine 使用 Adb",
|
||||
"Menu": [
|
||||
"Adb 连接 Connect UEngine",
|
||||
"允许此设备使用 Adb 连接本 UEngine(需要 Root)",
|
||||
"禁止任何设备使用 Adb 连接本 UEngine(需要 Root)"
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"Name": "UEngine",
|
||||
"Menu": [
|
||||
"UEngine 系统设置",
|
||||
"UEngine 应用打包",
|
||||
{
|
||||
"Name": "UEngine 服务",
|
||||
"Menu": [
|
||||
"启动 UEngine 服务(需要 Root)",
|
||||
"关闭 UEngine 服务(需要 Root)",
|
||||
"重启 UEngine 服务(需要 Root)"
|
||||
]
|
||||
},
|
||||
{
|
||||
"Name": "UEngine 网络桥接",
|
||||
"Menu": [
|
||||
"启动 UEngine 网络桥接(需要 Root)",
|
||||
"关闭 UEngine 网络桥接(需要 Root)",
|
||||
"重启 UEngine 网络桥接(需要 Root)",
|
||||
"加载 UEngine 网络桥接(需要 Root)",
|
||||
"强制加载 UEngine 网络桥接(需要 Root)"
|
||||
]
|
||||
},
|
||||
{
|
||||
"Name": "UEngine 快捷方式",
|
||||
"Menu": [
|
||||
"发送 UEngine 应用列表到桌面",
|
||||
"发送 UEngine 应用列表到启动器",
|
||||
"添加/删除指定的 UEngine 快捷方式",
|
||||
"清空所有 UEngine 快捷方式"
|
||||
]
|
||||
},
|
||||
{
|
||||
"Name": "UEngine 使用 Adb",
|
||||
"Menu": null
|
||||
},
|
||||
{
|
||||
"Name": "UEngine 数据",
|
||||
"Menu": [
|
||||
"打开 UEngine 根目录",
|
||||
"打开 UEngine 用户数据目录",
|
||||
"清空 UEngine 数据(需要 Root)"
|
||||
]
|
||||
},
|
||||
"UEngine 键盘映射",
|
||||
"UEngine 检测 CPU 是否支持运行",
|
||||
"删除 UEngine 运行检查",
|
||||
"重新安装 UEngine"
|
||||
]
|
||||
},
|
||||
{
|
||||
"Name": "关于",
|
||||
"Menu": [
|
||||
"程序官网",
|
||||
"关于",
|
||||
"反馈程序问题和建议"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"Uengine Apk Builder": {
|
||||
"Title": "UEngine APK 应用打包器",
|
||||
"label1": "要打包的 apk 路径:",
|
||||
"button2": "浏览",
|
||||
"button3": " 打包",
|
||||
"check": "使用前缀“uengine-dc”",
|
||||
"Menu": [
|
||||
{
|
||||
"Name": "程序",
|
||||
"Menu": [
|
||||
"退出程序"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"en_US.UTF-8": {
|
||||
"Main": {
|
||||
"MainWindow": {
|
||||
"Title": "UEngine Runner",
|
||||
"LabApkPath": "Install Or Uninstall Apk:",
|
||||
"BtnFindApk": "Find",
|
||||
"BtnInstall": "Install",
|
||||
"BtnShowUengineApp": "Open UEngine App List",
|
||||
"BtnUninstallApkBrowser": "Find",
|
||||
"BtnUninstall": "Uninstall",
|
||||
"Btngeticon": "Save Apk Icon",
|
||||
"BtnSaveApk": "Saving Installed App Apk",
|
||||
"BtnApkInformation": "Apk Information",
|
||||
"Menu": [
|
||||
{
|
||||
"Name": "Program",
|
||||
"Menu": [
|
||||
"Clean Program History",
|
||||
"Exit The Program"
|
||||
]
|
||||
},
|
||||
{
|
||||
"Name": "adb",
|
||||
"Menu": [
|
||||
"Use Adb To Connect UEngine",
|
||||
{
|
||||
"Name": "Adb Services",
|
||||
"Menu": [
|
||||
"Open Adb Service",
|
||||
"Close Adb Service",
|
||||
"Kill Adb Program"
|
||||
]
|
||||
},
|
||||
"Show Adb To Connect Devices",
|
||||
"Use Adb To Change UEngine Display Size",
|
||||
"Use Adb To Show UEngine Installing Program List",
|
||||
"Use Adb To Show UEngine Using System Resources",
|
||||
"Open Adb Console With UEngine",
|
||||
"Use Scrcpy Connect UEngine (Only Support Using Scrcpy With Installing the Scrcpy)",
|
||||
{
|
||||
"Name": "UEngine Use Adb",
|
||||
"Menu": [
|
||||
"Use Adb To Connect UEngine",
|
||||
"Allow This Devices Using Adb To Connect The UEngine (Allow Need Using For Root)",
|
||||
"Unallow Any Devices Using Adb To Connect The UEngine (Unallow Need Using For Root)"
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"Name": "UEngine",
|
||||
"Menu": [
|
||||
"UEngine System Control Panel",
|
||||
"UEngine Android App Builder",
|
||||
{
|
||||
"Name": "UEngine Service",
|
||||
"Menu": [
|
||||
"Open UEngine Service (It Need Run With Root)",
|
||||
"Close UEngine Service (It Need Run With Root)",
|
||||
"Restart UEngine Service (It Need Run With Root)"
|
||||
]
|
||||
},
|
||||
{
|
||||
"Name": "UEngine Internet Connecting",
|
||||
"Menu": [
|
||||
"Open UEngine Internet Bridge (It Need Run With Root)",
|
||||
"Close UEngine Internet Bridge (It Need Run With Root)",
|
||||
"Restart UEngine Internet Bridge (It Need Run With Root)",
|
||||
"Load UEngine Internet Bridge (It Need Run With Root)",
|
||||
"Force Loading UEngine Internet Bridge (It Need Run With Root)"
|
||||
]
|
||||
},
|
||||
{
|
||||
"Name": "UEngine App Link",
|
||||
"Menu": [
|
||||
"Send UEngine Program List To Desktop",
|
||||
"Send UEngine Program List To Launcher",
|
||||
"Add Or Delete UEngine App Link",
|
||||
"Delete All UEngine App Link"
|
||||
]
|
||||
},
|
||||
{
|
||||
"Name": "UEngine Use Adb",
|
||||
"Menu": null
|
||||
},
|
||||
{
|
||||
"Name": "UEngine Data",
|
||||
"Menu": [
|
||||
"Open UEngine Root Folder",
|
||||
"Open UEngine User Folder",
|
||||
"Delete All UEngine Data (It Need Run With Root)"
|
||||
]
|
||||
},
|
||||
"UEngine Keyboard",
|
||||
"UEngine Check CPU Can Or Can't Run",
|
||||
"Delete UEngine Runing Checking",
|
||||
"Reinstall UEngine"
|
||||
]
|
||||
},
|
||||
{
|
||||
"Name": "About",
|
||||
"Menu": [
|
||||
"Program WebSize",
|
||||
"Program Help",
|
||||
"Upload Problem And Advice"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"Uengine Apk Builder": {
|
||||
"Title": "UEngine APK Builder",
|
||||
"label1": "Will Build APK Path",
|
||||
"button2": "Find",
|
||||
"button3": " Build",
|
||||
"check": "Use Prefix With \"uengine-dc\"",
|
||||
"Menu": [
|
||||
{
|
||||
"Name": "Program",
|
||||
"Menu": [
|
||||
"Exit The Program"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
29
README.md
@@ -1,12 +1,37 @@
|
||||
# uengine 运行器 1.4.0
|
||||
# uengine 运行器 1.5.1
|
||||
|
||||
### 介绍
|
||||
新版本Deepin/UOS发布后,可以在应用商店安装部分官方已适配的安卓应用,对爱好者来说,不能自己安装APK软件包始终差点意思,本程序可以为Deepin/UOS上的UEngine安卓运行环境安装自定义APK软件包,并能发送安装的APK包启动菜单到桌面或系统菜单。
|
||||

|
||||

|
||||
(测试平台:UOS 家庭版,deepin 20.2.2,UOS 专业版 1040)
|
||||
(自己美术功底太差,图标直接用 anbox 的了)
|
||||
|
||||
### 更新内容
|
||||
#### V1.5.1(2021-10-05,国庆节版):
|
||||
**※1、精简用户界面,合并安装和卸载输入框和浏览按钮等**
|
||||
**※2、修复安装以其的程序图标无法点击进入的问题(deepin 社区版不存在此问题)**
|
||||
**※3、支持在程序本体反馈问题**
|
||||
4、修复了菜单栏的部分显示问题
|
||||
5、支持显示 apk 的部分信息
|
||||
6、支持删除 UEngine 程序运行检查以及重新安装 UEngine 的功能
|
||||
7、自带有跳过家庭版必须有指定包名才能运行程序限制的脚本
|
||||
8、补回依赖包“adb”
|
||||

|
||||
|
||||
#### V1.5.0(2021-09-21,中秋节版):
|
||||
**没有什么实质性的功能,只是开始有多语言支持**
|
||||
**※1、部分窗口支持英语**
|
||||
2、修复在英语状态下启动器图标名称异常的问题
|
||||

|
||||
|
||||
#### V1.4.3(2021-09-11,开学第一版):
|
||||
**※1、支持打包器打包的包名带前缀“uengine-dc”**
|
||||
**※2、修复了两种情况可能导致程序卡住/出错无法继续运行的情况(配置文件夹不齐全和获取版本信息卡住两种情况)**
|
||||
**※3、修改了 UEngine 打包器打包的应用包名可能有大写的情况**
|
||||
4、支持一键使用 Scrcpy 连接 UEngine(①先安装 adb 破解补丁;②请确保是使用snap安装的 Scrcpy【目前只支持 snap 安装的 Scrcpy 进行连接】)
|
||||
5、支持右键打包 apk
|
||||

|
||||
|
||||
#### V1.4.2(2021-08-30,快开学了):
|
||||
**※1、添加adb破解补丁(用于可以让adb连接UEngine)并支持adb的部分操作;**
|
||||
2、菜单栏的项目添加以及外观优化;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
Categories=System;
|
||||
Comment=UEngine 程序菜单
|
||||
Encoding=UTF-8
|
||||
Exec=/usr/bin/uengine-launch.sh --package=org.anbox.appmgr --component=org.anbox.appmgr.AppViewActivity
|
||||
Exec=/usr/bin/uengine launch.sh --package=org.anbox.appmgr --component=org.anbox.appmgr.AppViewActivity
|
||||
Icon=/opt/apps/uengine-runner/icon.png
|
||||
MimeType=
|
||||
Name=UEngine 程序菜单
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
Package: spark-uengine-runner
|
||||
Version: 1.4.2
|
||||
Version: 1.5.1
|
||||
Maintainer: gfdgd xi <3025613752@qq.com>, actionchen<917981399@qq.com>
|
||||
Homepage: [https://gitee.com/gfdgd-xi/uengine-runner, https://github.com/gfdgd-xi/uengine-runner]
|
||||
Architecture: all
|
||||
Priority: optional
|
||||
Conflicts: com.gitee.uengine.runner.spark, spark-uengine-apk-builder
|
||||
Depends: python3, python3-tk, python3-pip, aapt, uengine, python3-pil, python3-setuptools, deepin-terminal
|
||||
Depends: python3, python3-tk, python3-pip, aapt, uengine, python3-setuptools, deepin-terminal, curl, python3-pil, python3-pil.imagetk, python3-requests, adb, translate-shell
|
||||
Description: UEngine Runner for deepin and UOS
|
||||
|
||||
|
||||
@@ -1,5 +1,10 @@
|
||||
#!/bin/sh
|
||||
python3 -m pip install --upgrade ttkthemes
|
||||
python3 -m pip install --upgrade pyautogui
|
||||
python3 -m pip install --upgrade keyboard
|
||||
python3 -m pip install --upgrade requests
|
||||
# 安装所需库
|
||||
python3 -m pip install --upgrade ttkthemes -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com
|
||||
python3 -m pip install --upgrade pyautogui -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com
|
||||
python3 -m pip install --upgrade keyboard -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com
|
||||
python3 -m pip install --upgrade requests -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com
|
||||
# 刷新图标缓存
|
||||
gtk-update-icon-cache /usr/share/icons/bloom
|
||||
# 向服务器返回安装数加1(不显示内容且忽略错误)
|
||||
curl http://gfdgdxi.qicp.vip/uengine/Install.php -s > /dev/null | true
|
||||
14
build/DEBIAN/postrm
Executable file
@@ -0,0 +1,14 @@
|
||||
#!/bin/sh
|
||||
# 删除软链接
|
||||
rm -fv /usr/bin/uengine-runner
|
||||
rm -fv /usr/bin/uengine-apk-builder
|
||||
rm -fv /usr/bin/uengine-app-uninstall
|
||||
rm -fv /usr/bin/uengine-app-install
|
||||
rm -fv /usr/bin/uengine-clean
|
||||
rm -fv /usr/bin/uengine-runner-about
|
||||
rm -fv /usr/bin/uengine-keyboard
|
||||
rm -fv /usr/bin/uengine-useadb
|
||||
rm -fv /usr/bin/uengine-runner-launch.sh
|
||||
rm -fv /usr/bin/uengine-runner-update-bug
|
||||
# 刷新图标缓存
|
||||
gtk-update-icon-cache /usr/share/icons/bloom
|
||||
256
build/opt/apps/uengine-runner/Language.json
Normal file
@@ -0,0 +1,256 @@
|
||||
{
|
||||
"zh_CN.UTF-8": {
|
||||
"Main": {
|
||||
"MainWindow": {
|
||||
"Title": "UEngine 运行器",
|
||||
"LabApkPath": "安装/卸载 APK:",
|
||||
"LabUninstallPath": "卸载 Apk:",
|
||||
"BtnFindApk": "浏览",
|
||||
"BtnInstall": "安装",
|
||||
"BtnShowUengineApp": "打开 UEngine 应用列表",
|
||||
"BtnUninstallApkBrowser": "浏览",
|
||||
"BtnUninstall": "卸载",
|
||||
"Btngeticon": "保存图标",
|
||||
"BtnSaveApk": "保存Apk",
|
||||
"BtnApkInformation": "Apk 信息",
|
||||
"Menu": [
|
||||
{
|
||||
"Name": "程序",
|
||||
"Menu": [
|
||||
"清空软件历史记录",
|
||||
"退出程序"
|
||||
]
|
||||
},
|
||||
{
|
||||
"Name": "adb",
|
||||
"Menu": [
|
||||
"Adb 连接 UEngine",
|
||||
{
|
||||
"Name": "Adb 服务",
|
||||
"Menu": [
|
||||
"打开 Adb 服务",
|
||||
"停止 Adb 服务",
|
||||
"杀死 Adb 进程"
|
||||
]
|
||||
},
|
||||
"显示 Adb 连接的设备",
|
||||
"Adb 修改 UEngine 分辨率",
|
||||
"Adb 查看 UEngine 应用列表",
|
||||
"Adb 查看 UEngine 资源使用情况",
|
||||
"打开 Adb 连接 UEngine 的终端",
|
||||
"使用 Scrcpy 连接 UEngine(只支持使用 Snap 安装的 Scrcpy)",
|
||||
{
|
||||
"Name": "UEngine 使用 Adb",
|
||||
"Menu": [
|
||||
"Adb 连接 Connect UEngine",
|
||||
"允许此设备使用 Adb 连接本 UEngine(需要 Root)",
|
||||
"禁止任何设备使用 Adb 连接本 UEngine(需要 Root)"
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"Name": "UEngine",
|
||||
"Menu": [
|
||||
"UEngine 系统设置",
|
||||
"UEngine 应用打包",
|
||||
{
|
||||
"Name": "UEngine 服务",
|
||||
"Menu": [
|
||||
"启动 UEngine 服务(需要 Root)",
|
||||
"关闭 UEngine 服务(需要 Root)",
|
||||
"重启 UEngine 服务(需要 Root)"
|
||||
]
|
||||
},
|
||||
{
|
||||
"Name": "UEngine 网络桥接",
|
||||
"Menu": [
|
||||
"启动 UEngine 网络桥接(需要 Root)",
|
||||
"关闭 UEngine 网络桥接(需要 Root)",
|
||||
"重启 UEngine 网络桥接(需要 Root)",
|
||||
"加载 UEngine 网络桥接(需要 Root)",
|
||||
"强制加载 UEngine 网络桥接(需要 Root)"
|
||||
]
|
||||
},
|
||||
{
|
||||
"Name": "UEngine 快捷方式",
|
||||
"Menu": [
|
||||
"发送 UEngine 应用列表到桌面",
|
||||
"发送 UEngine 应用列表到启动器",
|
||||
"添加/删除指定的 UEngine 快捷方式",
|
||||
"清空所有 UEngine 快捷方式"
|
||||
]
|
||||
},
|
||||
{
|
||||
"Name": "UEngine 使用 Adb",
|
||||
"Menu": null
|
||||
},
|
||||
{
|
||||
"Name": "UEngine 数据",
|
||||
"Menu": [
|
||||
"打开 UEngine 根目录",
|
||||
"打开 UEngine 用户数据目录",
|
||||
"清空 UEngine 数据(需要 Root)"
|
||||
]
|
||||
},
|
||||
"UEngine 键盘映射",
|
||||
"UEngine 检测 CPU 是否支持运行",
|
||||
"删除 UEngine 运行检查",
|
||||
"重新安装 UEngine"
|
||||
]
|
||||
},
|
||||
{
|
||||
"Name": "关于",
|
||||
"Menu": [
|
||||
"程序官网",
|
||||
"关于",
|
||||
"反馈程序问题和建议"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"Uengine Apk Builder": {
|
||||
"Title": "UEngine APK 应用打包器",
|
||||
"label1": "要打包的 apk 路径:",
|
||||
"button2": "浏览",
|
||||
"button3": " 打包",
|
||||
"check": "使用前缀“uengine-dc”",
|
||||
"Menu": [
|
||||
{
|
||||
"Name": "程序",
|
||||
"Menu": [
|
||||
"退出程序"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"en_US.UTF-8": {
|
||||
"Main": {
|
||||
"MainWindow": {
|
||||
"Title": "UEngine Runner",
|
||||
"LabApkPath": "Install Or Uninstall Apk:",
|
||||
"BtnFindApk": "Find",
|
||||
"BtnInstall": "Install",
|
||||
"BtnShowUengineApp": "Open UEngine App List",
|
||||
"BtnUninstallApkBrowser": "Find",
|
||||
"BtnUninstall": "Uninstall",
|
||||
"Btngeticon": "Save Apk Icon",
|
||||
"BtnSaveApk": "Saving Installed App Apk",
|
||||
"BtnApkInformation": "Apk Information",
|
||||
"Menu": [
|
||||
{
|
||||
"Name": "Program",
|
||||
"Menu": [
|
||||
"Clean Program History",
|
||||
"Exit The Program"
|
||||
]
|
||||
},
|
||||
{
|
||||
"Name": "adb",
|
||||
"Menu": [
|
||||
"Use Adb To Connect UEngine",
|
||||
{
|
||||
"Name": "Adb Services",
|
||||
"Menu": [
|
||||
"Open Adb Service",
|
||||
"Close Adb Service",
|
||||
"Kill Adb Program"
|
||||
]
|
||||
},
|
||||
"Show Adb To Connect Devices",
|
||||
"Use Adb To Change UEngine Display Size",
|
||||
"Use Adb To Show UEngine Installing Program List",
|
||||
"Use Adb To Show UEngine Using System Resources",
|
||||
"Open Adb Console With UEngine",
|
||||
"Use Scrcpy Connect UEngine (Only Support Using Scrcpy With Installing the Scrcpy)",
|
||||
{
|
||||
"Name": "UEngine Use Adb",
|
||||
"Menu": [
|
||||
"Use Adb To Connect UEngine",
|
||||
"Allow This Devices Using Adb To Connect The UEngine (Allow Need Using For Root)",
|
||||
"Unallow Any Devices Using Adb To Connect The UEngine (Unallow Need Using For Root)"
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"Name": "UEngine",
|
||||
"Menu": [
|
||||
"UEngine System Control Panel",
|
||||
"UEngine Android App Builder",
|
||||
{
|
||||
"Name": "UEngine Service",
|
||||
"Menu": [
|
||||
"Open UEngine Service (It Need Run With Root)",
|
||||
"Close UEngine Service (It Need Run With Root)",
|
||||
"Restart UEngine Service (It Need Run With Root)"
|
||||
]
|
||||
},
|
||||
{
|
||||
"Name": "UEngine Internet Connecting",
|
||||
"Menu": [
|
||||
"Open UEngine Internet Bridge (It Need Run With Root)",
|
||||
"Close UEngine Internet Bridge (It Need Run With Root)",
|
||||
"Restart UEngine Internet Bridge (It Need Run With Root)",
|
||||
"Load UEngine Internet Bridge (It Need Run With Root)",
|
||||
"Force Loading UEngine Internet Bridge (It Need Run With Root)"
|
||||
]
|
||||
},
|
||||
{
|
||||
"Name": "UEngine App Link",
|
||||
"Menu": [
|
||||
"Send UEngine Program List To Desktop",
|
||||
"Send UEngine Program List To Launcher",
|
||||
"Add Or Delete UEngine App Link",
|
||||
"Delete All UEngine App Link"
|
||||
]
|
||||
},
|
||||
{
|
||||
"Name": "UEngine Use Adb",
|
||||
"Menu": null
|
||||
},
|
||||
{
|
||||
"Name": "UEngine Data",
|
||||
"Menu": [
|
||||
"Open UEngine Root Folder",
|
||||
"Open UEngine User Folder",
|
||||
"Delete All UEngine Data (It Need Run With Root)"
|
||||
]
|
||||
},
|
||||
"UEngine Keyboard",
|
||||
"UEngine Check CPU Can Or Can't Run",
|
||||
"Delete UEngine Runing Checking",
|
||||
"Reinstall UEngine"
|
||||
]
|
||||
},
|
||||
{
|
||||
"Name": "About",
|
||||
"Menu": [
|
||||
"Program WebSize",
|
||||
"Program Help",
|
||||
"Upload Problem And Advice"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"Uengine Apk Builder": {
|
||||
"Title": "UEngine APK Builder",
|
||||
"label1": "Will Build APK Path",
|
||||
"button2": "Find",
|
||||
"button3": " Build",
|
||||
"check": "Use Prefix With \"uengine-dc\"",
|
||||
"Menu": [
|
||||
{
|
||||
"Name": "Program",
|
||||
"Menu": [
|
||||
"Exit The Program"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,11 +1,11 @@
|
||||
[Desktop Entry]
|
||||
Categories=System;
|
||||
Comment=uengine(anbox) 程序菜单
|
||||
Comment=UEngine 程序菜单
|
||||
Encoding=UTF-8
|
||||
Exec=/usr/bin/uengine-launch.sh --package=org.anbox.appmgr --component=org.anbox.appmgr.AppViewActivity
|
||||
Exec=/usr/bin/uengine launch --package=org.anbox.appmgr --component=org.anbox.appmgr.AppViewActivity
|
||||
Icon=/opt/apps/uengine-runner/icon.png
|
||||
MimeType=
|
||||
Name=uengine 程序菜单
|
||||
StartupWMClass=uengine 程序菜单
|
||||
Name=UEngine 程序菜单
|
||||
StartupWMClass=UEngine 程序菜单
|
||||
Terminal=false
|
||||
Type=Application
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
"https://gitee.com/gfdgd-xi/uengine-runner",
|
||||
"https://github.com/gfdgd-xi/uengine-runner"
|
||||
],
|
||||
"Version": "1.4.2",
|
||||
"Version": "1.5.1",
|
||||
"System": "Linux(deepin/UOS)",
|
||||
"Tips": [
|
||||
"更多可见:https://gitee.com/gfdgd-xi/uengine-runner/wikis",
|
||||
@@ -26,6 +26,27 @@
|
||||
"4、如果想要使用adb连接UEngine或其他手机,请使用 1.2.0 以前的版本。(如需连接UEngine请安装adb补丁)"
|
||||
],
|
||||
"Update": [
|
||||
"V1.5.1:",
|
||||
"※1、精简用户界面,合并安装和卸载输入框和浏览按钮等",
|
||||
"※2、修复安装以其的程序图标无法点击进入的问题(deepin 社区版不存在此问题)",
|
||||
"※3、支持在程序本体反馈问题",
|
||||
"4、修复了菜单栏的部分显示问题",
|
||||
"5、支持显示 apk 的部分信息",
|
||||
"6、支持删除 UEngine 程序运行检查以及重新安装 UEngine 的功能",
|
||||
"7、自带有跳过家庭版必须有指定包名才能运行程序限制的脚本",
|
||||
"8、补回依赖包“adb”",
|
||||
"",
|
||||
"V1.5.0:",
|
||||
"※1、部分窗口支持英语",
|
||||
"2、修复在英语状态下启动器图标名称异常的问题",
|
||||
"",
|
||||
"V1.4.3:",
|
||||
"※1、支持打包器打包的包名带前缀“uengine-dc”",
|
||||
"※2、修复了两种情况可能导致程序卡住/出错无法继续运行的情况(配置文件夹不齐全和获取版本信息卡住两种情况)",
|
||||
"※3、修改了 UEngine 打包器打包的应用包名可能有大写的情况",
|
||||
"4、支持一键使用 Scrcpy 连接 UEngine(①先安装 adb 破解补丁;②请确保是使用snap安装的 Scrcpy【目前只支持 snap 安装的 Scrcpy 进行连接】)",
|
||||
"5、支持右键打包 apk",
|
||||
"",
|
||||
"V1.4.2:",
|
||||
"※1、添加adb破解补丁(用于可以让adb连接UEngine)并支持adb的部分操作;",
|
||||
"2、菜单栏的项目添加以及外观优化;",
|
||||
|
||||
6
build/opt/apps/uengine-runner/setting-new.json
Executable file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"Package": "com.gitee.uengine.runner.spark",
|
||||
"Update": true,
|
||||
"Version": "1.5.1",
|
||||
"Url": "https://gfdgd-xi.github.io/update-program/data/UpdateInformation.json"
|
||||
}
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"Package": "spark-uengine-runner",
|
||||
"Update": true,
|
||||
"Version": "1.4.2",
|
||||
"Version": "1.5.1",
|
||||
"Url": "https://gfdgd-xi.github.io/update-program/data/UpdateInformation.json"
|
||||
|
||||
}
|
||||
@@ -148,7 +148,7 @@ done
|
||||
exit 0'''.format(apkPackageName)
|
||||
desktopFile = '''[Desktop Entry]
|
||||
Categories=Other;
|
||||
Exec=/usr/bin/uengine-launch.sh --action=android.intent.action.MAIN --package={} --component={}
|
||||
Exec=uengine launch --action=android.intent.action.MAIN --package={} --component={}
|
||||
Icon=/usr/share/uengine/icons/{}.png
|
||||
Terminal=false
|
||||
Type=Application
|
||||
@@ -187,6 +187,7 @@ def DisabledAndEnbled(choose):
|
||||
userChoose = {True: tk.DISABLED, False: tk.NORMAL}
|
||||
a = userChoose[choose]
|
||||
combobox1.configure(state=a)
|
||||
check.configure(state=a)
|
||||
button2.configure(state=a)
|
||||
button3.configure(state=a)
|
||||
|
||||
@@ -204,6 +205,10 @@ def ReStartProgram():
|
||||
def get_home():
|
||||
return os.path.expanduser('~')
|
||||
|
||||
# 获取当前语言
|
||||
def get_now_lang()->"获取当前语言":
|
||||
return os.getenv('LANG')
|
||||
|
||||
# 获取用户桌面目录
|
||||
def get_desktop_path():
|
||||
for line in open(get_home() + "/.config/user-dirs.dirs"): # 以行来读取配置文件
|
||||
@@ -256,6 +261,7 @@ def GetApkActivityName(apkFilePath):
|
||||
return line
|
||||
|
||||
def GetApkPackageName(apkFilePath):
|
||||
# 提示:此函数有被为此程序适配而调整,如果需要最原始(无调整的)请使用主程序(此为附属组件)里的函数
|
||||
info = GetApkInformation(apkFilePath)
|
||||
for line in info.split('\n'):
|
||||
if "package:" in line:
|
||||
@@ -264,7 +270,10 @@ def GetApkPackageName(apkFilePath):
|
||||
line = line.replace("name=", "")
|
||||
line = line.replace("'", "")
|
||||
line = line.replace(" ", "")
|
||||
return line
|
||||
# 此较为特殊,因为需要判断用户是否要添加前缀
|
||||
if qianZhui.get() == True:
|
||||
return "uengine-dc-{}".format(line).lower()
|
||||
return line.lower()
|
||||
|
||||
def GetApkVersion(apkFilePath):
|
||||
info = GetApkInformation(apkFilePath)
|
||||
@@ -285,7 +294,7 @@ def BuildUengineDesktop(packageName, activityName, showName, iconPath, savePath)
|
||||
[Desktop Entry]
|
||||
Categories=app;
|
||||
Encoding=UTF-8
|
||||
Exec=/usr/bin/uengine-launch.sh --action=android.intent.action.MAIN --package={} --component={}
|
||||
Exec=/usr/bin/uengine launch.sh --action=android.intent.action.MAIN --package={} --component={}
|
||||
GenericName={}
|
||||
Icon={}
|
||||
MimeType=
|
||||
@@ -304,16 +313,16 @@ def GetApkChineseLabel(apkFilePath):
|
||||
line = line.replace("'", "")
|
||||
return line
|
||||
|
||||
def GetApkIconInApk(apkFilePath):
|
||||
info = GetApkInformation(apkFilePath)
|
||||
for line in info.split('\n'):
|
||||
if "application:" in line:
|
||||
line = line[line.index("icon='"): -1]
|
||||
line = line.replace("icon='", "")
|
||||
if "'" in line:
|
||||
line = line[0: line.index("'")]
|
||||
return line
|
||||
return line
|
||||
#def GetApkIconInApk(apkFilePath):
|
||||
# info = GetApkInformation(apkFilePath)
|
||||
# for line in info.split('\n'):
|
||||
# if "application:" in line:
|
||||
# line = line[line.index("icon='"): -1]
|
||||
# line = line.replace("icon='", "")
|
||||
# if "'" in line:
|
||||
# line = line[0: line.index("'")]
|
||||
# return line
|
||||
# return line
|
||||
|
||||
#合并两个函数到一起
|
||||
def SaveApkIcon(apkFilePath, iconSavePath)->"获取 apk 文件的图标":
|
||||
@@ -372,16 +381,20 @@ def get_home():
|
||||
# 程序信息
|
||||
###########################
|
||||
programPath = os.path.split(os.path.realpath(__file__))[0] # 返回 string
|
||||
lang = get_now_lang()
|
||||
langFile = json.loads(readtxt(programPath + "/Language.json"))
|
||||
if not lang in langFile.keys():
|
||||
lang = "en_US.UTF-8"
|
||||
information = json.loads(readtxt(programPath + "/information.json"))
|
||||
version = information["Version"]
|
||||
title = "UEngine APK 应用打包器 {}".format(version)
|
||||
title = "{} {}".format(langFile[lang]["Uengine Apk Builder"]["Title"], version)
|
||||
iconPath = "{}/icon.png".format(os.path.split(os.path.realpath(__file__))[0])
|
||||
|
||||
###########################
|
||||
# 加载配置
|
||||
###########################
|
||||
if not os.path.exists(get_home() + "/.config/uengine-runner"): # 如果没有配置文件夹
|
||||
os.mkdir(get_home() + "/.config/uengine-runner") # 创建配置文件夹
|
||||
os.makedirs(get_home() + "/.config/uengine-runner") # 创建配置文件夹
|
||||
if not os.path.exists(get_home() + "/.config/uengine-runner/FindApkBuildHistory.json"): # 如果没有配置文件
|
||||
write_txt(get_home() + "/.config/uengine-runner/FindApkBuildHistory.json", json.dumps({})) # 创建配置文件
|
||||
if not os.path.exists(get_home() + "/.config/uengine-runner/FindApkBuild.json"): # 如果没有配置文件
|
||||
@@ -396,34 +409,43 @@ findApkHistory = list(json.loads(readtxt(get_home() + "/.config/uengine-runner/F
|
||||
# 窗口创建
|
||||
###########################
|
||||
win = tk.Tk()
|
||||
|
||||
qianZhui = tk.BooleanVar()
|
||||
|
||||
window = ttk.Frame(win)
|
||||
frame2 = ttk.Frame(window)
|
||||
label1 = ttk.Label(window, text=langFile[lang]["Uengine Apk Builder"]["label1"])
|
||||
combobox1 = ttk.Combobox(window, width=100)
|
||||
button2 = ttk.Button(window, text=langFile[lang]["Uengine Apk Builder"]["button2"], command=FindApk)
|
||||
button3 = ttk.Button(frame2, text=langFile[lang]["Uengine Apk Builder"]["button3"], command=BuildDeb)
|
||||
check = ttk.Checkbutton(frame2, variable=qianZhui,text=langFile[lang]["Uengine Apk Builder"]["check"])
|
||||
textbox1 = tk.Text(window, width=100)
|
||||
menu = tk.Menu(window, background="white") # 设置菜单栏
|
||||
programmenu = tk.Menu(menu, tearoff=0, background="white") # 设置“程序”菜单栏
|
||||
|
||||
menu.add_cascade(label=langFile[lang]["Uengine Apk Builder"]["Menu"][0]["Name"], menu=programmenu)
|
||||
programmenu.add_command(label=langFile[lang]["Uengine Apk Builder"]["Menu"][0]["Menu"][0], command=window.quit) # 设置“退出程序”项
|
||||
# 设置控件
|
||||
combobox1['value'] = findApkHistory
|
||||
textbox1.configure(state=tk.DISABLED)
|
||||
textbox1.config(foreground='white', background='black')
|
||||
# 如果有参数
|
||||
if len(sys.argv) > 1:
|
||||
combobox1.set(sys.argv[1])
|
||||
# 设置窗口
|
||||
style = ttkthemes.ThemedStyle(win)
|
||||
style.set_theme("breeze")
|
||||
win.attributes('-alpha', 0.5)
|
||||
win.title(title)
|
||||
win.resizable(0, 0)
|
||||
win.iconphoto(False, tk.PhotoImage(file=iconPath))
|
||||
frame2 = ttk.Frame(window)
|
||||
label1 = ttk.Label(window, text="要打包的 apk 路径:")
|
||||
combobox1 = ttk.Combobox(window, width=100)
|
||||
button2 = ttk.Button(window, text="浏览", command=FindApk)
|
||||
button3 = ttk.Button(frame2, text="打包", command=BuildDeb)
|
||||
textbox1 = tk.Text(window, width=100)
|
||||
menu = tk.Menu(window, background="white") # 设置菜单栏
|
||||
programmenu = tk.Menu(menu, tearoff=0, background="white") # 设置“程序”菜单栏
|
||||
menu.add_cascade(label="程序", menu=programmenu)
|
||||
programmenu.add_command(label="退出程序", command=window.quit) # 设置“退出程序”项
|
||||
# 设置控件
|
||||
combobox1['value'] = findApkHistory
|
||||
textbox1.configure(state=tk.DISABLED)
|
||||
textbox1.config(foreground='white', background='black')
|
||||
#
|
||||
win.config(menu=menu) # 显示菜单栏
|
||||
label1.grid(row=2, column=0)
|
||||
combobox1.grid(row=2, column=1)
|
||||
#button1.grid(column=0, row=0)
|
||||
button2.grid(row=2, column=2)
|
||||
button3.grid(row=0, column=0)
|
||||
button3.grid(row=0, column=1)
|
||||
check.grid(row=0, column=0)
|
||||
frame2.grid(row=3, columnspa=3)
|
||||
textbox1.grid(row=4, columnspa=3)
|
||||
window.pack()
|
||||
|
||||
16
build/opt/apps/uengine-runner/uengine-install (1).desktop
Executable file
@@ -0,0 +1,16 @@
|
||||
[Desktop Entry]
|
||||
Categories=system;Utility;
|
||||
Encoding=UTF-8
|
||||
Exec=uengine-runner -ci %F
|
||||
GenericName=APK Install(UEngine)
|
||||
GenericName[zh_CN]=APK 安装(UEngine)
|
||||
Icon=/opt/apps/uengine-runner/icon.png
|
||||
MimeType=application/apk;
|
||||
Name=APK Install(UEngine)
|
||||
Name[zh_CN]=APK 安装(UEngine)
|
||||
NoDisplay=true
|
||||
OnlyShowIn=Unity;
|
||||
StartupNotify=false
|
||||
StartupWMClass=APK 安装(UEngine)
|
||||
Terminal=false
|
||||
Type=Application
|
||||
@@ -2,11 +2,11 @@
|
||||
# 使用系统默认的 python3 运行
|
||||
###########################################################################################
|
||||
# 作者:gfdgd xi<3025613752@qq.com>
|
||||
# 版本:1.4.0
|
||||
# 更新时间:2021年8月26日
|
||||
# 版本:1.5.1
|
||||
# 更新时间:2021年10月05日(国庆了)
|
||||
# 感谢:anbox、deepin 和 UOS
|
||||
# 基于 Python3 的 tkinter 构建
|
||||
# 更新:actionchen<917981399@qq.com>
|
||||
# 更新:gfdgd xi<3025613752@qq.com>、actionchen<917981399@qq.com>
|
||||
###########################################################################################
|
||||
#################
|
||||
# 引入所需的库
|
||||
@@ -22,6 +22,8 @@ import threading
|
||||
import ttkthemes
|
||||
import webbrowser
|
||||
import subprocess
|
||||
import PIL.Image as Image
|
||||
import PIL.ImageTk as ImageTk
|
||||
import tkinter as tk
|
||||
import tkinter.ttk as ttk
|
||||
import tkinter.messagebox as messagebox
|
||||
@@ -39,37 +41,38 @@ def UninstallProgram(package: "apk 包名")->"卸载程序":
|
||||
os.remove("{}/.local/share/applications/{}.desktop".format(get_home(), package))
|
||||
if os.path.exists("{}/{}.desktop".format(get_desktop_path(), package)):
|
||||
os.remove("{}/{}.desktop".format(get_desktop_path(), package))
|
||||
fineUninstallApkHistory.append(ComboUninstallPath.get())
|
||||
ComboUninstallPath['value'] = fineUninstallApkHistory
|
||||
write_txt(get_home() + "/.config/uengine-runner/FindUninstallApkHistory.json", str(json.dumps(ListToDictionary(fineUninstallApkHistory)))) # 将历史记录的数组转换为字典并写入
|
||||
findApkHistory.append(ComboInstallPath.get())
|
||||
ComboInstallPath['value'] = findApkHistory
|
||||
write_txt(get_home() + "/.config/uengine-runner/FindApkHistory.json", str(json.dumps(ListToDictionary(findApkHistory)))) # 将历史记录的数组转换为字典并写入
|
||||
messagebox.showinfo(message="操作执行完毕!", title="提示")
|
||||
DisabledAndEnbled(False)
|
||||
return Return
|
||||
except:
|
||||
traceback.print_exc()
|
||||
messagebox.showerror(title="错误", message=traceback.format_exc())
|
||||
DisabledAndEnbled(False)
|
||||
|
||||
# 卸载文本框的浏览按钮事件
|
||||
def BtnFindUninstallApkClk():
|
||||
path = filedialog.askopenfilename(title="选择 Apk", filetypes=[("APK 文件", "*.apk"), ("所有文件", "*.*")], initialdir=json.loads(readtxt(get_home() + "/.config/uengine-runner/FindUninstallApk.json"))["path"])
|
||||
if path != "" and path != "()":
|
||||
try:
|
||||
ComboUninstallPath.set(path)
|
||||
write_txt(get_home() + "/.config/uengine-runner/FindUninstallApk.json", json.dumps({"path": os.path.dirname(path)})) # 写入配置文件
|
||||
except:
|
||||
pass
|
||||
#def BtnFindUninstallApkClk():
|
||||
# path = filedialog.askopenfilename(title="选择 Apk", filetypes=[("APK 文件", "*.apk"), ("所有文件", "*.*")], initialdir=json.loads(readtxt(get_home() + "/.config/uengine-runner/FindUninstallApk.json"))["path"])
|
||||
# if path != "" and path != "()":
|
||||
# try:
|
||||
# ComboUninstallPath.set(path)
|
||||
# write_txt(get_home() + "/.config/uengine-runner/FindUninstallApk.json", json.dumps({"path": os.path.dirname(path)})) # 写入配置文件
|
||||
# except:
|
||||
# pass
|
||||
|
||||
# 卸载按钮事件
|
||||
def ButtonClick8():
|
||||
if ComboUninstallPath.get() is "":
|
||||
if ComboInstallPath.get() is "":
|
||||
messagebox.showerror(title="提示", message="信息没有填写完整,无法继续卸载 APK")
|
||||
return
|
||||
DisabledAndEnbled(True)
|
||||
if os.path.exists(ComboUninstallPath.get()):
|
||||
path = GetApkPackageName(ComboUninstallPath.get())
|
||||
if os.path.exists(ComboInstallPath.get()):
|
||||
path = GetApkPackageName(ComboInstallPath.get())
|
||||
else:
|
||||
path = ComboUninstallPath.get()
|
||||
UninstallProgram(path)
|
||||
messagebox.showinfo(message="操作执行完毕!", title="提示")
|
||||
DisabledAndEnbled(False)
|
||||
path = ComboInstallPath.get()
|
||||
threading.Thread(target=UninstallProgram, args=[path]).start()
|
||||
|
||||
# 浏览窗口
|
||||
# temp strs
|
||||
@@ -88,8 +91,8 @@ def FindApk()->"浏览窗口":
|
||||
|
||||
# 安装按钮事件
|
||||
def Button3Install():
|
||||
if ComboInstallPath.get() is "":
|
||||
messagebox.showerror(title="提示", message="信息没有填写完整,无法继续安装 APK")
|
||||
if ComboInstallPath.get() is "" or not os.path.exists(ComboInstallPath.get()):
|
||||
messagebox.showerror(title="提示", message="信息没有填写完整或错误,无法继续安装 APK")
|
||||
return
|
||||
DisabledAndEnbled(True)
|
||||
threading.Thread(target=InstallApk, args=(ComboInstallPath.get(),)).start()
|
||||
@@ -99,7 +102,7 @@ def InstallApk(path: "apk 路径", quit: "是否静默安装" = False):
|
||||
try:
|
||||
if not os.path.exists("{}/.local/share/applications/uengine/".format(get_home())):
|
||||
print("Mkdir")
|
||||
os.mkdir("{}/.local/share/applications/uengine/".format(get_home()))
|
||||
os.makedirs("{}/.local/share/applications/uengine/".format(get_home()))
|
||||
print("start install apk")
|
||||
global findApkHistory
|
||||
commandReturn = GetCommandReturn("pkexec /usr/bin/uengine-session-launch-helper -- uengine install --apk='{}'".format(path))
|
||||
@@ -136,14 +139,16 @@ def DisabledAndEnbled(choose: "启动或者禁用")->"禁用或启动所有控
|
||||
userChoose = {True: tk.DISABLED, False: tk.NORMAL}
|
||||
a = userChoose[choose]
|
||||
ComboInstallPath.configure(state=a)
|
||||
ComboUninstallPath.configure(state=a)
|
||||
#ComboUninstallPath.configure(state=a)
|
||||
BtnFindApk.configure(state=a)
|
||||
BtnInstall.configure(state=a)
|
||||
BtnShowUengineApp.configure(state=a)
|
||||
BtnUninstallApkBrowser.configure(state=a)
|
||||
#BtnUninstallApkBrowser.configure(state=a)
|
||||
BtnUninstall.configure(state=a)
|
||||
Btngeticon.configure(state=a)
|
||||
BtnSaveApk.configure(state=a)
|
||||
BtnApkInformation.configure(state=a)
|
||||
LabApkPath.configure(state=a)
|
||||
|
||||
# 需引入 subprocess
|
||||
# 运行系统命令并获取返回值
|
||||
@@ -151,33 +156,39 @@ def GetCommandReturn(cmd: "命令")->"运行系统命令并获取返回值":
|
||||
# cmd 是要获取输出的命令
|
||||
return subprocess.getoutput(cmd)
|
||||
|
||||
def GetSystemVersion():
|
||||
systemInformation = readtxt("/etc/os-release")
|
||||
for systemInformation in systemInformation.split('\n'):
|
||||
if "PRETTY_NAME=" in systemInformation:
|
||||
return systemInformation.replace("PRETTY_NAME=", "").replace('"', '')
|
||||
|
||||
# 打开所有窗口事件
|
||||
def Button5Click():
|
||||
threading.Thread(target=OpenUengineProgramList).start()
|
||||
|
||||
# 打开“uengine 所有程序列表”
|
||||
def OpenUengineProgramList()->"打开“uengine 所有程序列表”":
|
||||
os.system("/usr/bin/uengine-launch.sh --package=org.anbox.appmgr --component=org.anbox.appmgr.AppViewActivity")
|
||||
os.system("uengine launch --package=org.anbox.appmgr --component=org.anbox.appmgr.AppViewActivity")
|
||||
|
||||
# 显示“关于这个程序”窗口
|
||||
def about_this_program()->"显示“关于这个程序”窗口":
|
||||
global about
|
||||
global title
|
||||
global iconPath
|
||||
mess = tk.Toplevel()
|
||||
message = ttk.Frame(mess)
|
||||
mess.resizable(0, 0)
|
||||
mess.title("关于 {}".format(title))
|
||||
#mess.iconphoto(False, tk.PhotoImage(file=iconPath))
|
||||
img = ImageTk.PhotoImage(Image.open(iconPath))
|
||||
LabApkPath = ttk.Label(message, image=img)
|
||||
label2 = ttk.Label(message, text=about)
|
||||
button1 = ttk.Button(message, text="确定", command=mess.withdraw)
|
||||
LabApkPath.pack()
|
||||
label2.pack()
|
||||
button1.pack(side="bottom")
|
||||
message.pack()
|
||||
mess.mainloop()
|
||||
#def about_this_program()->"显示“关于这个程序”窗口":
|
||||
# global about
|
||||
# global title
|
||||
# global iconPath
|
||||
# mess = tk.Toplevel()
|
||||
# message = ttk.Frame(mess)
|
||||
# mess.resizable(0, 0)
|
||||
# mess.title("关于 {}".format(title))
|
||||
# #mess.iconphoto(False, tk.PhotoImage(file=iconPath))
|
||||
# img = ImageTk.PhotoImage(Image.open(iconPath))
|
||||
# LabApkPath = ttk.Label(message, image=img)
|
||||
# label2 = ttk.Label(message, text=about)
|
||||
# button1 = ttk.Button(message, text="确定", command=mess.withdraw)
|
||||
# LabApkPath.pack()
|
||||
# label2.pack()
|
||||
# button1.pack(side="bottom")
|
||||
# message.pack()
|
||||
# mess.mainloop()
|
||||
|
||||
# 显示“提示”窗口
|
||||
def helps()->"显示“提示”窗口":
|
||||
@@ -211,6 +222,10 @@ def CleanProgramHistory()->"清理历史记录":
|
||||
def get_home()->"获取用户主目录":
|
||||
return os.path.expanduser('~')
|
||||
|
||||
# 获取当前语言
|
||||
def get_now_lang()->"获取当前语言":
|
||||
return os.getenv('LANG')
|
||||
|
||||
# 发送“启动 uengine 所有程序”的 .desktop 文件到桌面
|
||||
def SendUengineAndroidListForDesktop()->"发送“启动 uengine 所有程序”的 .desktop 文件到桌面":
|
||||
global desktop
|
||||
@@ -320,7 +335,7 @@ def BuildUengineDesktop(packageName: "软件包名", activityName: "activity", s
|
||||
things = '''[Desktop Entry]
|
||||
Categories=app;
|
||||
Encoding=UTF-8
|
||||
Exec=/usr/bin/uengine-launch.sh --action=android.intent.action.MAIN --package={} --component={}
|
||||
Exec=uengine launch --action=android.intent.action.MAIN --package={} --component={}
|
||||
GenericName={}
|
||||
Icon={}
|
||||
MimeType=
|
||||
@@ -454,61 +469,19 @@ def UengineRestart()->"重启 uengine 服务":
|
||||
os.system("systemctl restart uengine*")
|
||||
DisabledAndEnbled(False)
|
||||
|
||||
# 运行命令的窗口
|
||||
class InstallWindow():
|
||||
# 显示窗口
|
||||
def ShowWindows(command):
|
||||
global message
|
||||
global text
|
||||
global installTipsText
|
||||
global progressbar
|
||||
message = tk.Toplevel()
|
||||
message.iconphoto(False, tk.PhotoImage(file=iconPath))
|
||||
messageFrame = ttk.Frame(message)
|
||||
installTipsText = tk.StringVar()
|
||||
message.title("正在操作……")
|
||||
installTipsText.set("正在操作……")
|
||||
installTips = ttk.Label(messageFrame, textvariable=installTipsText)
|
||||
progressbar = ttk.Progressbar(messageFrame, length=500, mode='indeterminate')
|
||||
text = tk.Text(messageFrame)
|
||||
text.config(background="black", foreground="white")
|
||||
installTips.pack()
|
||||
progressbar.pack(fill="x")
|
||||
text.pack(expand='yes', fill='both')
|
||||
messageFrame.pack(expand='yes', fill='both')
|
||||
print("Run!")
|
||||
threading.Thread(target=InstallWindow.RunCommand, args=[command]).start()
|
||||
message.mainloop()
|
||||
|
||||
# 运行命令并显示
|
||||
def RunCommand(command):
|
||||
global message
|
||||
global text
|
||||
global progressbar
|
||||
global installTipsText
|
||||
InstallWindow.AddText("$>" + command + "\n")
|
||||
progressbar.start()
|
||||
result = subprocess.getoutput(command)
|
||||
InstallWindow.AddText(result)
|
||||
messagebox.showinfo(title="提示", message="操作完毕!")
|
||||
installTipsText.set("操作完毕!")
|
||||
message.title("操作完毕!")
|
||||
progressbar.stop()
|
||||
progressbar["value"] = 100
|
||||
# 特意添加!
|
||||
DisabledAndEnbled(False)
|
||||
print("Clean!")
|
||||
if messagebox.askyesno(title="提示", message="清空完毕,将会在重启后生效,是否要重启?"):
|
||||
print("reboot")
|
||||
os.system("reboot")
|
||||
|
||||
# 添加文本
|
||||
def AddText(things):
|
||||
global text
|
||||
text.configure(state=tk.NORMAL)
|
||||
text.insert("end", things)
|
||||
text.configure(state=tk.DISABLED)
|
||||
|
||||
def ScrcpyConnectUengine():
|
||||
if os.path.exists("/snap/bin/scrcpy"):
|
||||
threading.Thread(target=os.system, args=["/snap/bin/scrcpy -s '192.168.250.2:5555'"]).start()
|
||||
return
|
||||
if messagebox.askyesno(title="提示", message="你没有安装Scrcpy(指使用Snap安装),\n如果你使用了其他方法安装了Scrcpy,可以输入命令“scrcpy -s '192.168.250.2:5555'”,\n是否现在要使用Snap安装Scrcpy?"):
|
||||
if not os.path.exists("/tmp/uengine-runner"):
|
||||
os.makedirs("/tmp/uengine-runner")
|
||||
write_txt("/tmp/uengine-runner/InstallScrcpy.sh", '''#!/bin/bash
|
||||
sudo apt install snapd -y
|
||||
sudo snap refresh
|
||||
sudo snap install scrcpy''')
|
||||
threading.Thread(target=InstallWindow.ShowWindows, args=["chmod 777 /tmp/uengine-runner/InstallScrcpy.sh -Rv && pkexec /tmp/uengine-runner/InstallScrcpy.sh"]).start()
|
||||
return
|
||||
|
||||
# 获取用户桌面目录
|
||||
def get_desktop_path()->"获取用户桌面目录":
|
||||
@@ -545,6 +518,14 @@ def SaveInstallUengineApp():
|
||||
traceback.print_exc()
|
||||
messagebox.showerror(title="错误", message=traceback.format_exc())
|
||||
|
||||
def UengineCheckCpu():
|
||||
english = GetCommandReturn("uengine check-features")
|
||||
#chinese = GetCommandReturn("trans -b \"{}\"".format(english)) # 获取中文翻译
|
||||
#for i in chinese.split("\n"): # 删除提示
|
||||
# if "Did you mean:" in i:
|
||||
# chinese = chinese.replace(i, "").replace("\n", "")
|
||||
messagebox.showinfo(title="提示", message="{}".format(english))
|
||||
|
||||
# 获取用户主目录
|
||||
def get_home()->"获取用户主目录":
|
||||
return os.path.expanduser('~')
|
||||
@@ -554,7 +535,7 @@ def CleanAllUengineDesktopLink():
|
||||
if messagebox.askokcancel(title="提示", message="你确定要删除所有的 UEngine 应用快捷方式吗?"):
|
||||
try:
|
||||
shutil.rmtree("{}/.local/share/applications/uengine".format(get_home()))
|
||||
os.mkdir("{}/.local/share/applications/uengine".format(get_home()))
|
||||
os.makedirs("{}/.local/share/applications/uengine".format(get_home()))
|
||||
messagebox.showinfo(title="提示", message="删除完毕!")
|
||||
except:
|
||||
traceback.print_exc()
|
||||
@@ -583,7 +564,7 @@ def AdbCPUAndRAWShowInTer():
|
||||
threading.Thread(target=os.system, args=["deepin-terminal -w ~ -e 'adb -s 192.168.250.2:5555 shell top'"]).start()
|
||||
|
||||
def UengineSettingShow():
|
||||
threading.Thread(target=os.system, args=["/usr/bin/uengine-launch.sh --action=android.intent.action.MAIN --package=com.android.settings --component=com.android.settings.Settings"]).start()
|
||||
threading.Thread(target=os.system, args=["/usr/bin/uengine launch --action=android.intent.action.MAIN --package=com.android.settings --component=com.android.settings.Settings"]).start()
|
||||
|
||||
# 杀死 adb 进程
|
||||
def AdbKillAdbProgress():
|
||||
@@ -600,6 +581,16 @@ def AdbStartServer():
|
||||
os.system("adb start-server")
|
||||
messagebox.showinfo(title="提示", message="完成!")
|
||||
|
||||
def ReinstallUengine():
|
||||
threading.Thread(target=os.system, args=["deepin-terminal -C 'pkexec apt reinstall uengine uengine-android-image uengine-modules-dkms -y && notify-send -i uengine \"安装完毕!\"'"]).start()
|
||||
|
||||
def DelUengineCheck():
|
||||
if not os.path.exists("/usr/share/uengine/uengine-check-runnable.sh"):
|
||||
messagebox.showinfo(title="提示", message="本功能已经被删除,无法重复删除!")
|
||||
return
|
||||
if messagebox.askokcancel(title="警告", message="删除后将无法使用本软件恢复\n如果需要恢复本功能,请重新安装 UEngine!"):
|
||||
threading.Thread(target=InstallWindow.ShowWindows, args=["pkexec rm -v /usr/share/uengine/uengine-check-runnable.sh"]).start()
|
||||
|
||||
# 使用 adb 连接 uengine
|
||||
def UengineConnectAdb():
|
||||
messagebox.showinfo(title="提示", message=subprocess.getoutput("adb connect 192.168.250.2:5555"))
|
||||
@@ -619,6 +610,9 @@ def UengineDoNotUseAdb():
|
||||
return
|
||||
threading.Thread(target=os.system, args=["pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY {}/uengine-useadb 1".format(programPath)]).start()
|
||||
|
||||
def UengineRunnerBugUpload():
|
||||
threading.Thread(target=os.system, args=[programPath + "/uengine-runner-update-bug"]).start()
|
||||
|
||||
def AdbConnectDeviceShow():
|
||||
ShowTextTipsWindow.ShowWindow(subprocess.getoutput("adb devices -l"))
|
||||
|
||||
@@ -632,6 +626,185 @@ def AdbAndroidInstallAppList():
|
||||
subprocess.getoutput("adb -s 192.168.250.2:5555 shell pm list package -3"),
|
||||
subprocess.getoutput("adb -s 192.168.250.2:5555 shell pm list packages -f")))
|
||||
|
||||
def GetApkVersion(apkFilePath):
|
||||
info = GetApkInformation(apkFilePath)
|
||||
for line in info.split('\n'):
|
||||
if "package:" in line:
|
||||
if "compileSdkVersion='" in line:
|
||||
line = line.replace(line[line.index("compileSdkVersion='"): -1], "")
|
||||
if "platform" in line:
|
||||
line = line.replace(line[line.index("platform"): -1], "")
|
||||
line = line.replace(line[0: line.index("versionName='")], "")
|
||||
line = line.replace("versionName='", "")
|
||||
line = line.replace("'", "")
|
||||
line = line.replace(" ", "")
|
||||
return line
|
||||
|
||||
class ApkInformation():
|
||||
def ShowWindows():
|
||||
global fullInformation
|
||||
global path
|
||||
global tab1
|
||||
path = ComboInstallPath.get()
|
||||
|
||||
message = tk.Toplevel()
|
||||
|
||||
tab = ttk.Notebook(message)
|
||||
|
||||
tab1 = ttk.Frame(message)
|
||||
tab2 = ttk.Frame(message)
|
||||
|
||||
fullInformation = tk.Text(tab2)
|
||||
|
||||
tab.add(tab1, text="简化版")
|
||||
tab.add(tab2, text="完整版")
|
||||
|
||||
fullInformation.pack(expand="yes", fill="both")
|
||||
|
||||
tab.pack(expand="yes", fill="both")
|
||||
|
||||
threading.Thread(target=ApkInformation.GetInformation).start()
|
||||
|
||||
message.mainloop()
|
||||
|
||||
def GetInformation():
|
||||
# 获取详细信息
|
||||
fullInformation.configure(state=tk.NORMAL)
|
||||
fullInformation.insert("1.0", GetApkInformation(path))
|
||||
fullInformation.configure(state=tk.DISABLED)
|
||||
# 获取图标
|
||||
SaveApkIcon(path, "/tmp/uengine-runner-android-app-icon.png")
|
||||
# 读取图标
|
||||
image = Image.open("/tmp/uengine-runner-android-app-icon.png")
|
||||
if image.size[0] + image.size[1] <= 512:
|
||||
ttk.Label(tab1, image=ImageTk.PhotoImage(image)).pack()
|
||||
else:
|
||||
ttk.Label(tab1, image=ImageTk.PhotoImage(image.resize((256, 256), Image.ANTIALIAS))).pack()
|
||||
info = '''包名:{}
|
||||
中文名:{}
|
||||
Activity:{}
|
||||
版本:{}'''.format(GetApkPackageName(path), GetApkChineseLabel(path), GetApkActivityName(path), GetApkVersion(path))
|
||||
ttk.Label(tab1, text=info).pack()
|
||||
|
||||
|
||||
class AdbChangeUengineDisplaySize():
|
||||
def ShowWindows():
|
||||
global displayX
|
||||
global displayY
|
||||
global displaySize
|
||||
message = tk.Toplevel()
|
||||
messageFrame = ttk.Frame(message)
|
||||
|
||||
displaySize = tk.StringVar()
|
||||
displaySize.set("当前 UEngine 屏幕分辨率:正在获取")
|
||||
|
||||
displaySizeLabel = ttk.Label(messageFrame, textvariable=displaySize)
|
||||
|
||||
input = ttk.Frame(messageFrame)
|
||||
displayX = ttk.Entry(input)
|
||||
displayY = ttk.Entry(input)
|
||||
|
||||
settingBUtton = ttk.Button(messageFrame, text="设置分辨率", command=AdbChangeUengineDisplaySize.SettingDisplaySize)
|
||||
|
||||
message.title("修改 UEngine 分辨率")
|
||||
message.resizable(0, 0)
|
||||
message.iconphoto(False, tk.PhotoImage(file=iconPath))
|
||||
# get screen width and height
|
||||
screen_width = message.winfo_screenwidth()
|
||||
screen_height = message.winfo_screenheight()
|
||||
# calculate position x and y coordinates 假设主窗口大小固定 570x236像素 ,设置窗口位置为屏幕中心。
|
||||
winwith=570
|
||||
winhigh=236
|
||||
x = (screen_width/2) - (winwith/2)
|
||||
y = (screen_height/2) - (winhigh/2)
|
||||
message.geometry("+{}+{}".format(int(x), int(y)))
|
||||
|
||||
displayX.grid(row=0, column=0)
|
||||
displayY.grid(row=0, column=1)
|
||||
|
||||
displaySizeLabel.grid(row=0, column=0)
|
||||
input.grid(row=1, column=0)
|
||||
settingBUtton.grid(row=2, column=0)
|
||||
|
||||
messageFrame.pack()
|
||||
threading.Thread(target=AdbChangeUengineDisplaySize.GetUengineDisplaySize).start()
|
||||
message.mainloop()
|
||||
|
||||
def GetUengineDisplaySize():
|
||||
global displaySize
|
||||
displaySize.set("当前 UEngine 屏幕分辨率:\n" + subprocess.getoutput("adb -s '192.168.250.2:5555' shell wm size"))
|
||||
#displaySize.set(subprocess.getoutput("adb -s '192.168.250.2:5555' shell wm size"))
|
||||
|
||||
def SettingDisplaySize():
|
||||
global displayX
|
||||
global displayY
|
||||
try:
|
||||
int(displayX.get())
|
||||
int(displayY.get())
|
||||
except:
|
||||
messagebox.showerror(title="错误", message="你输入的数值不正确!")
|
||||
return
|
||||
os.system("adb -s '192.168.250.2:5555' shell wm size {}x{}".format(displayX.get(), displayY.get()))
|
||||
AdbChangeUengineDisplaySize.GetUengineDisplaySize()
|
||||
messagebox.showinfo(title="提示", message="执行完毕!")
|
||||
|
||||
# 运行命令的窗口
|
||||
class InstallWindow():
|
||||
# 显示窗口
|
||||
def ShowWindows(command):
|
||||
global message
|
||||
global text
|
||||
global installTipsText
|
||||
global progressbar
|
||||
global runCommand
|
||||
message = tk.Toplevel()
|
||||
message.iconphoto(False, tk.PhotoImage(file=iconPath))
|
||||
messageFrame = ttk.Frame(message)
|
||||
installTipsText = tk.StringVar()
|
||||
message.title("正在操作……")
|
||||
installTipsText.set("正在操作……")
|
||||
installTips = ttk.Label(messageFrame, textvariable=installTipsText)
|
||||
progressbar = ttk.Progressbar(messageFrame, length=500, mode='indeterminate')
|
||||
text = tk.Text(messageFrame)
|
||||
text.config(background="black", foreground="white")
|
||||
installTips.pack()
|
||||
progressbar.pack(fill="x")
|
||||
text.pack(expand='yes', fill='both')
|
||||
messageFrame.pack(expand='yes', fill='both')
|
||||
print("Run!")
|
||||
threading.Thread(target=InstallWindow.RunCommand, args=[command]).start()
|
||||
message.mainloop()
|
||||
|
||||
# 运行命令并显示
|
||||
def RunCommand(command):
|
||||
global message
|
||||
global text
|
||||
global progressbar
|
||||
global installTipsText
|
||||
InstallWindow.AddText("$>" + command + "\n")
|
||||
progressbar.start()
|
||||
result = subprocess.getoutput(command)
|
||||
InstallWindow.AddText(result)
|
||||
messagebox.showinfo(title="提示", message="操作完毕!")
|
||||
installTipsText.set("操作完毕!")
|
||||
message.title("操作完毕!")
|
||||
progressbar.stop()
|
||||
progressbar["value"] = 100
|
||||
# 特意添加!
|
||||
DisabledAndEnbled(False)
|
||||
if command == "pkexec rm -rfv /data/uengine":
|
||||
print("Clean!")
|
||||
if messagebox.askyesno(title="提示", message="清空完毕,将会在重启后生效,是否要重启?"):
|
||||
print("reboot")
|
||||
os.system("reboot")
|
||||
|
||||
# 添加文本
|
||||
def AddText(things):
|
||||
global text
|
||||
text.configure(state=tk.NORMAL)
|
||||
text.insert("end", things)
|
||||
text.configure(state=tk.DISABLED)
|
||||
|
||||
class ShowTextTipsWindow():
|
||||
def ShowWindow(things):
|
||||
message = tk.Toplevel()
|
||||
@@ -737,7 +910,7 @@ class AddNewUengineDesktopLink():
|
||||
|
||||
# 打开测试
|
||||
def TestOpen():
|
||||
threading.Thread(target=os.system, args=["/usr/bin/uengine-launch.sh --package={} --component={}".format(packageName.get(), activityName.get())]).start()
|
||||
threading.Thread(target=os.system, args=["/usr/bin/uengine launch --package={} --component={}".format(packageName.get(), activityName.get())]).start()
|
||||
AddNewUengineDesktopLink.SaveHistory()
|
||||
|
||||
# 浏览文件
|
||||
@@ -746,37 +919,12 @@ class AddNewUengineDesktopLink():
|
||||
if path == "" or path == ():
|
||||
return
|
||||
packageName.set(GetApkPackageName(path))
|
||||
activityName.set(GetApkActivityName(path))
|
||||
activityName.set(str(GetApkActivityName(path)))
|
||||
write_txt(get_home() + "/.config/uengine-runner/FindApkName.json", json.dumps({"path": os.path.dirname(path)})) # 写入配置文件
|
||||
|
||||
###########################
|
||||
# 程序信息
|
||||
###########################
|
||||
programPath = os.path.split(os.path.realpath(__file__))[0] # 返回 string
|
||||
information = json.loads(readtxt(programPath + "/information.json"))
|
||||
programUrl = information["Url"][0]
|
||||
version = information["Version"]
|
||||
goodRunSystem = information["System"]
|
||||
aaptVersion = GetCommandReturn("aapt version")
|
||||
about = '''介绍 :一个基于 Python3 的 tkinter 制作的 UEngine 运行器,在新版本Deepin/UOS发布后,可以在应用商店安装部分官方已适配的安卓应用,对爱好者来说,不能自己安装APK软件包始终差点意思,本程序可以为Deepin/UOS上的UEngine安卓运行环境安装自定义APK软件包,并能发送安装的APK包启动菜单到桌面或系统菜单。
|
||||
|
||||
版本 :{}
|
||||
|
||||
适用平台 :{}
|
||||
|
||||
程序官网 :{}
|
||||
|
||||
©2021-{}'''.format(version, goodRunSystem, tk.TkVersion, programUrl, time.strftime("%Y"))
|
||||
tips = "\n".join(information["Tips"])
|
||||
updateThingsString = "\n".join(information["Update"])
|
||||
title = "UEngine 运行器 {}".format(version)
|
||||
updateTime = information["Time"]
|
||||
updateThings = "{} 更新内容:\n{}\n更新时间:{}".format(version, updateThingsString, updateTime, time.strftime("%Y"))
|
||||
iconPath = "{}/icon.png".format(os.path.split(os.path.realpath(__file__))[0])
|
||||
desktop = programPath + "/UengineAndroidProgramList.desktop"
|
||||
desktopName = "UengineAndroidProgramList.desktop"
|
||||
contribute = "\n".join(information["Contribute"])
|
||||
useProgram = '''1、UEngine:{}
|
||||
def UseProgram():
|
||||
global useProgram
|
||||
useProgram = '''1、UEngine:{}
|
||||
2、python3:{}
|
||||
3、tkinter:{}
|
||||
4、aapt:{}
|
||||
@@ -795,14 +943,52 @@ useProgram = '''1、UEngine:{}
|
||||
subprocess.getoutput("adb version"),
|
||||
subprocess.getoutput("deepin-terminal -v"))
|
||||
|
||||
###########################
|
||||
# 程序信息
|
||||
###########################
|
||||
lang = get_now_lang()
|
||||
programPath = os.path.split(os.path.realpath(__file__))[0] # 返回 string
|
||||
information = json.loads(readtxt(programPath + "/information.json"))
|
||||
langFile = json.loads(readtxt(programPath + "/Language.json"))
|
||||
if not lang in langFile.keys():
|
||||
lang = "en_US.UTF-8"
|
||||
programUrl = information["Url"][0]
|
||||
version = information["Version"]
|
||||
goodRunSystem = information["System"]
|
||||
aaptVersion = GetCommandReturn("aapt version")
|
||||
SystemVersion = GetSystemVersion()
|
||||
about = '''介绍 :一个基于 Python3 的 tkinter 制作的 UEngine 运行器,在新版本Deepin/UOS发布后,可以在应用商店安装部分官方已适配的安卓应用,对爱好者来说,不能自己安装APK软件包始终差点意思,本程序可以为Deepin/UOS上的UEngine安卓运行环境安装自定义APK软件包,并能发送安装的APK包启动菜单到桌面或系统菜单。
|
||||
|
||||
版本 :{}
|
||||
|
||||
适用平台 :{}
|
||||
|
||||
Tk 版本 :{}
|
||||
|
||||
程序官网 :{}
|
||||
|
||||
系统版本 :{}
|
||||
|
||||
©2021-{}'''.format(version, goodRunSystem, tk.TkVersion, programUrl, SystemVersion, time.strftime("%Y"))
|
||||
tips = "\n".join(information["Tips"])
|
||||
updateThingsString = "\n".join(information["Update"])
|
||||
title = "{} {}".format(langFile[lang]["Main"]["MainWindow"]["Title"], version)
|
||||
updateTime = information["Time"]
|
||||
updateThings = "{} 更新内容:\n{}\n更新时间:{}".format(version, updateThingsString, updateTime, time.strftime("%Y"))
|
||||
iconPath = "{}/icon.png".format(os.path.split(os.path.realpath(__file__))[0])
|
||||
desktop = programPath + "/UengineAndroidProgramList.desktop"
|
||||
desktopName = "UengineAndroidProgramList.desktop"
|
||||
contribute = "\n".join(information["Contribute"])
|
||||
useProgram = ""
|
||||
threading.Thread(target=UseProgram).start()
|
||||
|
||||
###########################
|
||||
# 加载配置
|
||||
###########################
|
||||
if not os.path.exists("{}/.local/share/applications/uengine/".format(get_home())):
|
||||
os.mkdir("{}/.local/share/applications/uengine/".format(get_home()))
|
||||
os.makedirs("{}/.local/share/applications/uengine/".format(get_home()))
|
||||
if not os.path.exists(get_home() + "/.config/uengine-runner"): # 如果没有配置文件夹
|
||||
os.mkdir(get_home() + "/.config/uengine-runner") # 创建配置文件夹
|
||||
os.makedirs(get_home() + "/.config/uengine-runner") # 创建配置文件夹
|
||||
if not os.path.exists(get_home() + "/.config/uengine-runner/FindApkHistory.json"): # 如果没有配置文件
|
||||
write_txt(get_home() + "/.config/uengine-runner/FindApkHistory.json", json.dumps({})) # 创建配置文件
|
||||
if not os.path.exists(get_home() + "/.config/uengine-runner/FindApkNameHistory.json"): # 如果没有配置文件
|
||||
@@ -885,6 +1071,9 @@ def showhelp():
|
||||
def ChgAbout():
|
||||
HelpStr.set(about)
|
||||
def ChgDep():
|
||||
if useProgram == "":
|
||||
BtnZujian.configure(state=tk.DISABLED)
|
||||
return
|
||||
HelpStr.set(useProgram)
|
||||
def ChgCon():
|
||||
HelpStr.set(contribute)
|
||||
@@ -927,7 +1116,6 @@ win = tk.Tk() # 创建窗口
|
||||
style = ttkthemes.ThemedStyle(win)
|
||||
style.set_theme("breeze")
|
||||
window = ttk.Frame(win)
|
||||
win.attributes('-alpha', 0.5)
|
||||
win.title(title)
|
||||
win.resizable(0, 0)
|
||||
win.iconphoto(False, tk.PhotoImage(file=iconPath))
|
||||
@@ -945,18 +1133,19 @@ win.geometry(""+"+{:.0f}+{:.0f}".format(x, y))
|
||||
|
||||
# 创建控件
|
||||
FrmInstall = ttk.Frame(window)
|
||||
FrmUninstall = ttk.Frame(window)
|
||||
LabApkPath = ttk.Label(window, text="安装APK:")
|
||||
LabUninstallPath = ttk.Label(window, text="卸载APK:")
|
||||
#FrmUninstall = ttk.Frame(window)
|
||||
LabApkPath = ttk.Label(window, text=langFile[lang]["Main"]["MainWindow"]["LabApkPath"])
|
||||
#LabUninstallPath = ttk.Label(window, text=langFile[lang]["Main"]["MainWindow"]["LabUninstallPath"])
|
||||
ComboInstallPath = ttk.Combobox(window, width=50)
|
||||
ComboUninstallPath = ttk.Combobox(window, width=50)
|
||||
BtnFindApk = ttk.Button(FrmInstall, text="浏览", command=FindApk)
|
||||
BtnInstall = ttk.Button(FrmInstall, text="安装", command=Button3Install)
|
||||
BtnShowUengineApp = ttk.Button(window, text="打开 UEngine 应用列表", command=Button5Click)
|
||||
BtnUninstallApkBrowser = ttk.Button(FrmUninstall, text="浏览", command=BtnFindUninstallApkClk)
|
||||
BtnUninstall = ttk.Button(FrmUninstall, text="卸载", command=ButtonClick8)
|
||||
Btngeticon = ttk.Button(FrmInstall, text="保存图标", command=SaveIconToOtherPath)
|
||||
BtnSaveApk = ttk.Button(FrmInstall, text="保存apk", command=SaveInstallUengineApp)
|
||||
#ComboUninstallPath = ttk.Combobox(window, width=50)
|
||||
BtnFindApk = ttk.Button(FrmInstall, text=langFile[lang]["Main"]["MainWindow"]["BtnFindApk"], command=FindApk)
|
||||
BtnInstall = ttk.Button(FrmInstall, text=langFile[lang]["Main"]["MainWindow"]["BtnInstall"], command=Button3Install)
|
||||
BtnShowUengineApp = ttk.Button(window, text=langFile[lang]["Main"]["MainWindow"]["BtnShowUengineApp"], command=Button5Click)
|
||||
#BtnUninstallApkBrowser = ttk.Button(FrmUninstall, text=langFile[lang]["Main"]["MainWindow"]["BtnUninstallApkBrowser"], command=BtnFindUninstallApkClk)
|
||||
BtnUninstall = ttk.Button(FrmInstall, text=langFile[lang]["Main"]["MainWindow"]["BtnUninstall"], command=ButtonClick8)
|
||||
Btngeticon = ttk.Button(FrmInstall, text=langFile[lang]["Main"]["MainWindow"]["Btngeticon"], command=SaveIconToOtherPath)
|
||||
BtnSaveApk = ttk.Button(FrmInstall, text=langFile[lang]["Main"]["MainWindow"]["BtnSaveApk"], command=SaveInstallUengineApp)
|
||||
BtnApkInformation = ttk.Button(FrmInstall, text=langFile[lang]["Main"]["MainWindow"]["BtnApkInformation"], command=ApkInformation.ShowWindows)
|
||||
# 设置菜单栏
|
||||
menu = tk.Menu(window, background="white")
|
||||
|
||||
@@ -973,68 +1162,74 @@ uengineIcon = tk.Menu(uengine, tearoff=0, background="white")
|
||||
uengineUseAdb = tk.Menu(uengine, tearoff=0, background="white")
|
||||
uengineData = tk.Menu(uengine, tearoff=0, background="white")
|
||||
|
||||
menu.add_cascade(label="程序", menu=programmenu)
|
||||
menu.add_cascade(label="adb", menu=adb)
|
||||
menu.add_cascade(label="UEngine", menu=uengine)
|
||||
menu.add_cascade(label="关于", menu=help)
|
||||
menu.add_cascade(label=langFile[lang]["Main"]["MainWindow"]["Menu"][0]["Name"], menu=programmenu)
|
||||
menu.add_cascade(label=langFile[lang]["Main"]["MainWindow"]["Menu"][1]["Name"], menu=adb)
|
||||
menu.add_cascade(label=langFile[lang]["Main"]["MainWindow"]["Menu"][2]["Name"], menu=uengine)
|
||||
menu.add_cascade(label=langFile[lang]["Main"]["MainWindow"]["Menu"][3]["Name"], menu=help)
|
||||
|
||||
programmenu.add_command(label="清空软件历史记录", command=CleanProgramHistory)
|
||||
programmenu.add_command(label=langFile[lang]["Main"]["MainWindow"]["Menu"][0]["Menu"][0], command=CleanProgramHistory)
|
||||
programmenu.add_separator() # 设置分界线
|
||||
programmenu.add_command(label="退出程序", command=window.quit) # 设置“退出程序”
|
||||
programmenu.add_command(label=langFile[lang]["Main"]["MainWindow"]["Menu"][0]["Menu"][1], command=window.quit) # 设置“退出程序”
|
||||
|
||||
adb.add_command(label="adb 连接 UEngine", command=UengineConnectAdb)
|
||||
adb.add_command(label=langFile[lang]["Main"]["MainWindow"]["Menu"][1]["Menu"][0], command=UengineConnectAdb)
|
||||
adb.add_separator()
|
||||
adb.add_cascade(label="adb 服务", menu=adbServer)
|
||||
adb.add_command(label="显示 adb 连接的设备", command=AdbConnectDeviceShow)
|
||||
adb.add_cascade(label=langFile[lang]["Main"]["MainWindow"]["Menu"][1]["Menu"][1]["Name"], menu=adbServer)
|
||||
adb.add_command(label=langFile[lang]["Main"]["MainWindow"]["Menu"][1]["Menu"][2], command=AdbConnectDeviceShow)
|
||||
adb.add_separator()
|
||||
adb.add_command(label="adb 查看 UEngine 应用列表", command=AdbAndroidInstallAppList)
|
||||
adb.add_command(label="adb 查看 UEngine 资源使用情况", command=AdbCPUAndRAWShowInTer)
|
||||
adb.add_command(label="打开 adb 连接 UEngine 的终端", command=AdbShellShowInTer)
|
||||
adb.add_command(label=langFile[lang]["Main"]["MainWindow"]["Menu"][1]["Menu"][3], command=AdbChangeUengineDisplaySize.ShowWindows)
|
||||
adb.add_command(label=langFile[lang]["Main"]["MainWindow"]["Menu"][1]["Menu"][4], command=AdbAndroidInstallAppList)
|
||||
adb.add_command(label=langFile[lang]["Main"]["MainWindow"]["Menu"][1]["Menu"][5], command=AdbCPUAndRAWShowInTer)
|
||||
adb.add_command(label=langFile[lang]["Main"]["MainWindow"]["Menu"][1]["Menu"][6], command=AdbShellShowInTer)
|
||||
adb.add_command(label=langFile[lang]["Main"]["MainWindow"]["Menu"][1]["Menu"][7], command=ScrcpyConnectUengine)
|
||||
adb.add_separator()
|
||||
adb.add_cascade(label="UEngine 使用 adb", menu=uengineUseAdb)
|
||||
adb.add_cascade(label=langFile[lang]["Main"]["MainWindow"]["Menu"][1]["Menu"][8]["Name"], menu=uengineUseAdb)
|
||||
|
||||
adbServer.add_command(label="开启 adb 服务", command=AdbStartServer)
|
||||
adbServer.add_command(label="关闭 adb 服务", command=AdbStopServer)
|
||||
adbServer.add_command(label="杀死 adb 进程", command=AdbKillAdbProgress)
|
||||
adbServer.add_command(label=langFile[lang]["Main"]["MainWindow"]["Menu"][1]["Menu"][1]["Menu"][0], command=AdbStartServer)
|
||||
adbServer.add_command(label=langFile[lang]["Main"]["MainWindow"]["Menu"][1]["Menu"][1]["Menu"][1], command=AdbStopServer)
|
||||
adbServer.add_command(label=langFile[lang]["Main"]["MainWindow"]["Menu"][1]["Menu"][1]["Menu"][2], command=AdbKillAdbProgress)
|
||||
|
||||
uengine.add_command(label="UEngine 系统设置", command=UengineSettingShow)
|
||||
uengine.add_command(label="UEngine 应用打包", command=OpenUengineDebBuilder)
|
||||
#uengine.add_command(label="UEngine 键盘映射", command=KeyboardToMouse)
|
||||
uengine.add_cascade(label="UEngine 服务", menu=uengineService)
|
||||
uengine.add_cascade(label="UEngine 网络桥接", menu=uengineInternet)
|
||||
uengine.add_cascade(label="UEngine 快捷方式", menu=uengineIcon)
|
||||
uengine.add_cascade(label="UEngine 使用 adb", menu=uengineUseAdb)
|
||||
uengine.add_cascade(label="UEngine 数据", menu=uengineData)
|
||||
#uengine.add_command(label=langFile[lang]["Main"]["MainWindow"]["Menu"][2]["Menu"][0], command=UengineSettingShow)
|
||||
uengine.add_command(label=langFile[lang]["Main"]["MainWindow"]["Menu"][2]["Menu"][1], command=OpenUengineDebBuilder)
|
||||
uengine.add_command(label=langFile[lang]["Main"]["MainWindow"]["Menu"][2]["Menu"][7], command=KeyboardToMouse)
|
||||
uengine.add_command(label=langFile[lang]["Main"]["MainWindow"]["Menu"][2]["Menu"][8], command=UengineCheckCpu)
|
||||
uengine.add_cascade(label=langFile[lang]["Main"]["MainWindow"]["Menu"][2]["Menu"][2]["Name"], menu=uengineService)
|
||||
uengine.add_cascade(label=langFile[lang]["Main"]["MainWindow"]["Menu"][2]["Menu"][3]["Name"], menu=uengineInternet)
|
||||
uengine.add_cascade(label=langFile[lang]["Main"]["MainWindow"]["Menu"][2]["Menu"][4]["Name"], menu=uengineIcon)
|
||||
uengine.add_cascade(label=langFile[lang]["Main"]["MainWindow"]["Menu"][2]["Menu"][5]["Name"], menu=uengineUseAdb)
|
||||
uengine.add_cascade(label=langFile[lang]["Main"]["MainWindow"]["Menu"][2]["Menu"][6]["Name"], menu=uengineData)
|
||||
uengine.add_command(label=langFile[lang]["Main"]["MainWindow"]["Menu"][2]["Menu"][9], command=DelUengineCheck)
|
||||
uengine.add_command(label=langFile[lang]["Main"]["MainWindow"]["Menu"][2]["Menu"][10], command=ReinstallUengine)
|
||||
|
||||
help.add_command(label="程序官网", command=OpenProgramURL) # 设置“程序官网”项
|
||||
help.add_command(label="帮助", command=showhelp) # 设置“关于这个程序”项
|
||||
help.add_command(label=langFile[lang]["Main"]["MainWindow"]["Menu"][3]["Menu"][0], command=OpenProgramURL) # 设置“程序官网”项
|
||||
help.add_command(label=langFile[lang]["Main"]["MainWindow"]["Menu"][3]["Menu"][2], command=UengineRunnerBugUpload) # 设置“程序官网”项
|
||||
help.add_command(label=langFile[lang]["Main"]["MainWindow"]["Menu"][3]["Menu"][1], command=showhelp) # 设置“关于这个程序”项
|
||||
|
||||
uengineService.add_command(label="启用 UEngine 服务(需要 root)", command=StartUengine)
|
||||
uengineService.add_command(label="关闭 UEngine 服务(需要 root)", command=StopUengine)
|
||||
uengineService.add_command(label="重启 UEngine 服务(需要 root)", command=UengineRestart)
|
||||
uengineService.add_command(label=langFile[lang]["Main"]["MainWindow"]["Menu"][2]["Menu"][2]["Menu"][0], command=StartUengine)
|
||||
uengineService.add_command(label=langFile[lang]["Main"]["MainWindow"]["Menu"][2]["Menu"][2]["Menu"][1], command=StopUengine)
|
||||
uengineService.add_command(label=langFile[lang]["Main"]["MainWindow"]["Menu"][2]["Menu"][2]["Menu"][2], command=UengineRestart)
|
||||
|
||||
uengineInternet.add_command(label="启用 UEngine 网络桥接(需要 root)", command=UengineBridgeStart)
|
||||
uengineInternet.add_command(label="关闭 UEngine 网络桥接(需要 root)", command=UengineBridgeStop)
|
||||
uengineInternet.add_command(label="重启 UEngine 网络桥接(需要 root)", command=UengineBridgeRestart)
|
||||
uengineInternet.add_command(label="加载 UEngine 网络桥接(需要 root)", command=UengineBridgeReload)
|
||||
uengineInternet.add_command(label="强制加载 UEngine 网络桥接(需要 root)", command=UengineBridgeForceReload)
|
||||
uengineInternet.add_command(label=langFile[lang]["Main"]["MainWindow"]["Menu"][2]["Menu"][3]["Menu"][0], command=UengineBridgeStart)
|
||||
uengineInternet.add_command(label=langFile[lang]["Main"]["MainWindow"]["Menu"][2]["Menu"][3]["Menu"][1], command=UengineBridgeStop)
|
||||
uengineInternet.add_command(label=langFile[lang]["Main"]["MainWindow"]["Menu"][2]["Menu"][3]["Menu"][2], command=UengineBridgeRestart)
|
||||
uengineInternet.add_command(label=langFile[lang]["Main"]["MainWindow"]["Menu"][2]["Menu"][3]["Menu"][3], command=UengineBridgeReload)
|
||||
uengineInternet.add_command(label=langFile[lang]["Main"]["MainWindow"]["Menu"][2]["Menu"][3]["Menu"][4], command=UengineBridgeForceReload)
|
||||
|
||||
uengineIcon.add_command(label="发送 UEngine 应用列表到桌面", command=SendUengineAndroidListForDesktop)
|
||||
uengineIcon.add_command(label="发送 UEngine 应用列表到启动器", command=SendUengineAndroidListForLauncher)
|
||||
uengineIcon.add_command(label=langFile[lang]["Main"]["MainWindow"]["Menu"][2]["Menu"][4]["Menu"][0], command=SendUengineAndroidListForDesktop)
|
||||
uengineIcon.add_command(label=langFile[lang]["Main"]["MainWindow"]["Menu"][2]["Menu"][4]["Menu"][1], command=SendUengineAndroidListForLauncher)
|
||||
uengineIcon.add_separator()
|
||||
uengineIcon.add_command(label="添加/删除指定的 UEngine 快捷方式", command=AddNewUengineDesktopLink.ShowWindow)
|
||||
uengineIcon.add_command(label=langFile[lang]["Main"]["MainWindow"]["Menu"][2]["Menu"][4]["Menu"][2], command=AddNewUengineDesktopLink.ShowWindow)
|
||||
uengineIcon.add_separator()
|
||||
uengineIcon.add_command(label="清空所有 UEngine 快捷方式", command=CleanAllUengineDesktopLink)
|
||||
uengineIcon.add_command(label=langFile[lang]["Main"]["MainWindow"]["Menu"][2]["Menu"][4]["Menu"][3], command=CleanAllUengineDesktopLink)
|
||||
|
||||
uengineUseAdb.add_command(label="adb 连接 UEngine", command=UengineConnectAdb)
|
||||
uengineUseAdb.add_command(label=langFile[lang]["Main"]["MainWindow"]["Menu"][1]["Menu"][8]["Menu"][0], command=UengineConnectAdb)
|
||||
uengineUseAdb.add_separator()
|
||||
uengineUseAdb.add_command(label="允许此设备使用 adb 连接本 UEngine(需要 root)", command=UengineUseAdb)
|
||||
uengineUseAdb.add_command(label="禁止任何设备使用 adb 连接本 UEngine(需要 root)", command=UengineDoNotUseAdb)
|
||||
uengineUseAdb.add_command(label=langFile[lang]["Main"]["MainWindow"]["Menu"][1]["Menu"][8]["Menu"][1], command=UengineUseAdb)
|
||||
uengineUseAdb.add_command(label=langFile[lang]["Main"]["MainWindow"]["Menu"][1]["Menu"][8]["Menu"][2], command=UengineDoNotUseAdb)
|
||||
|
||||
uengineData.add_command(label="打开 UEngine 根目录", command=OpenUengineRootData)
|
||||
uengineData.add_command(label="打开 UEngine 用户数据目录", command=OpenUengineUserData)
|
||||
uengineData.add_command(label=langFile[lang]["Main"]["MainWindow"]["Menu"][2]["Menu"][6]["Menu"][0], command=OpenUengineRootData)
|
||||
uengineData.add_command(label=langFile[lang]["Main"]["MainWindow"]["Menu"][2]["Menu"][6]["Menu"][1], command=OpenUengineUserData)
|
||||
uengineData.add_separator()
|
||||
uengineData.add_command(label="清空 UEngine 数据(需要 root)", command=BackUengineClean)
|
||||
uengineData.add_command(label=langFile[lang]["Main"]["MainWindow"]["Menu"][2]["Menu"][6]["Menu"][2], command=BackUengineClean)
|
||||
|
||||
menu.configure(activebackground="dodgerblue")
|
||||
help.configure(activebackground="dodgerblue")
|
||||
@@ -1048,14 +1243,15 @@ uengineUseAdb.configure(activebackground="dodgerblue")
|
||||
uengineData.configure(activebackground="dodgerblue")
|
||||
|
||||
# 设置控件
|
||||
ComboUninstallPath['value'] = fineUninstallApkHistory
|
||||
#ComboUninstallPath['value'] = fineUninstallApkHistory
|
||||
ComboInstallPath['value'] = findApkHistory
|
||||
try:
|
||||
if sys.argv[1] == "-i":
|
||||
ComboInstallPath.set(sys.argv[2])
|
||||
print("Install Path: " + sys.argv[2])
|
||||
elif sys.argv[1] == "-u":
|
||||
ComboUninstallPath.set(sys.argv[2])
|
||||
#ComboUninstallPath.set(sys.argv[2])
|
||||
ComboInstallPath.set(sys.argv[2])
|
||||
print("Unstall Path: " + sys.argv[2])
|
||||
else:
|
||||
print("Command Format Error")
|
||||
@@ -1066,25 +1262,26 @@ win.config(menu=menu) # 显示菜单栏
|
||||
|
||||
|
||||
|
||||
LabApkPath.grid(row=1, column=0,sticky= tk.W,padx=3)
|
||||
ComboInstallPath.grid(row=2, column=0,padx=3)
|
||||
LabApkPath.grid(row=0, column=0,sticky= tk.W,padx=3)
|
||||
ComboInstallPath.grid(row=1, column=0,padx=3)
|
||||
|
||||
|
||||
FrmInstall.grid(row=2, column=1,padx=3, rowspan=2)
|
||||
FrmInstall.grid(row=0, column=1,padx=3, rowspan=3)
|
||||
BtnFindApk.grid(row=0, column=0)
|
||||
BtnInstall.grid(row=0, column=1)
|
||||
|
||||
LabUninstallPath.grid(row=4, column=0,sticky= tk.W,padx=3)
|
||||
ComboUninstallPath.grid(row=5, column=0,padx=3)
|
||||
#LabUninstallPath.grid(row=4, column=0,sticky= tk.W,padx=3)
|
||||
#ComboUninstallPath.grid(row=5, column=0,padx=3)
|
||||
|
||||
FrmUninstall.grid(row=5, column=1,padx=3)
|
||||
BtnUninstallApkBrowser.grid(row=0, column=0)
|
||||
BtnUninstall.grid(row=0, column=1)
|
||||
#FrmUninstall.grid(row=5, column=1,padx=3)
|
||||
#BtnUninstallApkBrowser.grid(row=0, column=0)
|
||||
BtnUninstall.grid(row=1, column=0)
|
||||
|
||||
BtnShowUengineApp.grid(row=6, column=0,sticky= tk.W,padx=3,pady=2)
|
||||
BtnShowUengineApp.grid(row=2, column=0,sticky= tk.W,padx=3,pady=2)
|
||||
|
||||
Btngeticon.grid(row=1, column=0,sticky= tk.W,padx=3,pady=2)
|
||||
BtnSaveApk.grid(row=1, column=1,sticky= tk.W,padx=3,pady=2)
|
||||
BtnApkInformation.grid(row=2, column=1,sticky= tk.W,padx=3,pady=2)
|
||||
Btngeticon.grid(row=1, column=1,sticky= tk.W,padx=3,pady=2)
|
||||
BtnSaveApk.grid(row=2, column=0,sticky= tk.W,padx=3,pady=2)
|
||||
|
||||
window.pack()
|
||||
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
# 使用系统默认的 python3 运行
|
||||
###########################################################################################
|
||||
# 作者:gfdgd xi
|
||||
# 版本:1.4.2
|
||||
# 更新时间:2021年8月30日
|
||||
# 版本:1.4.3
|
||||
# 更新时间:2021年9月11日
|
||||
# 感谢:anbox、deepin 和 统信
|
||||
# 基于 Python3 的 tkinter 构建
|
||||
###########################################################################################
|
||||
@@ -11,6 +11,7 @@
|
||||
# 引入所需的库
|
||||
#################
|
||||
import os
|
||||
import threading
|
||||
import time
|
||||
import json
|
||||
import ttkthemes
|
||||
@@ -52,7 +53,16 @@ iconPath = "{}/icon.png".format(os.path.split(os.path.realpath(__file__))[0])
|
||||
desktop = "/opt/apps/uengine-runner/UengineAndroidProgramList.desktop"
|
||||
desktopName = "UengineAndroidProgramList.desktop"
|
||||
contribute = "\n".join(information["Contribute"])
|
||||
useProgram = '''1、UEngine:{}
|
||||
useProgram = ""
|
||||
threading.Thread(target=useProgram).start()
|
||||
|
||||
# add sub window
|
||||
#添加窗口开启关闭开关,防止重复开启
|
||||
windowflag = "close"
|
||||
|
||||
def UseProgram():
|
||||
global useProgram
|
||||
useProgram = '''1、UEngine:{}
|
||||
2、python3:{}
|
||||
3、tkinter:{}
|
||||
4、aapt:{}
|
||||
@@ -71,10 +81,6 @@ useProgram = '''1、UEngine:{}
|
||||
subprocess.getoutput("adb version"),
|
||||
subprocess.getoutput("deepin-terminal -v"))
|
||||
|
||||
# add sub window
|
||||
#添加窗口开启关闭开关,防止重复开启
|
||||
windowflag = "close"
|
||||
|
||||
def showhelp():
|
||||
|
||||
#define window and frame and button label
|
||||
@@ -127,6 +133,9 @@ def showhelp():
|
||||
def ChgAbout():
|
||||
HelpStr.set(about)
|
||||
def ChgDep():
|
||||
if useProgram == "":
|
||||
BtnZujian.configure(state=tk.DISABLED)
|
||||
return
|
||||
HelpStr.set(useProgram)
|
||||
def ChgCon():
|
||||
HelpStr.set(contribute)
|
||||
|
||||
24
build/opt/apps/uengine-runner/uengine-runner-launch.sh
Executable file
@@ -0,0 +1,24 @@
|
||||
#!/bin/bash
|
||||
|
||||
# 忽略社区版检测
|
||||
|
||||
pkgRunCnt=`ps -ef |grep "uengine launch" |grep -v grep |grep "$pkg" |wc -l`
|
||||
if [ $pkgRunCnt -ge 1 ]; then
|
||||
#防止短时间内多次打开同一应用,如果应用正在启动中,此次忽略
|
||||
exit 0
|
||||
fi
|
||||
|
||||
#等Session服务启动完全
|
||||
wscont=0
|
||||
isReady=`busctl --user get-property org.anbox /org/anbox org.anbox.ApplicationManager Ready`
|
||||
if [ "$isReady" != "b true" ] ;then
|
||||
sleep 2
|
||||
fi
|
||||
while [ "$isReady" = "b false" -a $wscont -lt 10 ]
|
||||
do
|
||||
sleep 1
|
||||
isReady=`busctl --user get-property org.anbox /org/anbox org.anbox.ApplicationManager Ready`
|
||||
let wscont++
|
||||
done
|
||||
|
||||
uengine launch $*
|
||||
113
build/opt/apps/uengine-runner/uengine-runner-update-bug
Executable file
@@ -0,0 +1,113 @@
|
||||
#!/usr/bin/env python3
|
||||
import os
|
||||
import json
|
||||
import base64
|
||||
import requests
|
||||
import ttkthemes
|
||||
import traceback
|
||||
import webbrowser
|
||||
import tkinter as tk
|
||||
import tkinter.ttk as ttk
|
||||
import tkinter.messagebox as messagebox
|
||||
import urllib.parse as parse
|
||||
|
||||
# 读取文本文档
|
||||
def readtxt(path: "路径")->"读取文本文档":
|
||||
f = open(path, "r") # 设置文件对象
|
||||
str = f.read() # 获取内容
|
||||
f.close() # 关闭文本对象
|
||||
return str # 返回结果
|
||||
|
||||
def Update(name, stars, contact, things, version):
|
||||
# post 内容
|
||||
data = {
|
||||
"Name": name,
|
||||
"Starts": stars,
|
||||
"Contact": contact,
|
||||
"Things": things,
|
||||
"Version": version
|
||||
}
|
||||
try:
|
||||
messagebox.showinfo(message=requests.post(parse.unquote(base64.b64decode("aHR0cCUzQS8vZ2ZkZ2R4aS5xaWNwLnZpcC91ZW5naW5lL2J1Zy91cGxvYWQucGhw").decode("utf-8")), data=data).text)
|
||||
except:
|
||||
traceback.print_exc()
|
||||
messagebox.showerror(title="错误", message="服务器疑似出现错误,可以进行以下尝试:①多尝试几次;②使用其他反馈途径\n错误信息:{}".format(traceback.format_exc()))
|
||||
|
||||
def UpdateButtonClick():
|
||||
#判断是否为空
|
||||
if nameThings.get() == "" or starValue.get() == "" or contactThings.get() == "" or updateThings.get(1.0, "end").replace(" ", "").replace("\n", "") == "":
|
||||
messagebox.showerror(title="错误", message="反馈信息未填写完整!")
|
||||
return
|
||||
Update(name=nameThings.get(), stars=starValue.get(), contact=contactThings.get(), things=updateThings.get(1.0, "end"), version=version)
|
||||
|
||||
def OpenGiteeIssues():
|
||||
webbrowser.open_new_tab("https://gitee.com/gfdgd-xi/uengine-runner/issues")
|
||||
|
||||
def OpenGithubIssues():
|
||||
webbrowser.open_new_tab("https://github.com/gfdgd-xi/uengine-runner/issues")
|
||||
|
||||
###########################
|
||||
# 程序信息
|
||||
###########################
|
||||
iconPath = "{}/icon.png".format(os.path.split(os.path.realpath(__file__))[0])
|
||||
programPath = os.path.split(os.path.realpath(__file__))[0] # 返回 string
|
||||
information = json.loads(readtxt(programPath + "/information.json"))
|
||||
version = information["Version"]
|
||||
|
||||
###########################
|
||||
# 窗口创建
|
||||
###########################
|
||||
window = tk.Tk()
|
||||
win = ttk.Frame()
|
||||
|
||||
starValue = tk.StringVar()
|
||||
starValue.set("5分")
|
||||
|
||||
name = ttk.Label(win, text="你的昵称:")
|
||||
nameThings = ttk.Entry(win, width=25)
|
||||
|
||||
contact = ttk.Label(win, text="联系方式:")
|
||||
contactThings = ttk.Entry(win, width=25)
|
||||
|
||||
star = ttk.Label(win, text="评分:")
|
||||
starMenu = ttk.OptionMenu(win, starValue, "5分", "5分", "4分", "3分", "2分", "1分")
|
||||
|
||||
updateThingsTips = ttk.Label(win, text="反馈内容(支持 Markdown 格式):")
|
||||
updateThings = tk.Text(win)
|
||||
|
||||
otherUpload = ttk.Frame(win)
|
||||
# 所属内容
|
||||
tips = ttk.Label(otherUpload, text="如果无法正常反馈,可以用其他方式反馈:")
|
||||
giteeButton = ttk.Button(otherUpload, text="Gitee Issues", command=OpenGiteeIssues)
|
||||
githubButton = ttk.Button(otherUpload, text="Github Issues", command=OpenGithubIssues)
|
||||
|
||||
updateButton = ttk.Button(win, text="提交", command=UpdateButtonClick)
|
||||
|
||||
# 设置窗口
|
||||
style = ttkthemes.ThemedStyle(window)
|
||||
style.set_theme("breeze")
|
||||
window.title("UEngine 运行器 {} 问题/建议反馈".format(version))
|
||||
window.resizable(0, 0)
|
||||
window.iconphoto(False, tk.PhotoImage(file=iconPath))
|
||||
|
||||
tips.grid(row=0, column=0)
|
||||
giteeButton.grid(row=0, column=1)
|
||||
githubButton.grid(row=0, column=2)
|
||||
|
||||
name.grid(row=0, column=0)
|
||||
nameThings.grid(row=0, column=1)
|
||||
|
||||
contact.grid(row=0, column=2)
|
||||
contactThings.grid(row=0, column=3)
|
||||
|
||||
star.grid(row=0, column=4)
|
||||
starMenu.grid(row=0, column=5)
|
||||
|
||||
updateThingsTips.grid(row=1, column=0, columnspan=2)
|
||||
updateThings.grid(row=2, column=0, columnspan=6)
|
||||
|
||||
otherUpload.grid(row=3, column=0, columnspan=4)
|
||||
updateButton.grid(row=3, column=5)
|
||||
|
||||
win.pack(expand="yes", fill="both")
|
||||
window.mainloop()
|
||||
153
build/opt/apps/uengine-runner/uengine_logo.svg
Normal file
@@ -0,0 +1,153 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<svg width="256px" height="256px" viewBox="0 0 256 256" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<title>APPS_安卓容器_bonund256pt</title>
|
||||
<defs>
|
||||
<filter x="-12.5%" y="-12.5%" width="125.0%" height="125.0%" filterUnits="objectBoundingBox" id="filter-1">
|
||||
<feOffset dx="0" dy="4" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset>
|
||||
<feGaussianBlur stdDeviation="6" in="shadowOffsetOuter1" result="shadowBlurOuter1"></feGaussianBlur>
|
||||
<feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.197982681 0" type="matrix" in="shadowBlurOuter1" result="shadowMatrixOuter1"></feColorMatrix>
|
||||
<feMerge>
|
||||
<feMergeNode in="shadowMatrixOuter1"></feMergeNode>
|
||||
<feMergeNode in="SourceGraphic"></feMergeNode>
|
||||
</feMerge>
|
||||
</filter>
|
||||
<linearGradient x1="58.6019309%" y1="88.1513471%" x2="68.1110327%" y2="11.6551043%" id="linearGradient-2">
|
||||
<stop stop-color="#02DA67" offset="0%"></stop>
|
||||
<stop stop-color="#8DF6D6" offset="100%"></stop>
|
||||
</linearGradient>
|
||||
<path d="M178.25009,95.8175981 C203.764636,95.8175981 224.183124,74.193939 224.183124,47.5198036 C224.183124,20.8456682 203.116891,-0.0263983843 178.25009,0.00161822517 C153.698836,-0.149640967 132.579574,20.8119281 132.579574,47.4860635 C132.579574,74.1601989 152.735544,95.8175981 178.25009,95.8175981 Z" id="path-3"></path>
|
||||
<filter x="-8.7%" y="-8.3%" width="117.5%" height="116.7%" filterUnits="objectBoundingBox" id="filter-4">
|
||||
<feGaussianBlur stdDeviation="6" in="SourceAlpha" result="shadowBlurInner1"></feGaussianBlur>
|
||||
<feOffset dx="0" dy="4" in="shadowBlurInner1" result="shadowOffsetInner1"></feOffset>
|
||||
<feComposite in="shadowOffsetInner1" in2="SourceAlpha" operator="arithmetic" k2="-1" k3="1" result="shadowInnerInner1"></feComposite>
|
||||
<feColorMatrix values="0 0 0 0 0.503096532 0 0 0 0 0.974696063 0 0 0 0 0.762013922 0 0 0 1 0" type="matrix" in="shadowInnerInner1"></feColorMatrix>
|
||||
</filter>
|
||||
<linearGradient x1="63.5172866%" y1="83.8734541%" x2="28.478366%" y2="6.65286784%" id="linearGradient-5">
|
||||
<stop stop-color="#4796FE" offset="0%"></stop>
|
||||
<stop stop-color="#44D9FF" offset="100%"></stop>
|
||||
</linearGradient>
|
||||
<ellipse id="path-6" cx="75.4782609" cy="64.0914576" rx="40.4347826" ry="42.2724698"></ellipse>
|
||||
<filter x="-7.4%" y="-7.1%" width="114.8%" height="114.2%" filterUnits="objectBoundingBox" id="filter-7">
|
||||
<feGaussianBlur stdDeviation="6" in="SourceAlpha" result="shadowBlurInner1"></feGaussianBlur>
|
||||
<feOffset dx="0" dy="0" in="shadowBlurInner1" result="shadowOffsetInner1"></feOffset>
|
||||
<feComposite in="shadowOffsetInner1" in2="SourceAlpha" operator="arithmetic" k2="-1" k3="1" result="shadowInnerInner1"></feComposite>
|
||||
<feColorMatrix values="0 0 0 0 0.658848459 0 0 0 0 0.76869955 0 0 0 0 0.994393611 0 0 0 1 0" type="matrix" in="shadowInnerInner1"></feColorMatrix>
|
||||
</filter>
|
||||
<linearGradient x1="50%" y1="31.0023874%" x2="50%" y2="95.9937487%" id="linearGradient-8">
|
||||
<stop stop-color="#D0FF52" offset="0%"></stop>
|
||||
<stop stop-color="#75EF07" offset="100%"></stop>
|
||||
</linearGradient>
|
||||
<path d="M173.78741,23.8356193 C174.592173,22.5497756 176.286945,22.1597832 177.572789,22.9645469 C178.97904,23.8446691 179.464805,25.6626835 178.684957,27.1269214 L178.684957,27.1269214 L167.998548,47.191447 C186.416883,60.0725236 198.886549,83.3414384 199.457775,110.056847 L199.478261,111.975079 C172.083327,116.233637 151.498347,118.362915 137.72332,118.362915 C122.744723,118.362915 100.199269,116.233637 70.0869565,111.975079 C70.0869565,84.4580366 82.7086518,60.380247 101.56625,47.1917402 L90.8802608,27.1269214 C90.1004123,25.6626835 90.5861775,23.8446691 91.9924283,22.9645469 C93.278272,22.1597832 94.9730442,22.5497756 95.7778079,23.8356193 C95.8117323,23.8898235 95.8437535,23.9451959 95.873813,24.0016352 L106.548653,44.0451766 C115.080463,39.2096532 124.660045,36.497433 134.782609,36.497433 C144.904955,36.497433 154.484343,39.2095367 163.016015,44.0448652 L173.691404,24.0016352 C173.721464,23.9451959 173.753485,23.8898235 173.78741,23.8356193 Z" id="path-9"></path>
|
||||
<filter x="-32.5%" y="-31.3%" width="164.9%" height="187.7%" filterUnits="objectBoundingBox" id="filter-10">
|
||||
<feOffset dx="0" dy="12" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset>
|
||||
<feGaussianBlur stdDeviation="12" in="shadowOffsetOuter1" result="shadowBlurOuter1"></feGaussianBlur>
|
||||
<feColorMatrix values="0 0 0 0 0.565756196 0 0 0 0 0.617813774 0 0 0 0 0 0 0 0 0.5 0" type="matrix" in="shadowBlurOuter1"></feColorMatrix>
|
||||
</filter>
|
||||
<path d="M108.824477,66.2818224 C104.358174,66.2818224 100.73752,70.0670283 100.73752,74.7363163 C100.73752,79.4056044 104.358174,83.1908103 108.824477,83.1908103 C113.290779,83.1908103 116.911433,79.4056044 116.911433,74.7363163 C116.911433,70.0670283 113.290779,66.2818224 108.824477,66.2818224 Z" id="path-11"></path>
|
||||
<filter x="-24.7%" y="-23.7%" width="149.5%" height="147.3%" filterUnits="objectBoundingBox" id="filter-12">
|
||||
<feGaussianBlur stdDeviation="2" in="SourceAlpha" result="shadowBlurInner1"></feGaussianBlur>
|
||||
<feOffset dx="0" dy="4" in="shadowBlurInner1" result="shadowOffsetInner1"></feOffset>
|
||||
<feComposite in="shadowOffsetInner1" in2="SourceAlpha" operator="arithmetic" k2="-1" k3="1" result="shadowInnerInner1"></feComposite>
|
||||
<feColorMatrix values="0 0 0 0 0.311563901 0 0 0 0 0.401805933 0 0 0 0 0.0617868498 0 0 0 1 0" type="matrix" in="shadowInnerInner1"></feColorMatrix>
|
||||
</filter>
|
||||
<path d="M162.73752,66.2818224 C158.271217,66.2818224 154.650564,70.0670283 154.650564,74.7363163 C154.650564,79.4056044 158.271217,83.1908103 162.73752,83.1908103 C167.203823,83.1908103 170.824477,79.4056044 170.824477,74.7363163 C170.824477,70.0670283 167.203823,66.2818224 162.73752,66.2818224 Z" id="path-13"></path>
|
||||
<filter x="-24.7%" y="-23.7%" width="149.5%" height="147.3%" filterUnits="objectBoundingBox" id="filter-14">
|
||||
<feGaussianBlur stdDeviation="2" in="SourceAlpha" result="shadowBlurInner1"></feGaussianBlur>
|
||||
<feOffset dx="0" dy="4" in="shadowBlurInner1" result="shadowOffsetInner1"></feOffset>
|
||||
<feComposite in="shadowOffsetInner1" in2="SourceAlpha" operator="arithmetic" k2="-1" k3="1" result="shadowInnerInner1"></feComposite>
|
||||
<feColorMatrix values="0 0 0 0 0.311563901 0 0 0 0 0.401805933 0 0 0 0 0.0617868498 0 0 0 1 0" type="matrix" in="shadowInnerInner1"></feColorMatrix>
|
||||
</filter>
|
||||
<linearGradient x1="50%" y1="15.1929094%" x2="43.5077077%" y2="91.2786664%" id="linearGradient-15">
|
||||
<stop stop-color="#F59A36" offset="0%"></stop>
|
||||
<stop stop-color="#FCCB6D" offset="100%"></stop>
|
||||
</linearGradient>
|
||||
<linearGradient x1="49.9821781%" y1="101.237754%" x2="49.9425633%" y2="5.03998902%" id="linearGradient-16">
|
||||
<stop stop-color="#FFC87C" offset="0%"></stop>
|
||||
<stop stop-color="#FD7A49" offset="100%"></stop>
|
||||
</linearGradient>
|
||||
<linearGradient x1="42.3143683%" y1="18.131572%" x2="69.2971087%" y2="74.6901955%" id="linearGradient-17">
|
||||
<stop stop-color="#FFE066" offset="0%"></stop>
|
||||
<stop stop-color="#FED862" offset="67.0339918%"></stop>
|
||||
<stop stop-color="#FFC565" offset="100%"></stop>
|
||||
</linearGradient>
|
||||
<linearGradient x1="37.3123913%" y1="70.4187755%" x2="57.7534931%" y2="25.1271391%" id="linearGradient-18">
|
||||
<stop stop-color="#FBC758" offset="0%"></stop>
|
||||
<stop stop-color="#FCE188" offset="100%"></stop>
|
||||
</linearGradient>
|
||||
<polygon id="path-19" points="22.4854175 71.1352831 124 111.895386 108.52496 183.11999 -1.44464996e-12 131.484995"></polygon>
|
||||
<filter x="-3.2%" y="-3.6%" width="112.9%" height="114.3%" filterUnits="objectBoundingBox" id="filter-20">
|
||||
<feOffset dx="4" dy="4" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset>
|
||||
<feGaussianBlur stdDeviation="2" in="shadowOffsetOuter1" result="shadowBlurOuter1"></feGaussianBlur>
|
||||
<feColorMatrix values="0 0 0 0 0.925490196 0 0 0 0 0.556862745 0 0 0 0 0.0980392157 0 0 0 1 0" type="matrix" in="shadowBlurOuter1"></feColorMatrix>
|
||||
</filter>
|
||||
<linearGradient x1="38.069149%" y1="33.5367903%" x2="38.069149%" y2="98.1621294%" id="linearGradient-21">
|
||||
<stop stop-color="#FE606D" offset="0%"></stop>
|
||||
<stop stop-color="#FFA2A5" offset="100%"></stop>
|
||||
</linearGradient>
|
||||
<linearGradient x1="60.0817844%" y1="28.2456942%" x2="38.943371%" y2="75.9265148%" id="linearGradient-22">
|
||||
<stop stop-color="#FEDB63" offset="0%"></stop>
|
||||
<stop stop-color="#FEDD73" offset="100%"></stop>
|
||||
</linearGradient>
|
||||
<polygon id="path-23" points="139.297941 70.1779313 248 120.532936 229.699968 185.722682 124 144.005227"></polygon>
|
||||
<filter x="-9.7%" y="-10.4%" width="112.9%" height="113.8%" filterUnits="objectBoundingBox" id="filter-24">
|
||||
<feOffset dx="-4" dy="-4" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset>
|
||||
<feGaussianBlur stdDeviation="2" in="shadowOffsetOuter1" result="shadowBlurOuter1"></feGaussianBlur>
|
||||
<feColorMatrix values="0 0 0 0 0.99518353 0 0 0 0 0.657959601 0 0 0 0 0.222035984 0 0 0 0.663358248 0" type="matrix" in="shadowBlurOuter1"></feColorMatrix>
|
||||
</filter>
|
||||
<linearGradient x1="1.3884147%" y1="42.2427784%" x2="97.6287521%" y2="58.3575504%" id="linearGradient-25">
|
||||
<stop stop-color="#FBDF84" offset="0%"></stop>
|
||||
<stop stop-color="#FEF6DF" offset="20.1427895%"></stop>
|
||||
<stop stop-color="#FFF8E2" offset="75.0762962%"></stop>
|
||||
<stop stop-color="#FBDF84" offset="100%"></stop>
|
||||
</linearGradient>
|
||||
<linearGradient x1="0%" y1="57.7627211%" x2="100%" y2="42.7948807%" id="linearGradient-26">
|
||||
<stop stop-color="#FDDD72" offset="0%"></stop>
|
||||
<stop stop-color="#FEF6DF" offset="20.1427895%"></stop>
|
||||
<stop stop-color="#FFF8E2" offset="75.0762962%"></stop>
|
||||
<stop stop-color="#FEDD71" offset="100%"></stop>
|
||||
</linearGradient>
|
||||
</defs>
|
||||
<g id="APPS_安卓容器_bonund256pt" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
||||
<g id="编组-3备份-3" filter="url(#filter-1)" transform="translate(4.000000, 4.000000)">
|
||||
<polygon id="路径-4" fill="#9F6B00" points="22.4854175 71.1352831 124 39.1781202 124 127.971838 42.4959276 162.72722"></polygon>
|
||||
<polygon id="路径-4" fill="#A16B00" transform="translate(176.849984, 103.805249) scale(-1, 1) translate(-176.849984, -103.805249) " points="124 70.2467832 229.699968 39.246972 229.699968 126.857126 143.556296 168.36355"></polygon>
|
||||
<g id="椭圆形">
|
||||
<use fill="url(#linearGradient-2)" fill-rule="evenodd" xlink:href="#path-3"></use>
|
||||
<use fill="black" fill-opacity="1" filter="url(#filter-4)" xlink:href="#path-3"></use>
|
||||
</g>
|
||||
<g id="椭圆形备份">
|
||||
<use fill="url(#linearGradient-5)" fill-rule="evenodd" xlink:href="#path-6"></use>
|
||||
<use fill="black" fill-opacity="1" filter="url(#filter-7)" xlink:href="#path-6"></use>
|
||||
</g>
|
||||
<g id="编组-2" transform="translate(125.653236, 69.872713) rotate(-9.000000) translate(-125.653236, -69.872713) translate(72.939312, 36.054737)"></g>
|
||||
<g id="形状结合备份-3">
|
||||
<use fill="black" fill-opacity="1" filter="url(#filter-10)" xlink:href="#path-9"></use>
|
||||
<use fill="url(#linearGradient-8)" fill-rule="evenodd" xlink:href="#path-9"></use>
|
||||
</g>
|
||||
<g id="路径">
|
||||
<use fill="#5B8C06" fill-rule="evenodd" xlink:href="#path-11"></use>
|
||||
<use fill="black" fill-opacity="1" filter="url(#filter-12)" xlink:href="#path-11"></use>
|
||||
</g>
|
||||
<g id="路径备份">
|
||||
<use fill="#5B8C06" fill-rule="evenodd" xlink:href="#path-13"></use>
|
||||
<use fill="black" fill-opacity="1" filter="url(#filter-14)" xlink:href="#path-13"></use>
|
||||
</g>
|
||||
<polygon id="路径-4备份" fill="url(#linearGradient-15)" transform="translate(71.995299, 162.885973) scale(-1, 1) translate(-71.995299, -162.885973) " points="20.4301769 118.218419 124 77.7719458 124 192.941695 19.9905981 248"></polygon>
|
||||
<line x1="123.560421" y1="245.912586" x2="124" y2="114.029217" id="路径-7备份" stroke="url(#linearGradient-16)" stroke-width="2.6125" stroke-linecap="round"></line>
|
||||
<polygon id="路径-4备份" fill="url(#linearGradient-17)" points="124 114.029217 231.198465 75.4450395 231.198465 193.553624 124 248"></polygon>
|
||||
<g id="路径-11">
|
||||
<use fill="black" fill-opacity="1" filter="url(#filter-20)" xlink:href="#path-19"></use>
|
||||
<use fill="url(#linearGradient-18)" fill-rule="evenodd" xlink:href="#path-19"></use>
|
||||
</g>
|
||||
<polygon id="路径-3" fill="url(#linearGradient-21)" points="177.791264 92.5327965 178.598476 220.244869 195.622586 211.671682 196.169593 85.4467628"></polygon>
|
||||
<g id="路径-11备份" transform="translate(186.000000, 127.950307) scale(1, -1) translate(-186.000000, -127.950307) ">
|
||||
<use fill="black" fill-opacity="1" filter="url(#filter-24)" xlink:href="#path-23"></use>
|
||||
<use fill="url(#linearGradient-22)" fill-rule="evenodd" xlink:href="#path-23"></use>
|
||||
</g>
|
||||
<path d="M34.8824439,168.349874 L62.2463189,168.831259 C63.6537673,168.856018 64.7885425,169.99145 64.8124889,171.398912 L64.8191082,171.787962 C64.843653,173.230597 63.6940637,174.419981 62.2514286,174.444526 C62.2212993,174.445039 62.1911633,174.44503 62.1610343,174.4445 L34.7971594,173.963116 C33.389711,173.938356 32.2549357,172.802925 32.2309893,171.395463 L32.2243701,171.006413 C32.1998253,169.563778 33.3494146,168.374393 34.7920497,168.349848 C34.822179,168.349336 34.8523149,168.349344 34.8824439,168.349874 Z" id="矩形" fill="#F4E5C3" transform="translate(48.521739, 171.397187) rotate(23.000000) translate(-48.521739, -171.397187) "></path>
|
||||
<path d="M35.6935587,176.218338 L46.7821941,176.425811 C48.1873409,176.452102 49.3199011,177.585307 49.3453919,178.990469 L49.3523188,179.372312 C49.3784889,180.814919 48.2302402,182.005597 46.7876337,182.031767 C46.7555504,182.032349 46.7234591,182.03234 46.6913762,182.03174 L35.6027408,181.824267 C34.197594,181.797976 33.0650338,180.664771 33.039543,179.259609 L33.0326161,178.877766 C33.006446,177.435159 34.1546947,176.24448 35.5973013,176.21831 C35.6293845,176.217728 35.6614758,176.217738 35.6935587,176.218338 Z" id="矩形备份" fill="#F3DA7B" transform="translate(41.192467, 179.125039) rotate(25.000000) translate(-41.192467, -179.125039) "></path>
|
||||
<path d="M22.4854175,71.9306494 L123.120842,113.074543 L22.4854175,71.9306494 Z" id="路径-7" stroke="url(#linearGradient-25)" stroke-width="2.6125" stroke-linecap="round"></path>
|
||||
<line x1="125.563916" y1="112.565642" x2="228.738156" y2="71.9125793" id="路径-7备份-2" stroke="url(#linearGradient-26)" stroke-width="2.6125" stroke-linecap="round"></line>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 15 KiB |
1
build/usr/bin/uengine-runner-launch.sh
Symbolic link
@@ -0,0 +1 @@
|
||||
/opt/apps/uengine-runner/uengine-runner-launch.sh
|
||||
1
build/usr/bin/uengine-runner-update-bug
Symbolic link
@@ -0,0 +1 @@
|
||||
/opt/apps/uengine-runner/uengine-runner-update-bug
|
||||
@@ -1,11 +1,13 @@
|
||||
[Desktop Entry]
|
||||
Categories=System;
|
||||
Comment=UEngine 程序菜单
|
||||
Comment=UEngine App List
|
||||
Comment[zh]=UEngine 程序菜单
|
||||
Encoding=UTF-8
|
||||
Exec=/usr/bin/uengine-launch.sh --package=org.anbox.appmgr --component=org.anbox.appmgr.AppViewActivity
|
||||
Exec=/usr/bin/uengine launch --package=org.anbox.appmgr --component=org.anbox.appmgr.AppViewActivity
|
||||
Icon=/opt/apps/uengine-runner/icon.png
|
||||
MimeType=
|
||||
Name=UEngine 程序菜单
|
||||
Name=UEngine App List
|
||||
Name[zh]=UEngine 程序菜单
|
||||
StartupWMClass=UEngine 程序菜单
|
||||
Terminal=false
|
||||
Type=Application
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
[Desktop Entry]
|
||||
Categories=System;
|
||||
Comment=UEngine 系统设置
|
||||
Encoding=UTF-8
|
||||
Exec=/usr/bin/uengine-launch.sh --action=android.intent.action.MAIN --package=com.android.settings --component=com.android.settings.Settings
|
||||
Icon=/opt/apps/uengine-runner/icon.png
|
||||
MimeType=
|
||||
Name=UEngine 系统设置
|
||||
StartupWMClass=UEngine 系统设置
|
||||
Terminal=false
|
||||
Type=Application
|
||||
15
build/usr/share/applications/spark-uengine-apk-build.desktop
Executable file
@@ -0,0 +1,15 @@
|
||||
[Desktop Entry]
|
||||
Type=Application
|
||||
Encoding=UTF-8
|
||||
Categories=System;
|
||||
Terminal=false
|
||||
Exec=/usr/bin/uengine-apk-builder %F
|
||||
Icon=/opt/apps/uengine-runner/icon.png
|
||||
Name=Build Apk To Deb(UEngine Runner)
|
||||
Comment=Build Apk To Deb(UEngine Runner)
|
||||
Comment[zh]=打包 deb(UEngine 运行器)
|
||||
Name[zh]=打包 deb(UEngine 运行器)
|
||||
StartupNotify=true
|
||||
Hidden=false
|
||||
NoDisplay=true
|
||||
MimeType=application/vnd.android.package-archive
|
||||
@@ -5,10 +5,10 @@ Categories=System;
|
||||
Terminal=false
|
||||
Exec=/usr/bin/uengine-runner -i %F
|
||||
Icon=/opt/apps/uengine-runner/icon.png
|
||||
Name=Install APK(UEngine runner)
|
||||
Comment=Install APK(UEngine runner)
|
||||
Comment[zh]=安装 APK(UEngine 运行器)
|
||||
Name[zh]=安装 APK(UEngine 运行器)
|
||||
Name=Install Or Uninstall APK(UEngine runner)
|
||||
Comment=Install Or Uninstall APK(UEngine runner)
|
||||
Comment[zh]=安装/卸载 APK(UEngine 运行器)
|
||||
Name[zh]=安装/卸载 APK(UEngine 运行器)
|
||||
StartupNotify=true
|
||||
Hidden=false
|
||||
NoDisplay=true
|
||||
|
||||
@@ -1,15 +0,0 @@
|
||||
[Desktop Entry]
|
||||
Type=Application
|
||||
Encoding=UTF-8
|
||||
Categories=System;
|
||||
Terminal=false
|
||||
Exec=/usr/bin/uengine-runner -u %F
|
||||
Icon=/opt/apps/uengine-runner/icon.png
|
||||
Name=Uninstall APK(UEngine runner)
|
||||
Comment=Uninstall APK(UEngine runner)
|
||||
Comment[zh]=卸载 APK(UEngine 运行器)
|
||||
Name[zh]=卸载 APK(UEngine 运行器)
|
||||
StartupNotify=true
|
||||
Hidden=false
|
||||
NoDisplay=true
|
||||
MimeType=application/vnd.android.package-archive
|
||||
12
build/usr/share/applications/uengine-apk-builder.desktop
Executable file
@@ -0,0 +1,12 @@
|
||||
[Desktop Entry]
|
||||
Type=Application
|
||||
Encoding=UTF-8
|
||||
Categories=System;
|
||||
Terminal=false
|
||||
Exec=/usr/bin/uengine-apk-builder %F
|
||||
Icon=/opt/apps/uengine-runner/icon.png
|
||||
Name=uengine Apk Builder
|
||||
Comment=UEngine Apk Builder
|
||||
Comment[zh]=UEngine 应用打包器
|
||||
Name[zh]=UEngine 应用打包器
|
||||
StartupNotify=true
|
||||
@@ -5,7 +5,7 @@ Categories=System;
|
||||
Terminal=false
|
||||
Exec=/usr/bin/uengine-runner
|
||||
Icon=/opt/apps/uengine-runner/icon.png
|
||||
Name=uengine runner
|
||||
Name=UEngine Runner
|
||||
Comment=UEngine Runner
|
||||
Comment[zh]=UEngine 运行器
|
||||
Name[zh]=UEngine 运行器
|
||||
|
||||
153
build/usr/share/icons/apps/256/uengine.svg
Normal file
@@ -0,0 +1,153 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<svg width="256px" height="256px" viewBox="0 0 256 256" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<title>APPS_安卓容器_bonund256pt</title>
|
||||
<defs>
|
||||
<filter x="-12.5%" y="-12.5%" width="125.0%" height="125.0%" filterUnits="objectBoundingBox" id="filter-1">
|
||||
<feOffset dx="0" dy="4" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset>
|
||||
<feGaussianBlur stdDeviation="6" in="shadowOffsetOuter1" result="shadowBlurOuter1"></feGaussianBlur>
|
||||
<feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.197982681 0" type="matrix" in="shadowBlurOuter1" result="shadowMatrixOuter1"></feColorMatrix>
|
||||
<feMerge>
|
||||
<feMergeNode in="shadowMatrixOuter1"></feMergeNode>
|
||||
<feMergeNode in="SourceGraphic"></feMergeNode>
|
||||
</feMerge>
|
||||
</filter>
|
||||
<linearGradient x1="58.6019309%" y1="88.1513471%" x2="68.1110327%" y2="11.6551043%" id="linearGradient-2">
|
||||
<stop stop-color="#02DA67" offset="0%"></stop>
|
||||
<stop stop-color="#8DF6D6" offset="100%"></stop>
|
||||
</linearGradient>
|
||||
<path d="M178.25009,95.8175981 C203.764636,95.8175981 224.183124,74.193939 224.183124,47.5198036 C224.183124,20.8456682 203.116891,-0.0263983843 178.25009,0.00161822517 C153.698836,-0.149640967 132.579574,20.8119281 132.579574,47.4860635 C132.579574,74.1601989 152.735544,95.8175981 178.25009,95.8175981 Z" id="path-3"></path>
|
||||
<filter x="-8.7%" y="-8.3%" width="117.5%" height="116.7%" filterUnits="objectBoundingBox" id="filter-4">
|
||||
<feGaussianBlur stdDeviation="6" in="SourceAlpha" result="shadowBlurInner1"></feGaussianBlur>
|
||||
<feOffset dx="0" dy="4" in="shadowBlurInner1" result="shadowOffsetInner1"></feOffset>
|
||||
<feComposite in="shadowOffsetInner1" in2="SourceAlpha" operator="arithmetic" k2="-1" k3="1" result="shadowInnerInner1"></feComposite>
|
||||
<feColorMatrix values="0 0 0 0 0.503096532 0 0 0 0 0.974696063 0 0 0 0 0.762013922 0 0 0 1 0" type="matrix" in="shadowInnerInner1"></feColorMatrix>
|
||||
</filter>
|
||||
<linearGradient x1="63.5172866%" y1="83.8734541%" x2="28.478366%" y2="6.65286784%" id="linearGradient-5">
|
||||
<stop stop-color="#4796FE" offset="0%"></stop>
|
||||
<stop stop-color="#44D9FF" offset="100%"></stop>
|
||||
</linearGradient>
|
||||
<ellipse id="path-6" cx="75.4782609" cy="64.0914576" rx="40.4347826" ry="42.2724698"></ellipse>
|
||||
<filter x="-7.4%" y="-7.1%" width="114.8%" height="114.2%" filterUnits="objectBoundingBox" id="filter-7">
|
||||
<feGaussianBlur stdDeviation="6" in="SourceAlpha" result="shadowBlurInner1"></feGaussianBlur>
|
||||
<feOffset dx="0" dy="0" in="shadowBlurInner1" result="shadowOffsetInner1"></feOffset>
|
||||
<feComposite in="shadowOffsetInner1" in2="SourceAlpha" operator="arithmetic" k2="-1" k3="1" result="shadowInnerInner1"></feComposite>
|
||||
<feColorMatrix values="0 0 0 0 0.658848459 0 0 0 0 0.76869955 0 0 0 0 0.994393611 0 0 0 1 0" type="matrix" in="shadowInnerInner1"></feColorMatrix>
|
||||
</filter>
|
||||
<linearGradient x1="50%" y1="31.0023874%" x2="50%" y2="95.9937487%" id="linearGradient-8">
|
||||
<stop stop-color="#D0FF52" offset="0%"></stop>
|
||||
<stop stop-color="#75EF07" offset="100%"></stop>
|
||||
</linearGradient>
|
||||
<path d="M173.78741,23.8356193 C174.592173,22.5497756 176.286945,22.1597832 177.572789,22.9645469 C178.97904,23.8446691 179.464805,25.6626835 178.684957,27.1269214 L178.684957,27.1269214 L167.998548,47.191447 C186.416883,60.0725236 198.886549,83.3414384 199.457775,110.056847 L199.478261,111.975079 C172.083327,116.233637 151.498347,118.362915 137.72332,118.362915 C122.744723,118.362915 100.199269,116.233637 70.0869565,111.975079 C70.0869565,84.4580366 82.7086518,60.380247 101.56625,47.1917402 L90.8802608,27.1269214 C90.1004123,25.6626835 90.5861775,23.8446691 91.9924283,22.9645469 C93.278272,22.1597832 94.9730442,22.5497756 95.7778079,23.8356193 C95.8117323,23.8898235 95.8437535,23.9451959 95.873813,24.0016352 L106.548653,44.0451766 C115.080463,39.2096532 124.660045,36.497433 134.782609,36.497433 C144.904955,36.497433 154.484343,39.2095367 163.016015,44.0448652 L173.691404,24.0016352 C173.721464,23.9451959 173.753485,23.8898235 173.78741,23.8356193 Z" id="path-9"></path>
|
||||
<filter x="-32.5%" y="-31.3%" width="164.9%" height="187.7%" filterUnits="objectBoundingBox" id="filter-10">
|
||||
<feOffset dx="0" dy="12" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset>
|
||||
<feGaussianBlur stdDeviation="12" in="shadowOffsetOuter1" result="shadowBlurOuter1"></feGaussianBlur>
|
||||
<feColorMatrix values="0 0 0 0 0.565756196 0 0 0 0 0.617813774 0 0 0 0 0 0 0 0 0.5 0" type="matrix" in="shadowBlurOuter1"></feColorMatrix>
|
||||
</filter>
|
||||
<path d="M108.824477,66.2818224 C104.358174,66.2818224 100.73752,70.0670283 100.73752,74.7363163 C100.73752,79.4056044 104.358174,83.1908103 108.824477,83.1908103 C113.290779,83.1908103 116.911433,79.4056044 116.911433,74.7363163 C116.911433,70.0670283 113.290779,66.2818224 108.824477,66.2818224 Z" id="path-11"></path>
|
||||
<filter x="-24.7%" y="-23.7%" width="149.5%" height="147.3%" filterUnits="objectBoundingBox" id="filter-12">
|
||||
<feGaussianBlur stdDeviation="2" in="SourceAlpha" result="shadowBlurInner1"></feGaussianBlur>
|
||||
<feOffset dx="0" dy="4" in="shadowBlurInner1" result="shadowOffsetInner1"></feOffset>
|
||||
<feComposite in="shadowOffsetInner1" in2="SourceAlpha" operator="arithmetic" k2="-1" k3="1" result="shadowInnerInner1"></feComposite>
|
||||
<feColorMatrix values="0 0 0 0 0.311563901 0 0 0 0 0.401805933 0 0 0 0 0.0617868498 0 0 0 1 0" type="matrix" in="shadowInnerInner1"></feColorMatrix>
|
||||
</filter>
|
||||
<path d="M162.73752,66.2818224 C158.271217,66.2818224 154.650564,70.0670283 154.650564,74.7363163 C154.650564,79.4056044 158.271217,83.1908103 162.73752,83.1908103 C167.203823,83.1908103 170.824477,79.4056044 170.824477,74.7363163 C170.824477,70.0670283 167.203823,66.2818224 162.73752,66.2818224 Z" id="path-13"></path>
|
||||
<filter x="-24.7%" y="-23.7%" width="149.5%" height="147.3%" filterUnits="objectBoundingBox" id="filter-14">
|
||||
<feGaussianBlur stdDeviation="2" in="SourceAlpha" result="shadowBlurInner1"></feGaussianBlur>
|
||||
<feOffset dx="0" dy="4" in="shadowBlurInner1" result="shadowOffsetInner1"></feOffset>
|
||||
<feComposite in="shadowOffsetInner1" in2="SourceAlpha" operator="arithmetic" k2="-1" k3="1" result="shadowInnerInner1"></feComposite>
|
||||
<feColorMatrix values="0 0 0 0 0.311563901 0 0 0 0 0.401805933 0 0 0 0 0.0617868498 0 0 0 1 0" type="matrix" in="shadowInnerInner1"></feColorMatrix>
|
||||
</filter>
|
||||
<linearGradient x1="50%" y1="15.1929094%" x2="43.5077077%" y2="91.2786664%" id="linearGradient-15">
|
||||
<stop stop-color="#F59A36" offset="0%"></stop>
|
||||
<stop stop-color="#FCCB6D" offset="100%"></stop>
|
||||
</linearGradient>
|
||||
<linearGradient x1="49.9821781%" y1="101.237754%" x2="49.9425633%" y2="5.03998902%" id="linearGradient-16">
|
||||
<stop stop-color="#FFC87C" offset="0%"></stop>
|
||||
<stop stop-color="#FD7A49" offset="100%"></stop>
|
||||
</linearGradient>
|
||||
<linearGradient x1="42.3143683%" y1="18.131572%" x2="69.2971087%" y2="74.6901955%" id="linearGradient-17">
|
||||
<stop stop-color="#FFE066" offset="0%"></stop>
|
||||
<stop stop-color="#FED862" offset="67.0339918%"></stop>
|
||||
<stop stop-color="#FFC565" offset="100%"></stop>
|
||||
</linearGradient>
|
||||
<linearGradient x1="37.3123913%" y1="70.4187755%" x2="57.7534931%" y2="25.1271391%" id="linearGradient-18">
|
||||
<stop stop-color="#FBC758" offset="0%"></stop>
|
||||
<stop stop-color="#FCE188" offset="100%"></stop>
|
||||
</linearGradient>
|
||||
<polygon id="path-19" points="22.4854175 71.1352831 124 111.895386 108.52496 183.11999 -1.44464996e-12 131.484995"></polygon>
|
||||
<filter x="-3.2%" y="-3.6%" width="112.9%" height="114.3%" filterUnits="objectBoundingBox" id="filter-20">
|
||||
<feOffset dx="4" dy="4" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset>
|
||||
<feGaussianBlur stdDeviation="2" in="shadowOffsetOuter1" result="shadowBlurOuter1"></feGaussianBlur>
|
||||
<feColorMatrix values="0 0 0 0 0.925490196 0 0 0 0 0.556862745 0 0 0 0 0.0980392157 0 0 0 1 0" type="matrix" in="shadowBlurOuter1"></feColorMatrix>
|
||||
</filter>
|
||||
<linearGradient x1="38.069149%" y1="33.5367903%" x2="38.069149%" y2="98.1621294%" id="linearGradient-21">
|
||||
<stop stop-color="#FE606D" offset="0%"></stop>
|
||||
<stop stop-color="#FFA2A5" offset="100%"></stop>
|
||||
</linearGradient>
|
||||
<linearGradient x1="60.0817844%" y1="28.2456942%" x2="38.943371%" y2="75.9265148%" id="linearGradient-22">
|
||||
<stop stop-color="#FEDB63" offset="0%"></stop>
|
||||
<stop stop-color="#FEDD73" offset="100%"></stop>
|
||||
</linearGradient>
|
||||
<polygon id="path-23" points="139.297941 70.1779313 248 120.532936 229.699968 185.722682 124 144.005227"></polygon>
|
||||
<filter x="-9.7%" y="-10.4%" width="112.9%" height="113.8%" filterUnits="objectBoundingBox" id="filter-24">
|
||||
<feOffset dx="-4" dy="-4" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset>
|
||||
<feGaussianBlur stdDeviation="2" in="shadowOffsetOuter1" result="shadowBlurOuter1"></feGaussianBlur>
|
||||
<feColorMatrix values="0 0 0 0 0.99518353 0 0 0 0 0.657959601 0 0 0 0 0.222035984 0 0 0 0.663358248 0" type="matrix" in="shadowBlurOuter1"></feColorMatrix>
|
||||
</filter>
|
||||
<linearGradient x1="1.3884147%" y1="42.2427784%" x2="97.6287521%" y2="58.3575504%" id="linearGradient-25">
|
||||
<stop stop-color="#FBDF84" offset="0%"></stop>
|
||||
<stop stop-color="#FEF6DF" offset="20.1427895%"></stop>
|
||||
<stop stop-color="#FFF8E2" offset="75.0762962%"></stop>
|
||||
<stop stop-color="#FBDF84" offset="100%"></stop>
|
||||
</linearGradient>
|
||||
<linearGradient x1="0%" y1="57.7627211%" x2="100%" y2="42.7948807%" id="linearGradient-26">
|
||||
<stop stop-color="#FDDD72" offset="0%"></stop>
|
||||
<stop stop-color="#FEF6DF" offset="20.1427895%"></stop>
|
||||
<stop stop-color="#FFF8E2" offset="75.0762962%"></stop>
|
||||
<stop stop-color="#FEDD71" offset="100%"></stop>
|
||||
</linearGradient>
|
||||
</defs>
|
||||
<g id="APPS_安卓容器_bonund256pt" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
||||
<g id="编组-3备份-3" filter="url(#filter-1)" transform="translate(4.000000, 4.000000)">
|
||||
<polygon id="路径-4" fill="#9F6B00" points="22.4854175 71.1352831 124 39.1781202 124 127.971838 42.4959276 162.72722"></polygon>
|
||||
<polygon id="路径-4" fill="#A16B00" transform="translate(176.849984, 103.805249) scale(-1, 1) translate(-176.849984, -103.805249) " points="124 70.2467832 229.699968 39.246972 229.699968 126.857126 143.556296 168.36355"></polygon>
|
||||
<g id="椭圆形">
|
||||
<use fill="url(#linearGradient-2)" fill-rule="evenodd" xlink:href="#path-3"></use>
|
||||
<use fill="black" fill-opacity="1" filter="url(#filter-4)" xlink:href="#path-3"></use>
|
||||
</g>
|
||||
<g id="椭圆形备份">
|
||||
<use fill="url(#linearGradient-5)" fill-rule="evenodd" xlink:href="#path-6"></use>
|
||||
<use fill="black" fill-opacity="1" filter="url(#filter-7)" xlink:href="#path-6"></use>
|
||||
</g>
|
||||
<g id="编组-2" transform="translate(125.653236, 69.872713) rotate(-9.000000) translate(-125.653236, -69.872713) translate(72.939312, 36.054737)"></g>
|
||||
<g id="形状结合备份-3">
|
||||
<use fill="black" fill-opacity="1" filter="url(#filter-10)" xlink:href="#path-9"></use>
|
||||
<use fill="url(#linearGradient-8)" fill-rule="evenodd" xlink:href="#path-9"></use>
|
||||
</g>
|
||||
<g id="路径">
|
||||
<use fill="#5B8C06" fill-rule="evenodd" xlink:href="#path-11"></use>
|
||||
<use fill="black" fill-opacity="1" filter="url(#filter-12)" xlink:href="#path-11"></use>
|
||||
</g>
|
||||
<g id="路径备份">
|
||||
<use fill="#5B8C06" fill-rule="evenodd" xlink:href="#path-13"></use>
|
||||
<use fill="black" fill-opacity="1" filter="url(#filter-14)" xlink:href="#path-13"></use>
|
||||
</g>
|
||||
<polygon id="路径-4备份" fill="url(#linearGradient-15)" transform="translate(71.995299, 162.885973) scale(-1, 1) translate(-71.995299, -162.885973) " points="20.4301769 118.218419 124 77.7719458 124 192.941695 19.9905981 248"></polygon>
|
||||
<line x1="123.560421" y1="245.912586" x2="124" y2="114.029217" id="路径-7备份" stroke="url(#linearGradient-16)" stroke-width="2.6125" stroke-linecap="round"></line>
|
||||
<polygon id="路径-4备份" fill="url(#linearGradient-17)" points="124 114.029217 231.198465 75.4450395 231.198465 193.553624 124 248"></polygon>
|
||||
<g id="路径-11">
|
||||
<use fill="black" fill-opacity="1" filter="url(#filter-20)" xlink:href="#path-19"></use>
|
||||
<use fill="url(#linearGradient-18)" fill-rule="evenodd" xlink:href="#path-19"></use>
|
||||
</g>
|
||||
<polygon id="路径-3" fill="url(#linearGradient-21)" points="177.791264 92.5327965 178.598476 220.244869 195.622586 211.671682 196.169593 85.4467628"></polygon>
|
||||
<g id="路径-11备份" transform="translate(186.000000, 127.950307) scale(1, -1) translate(-186.000000, -127.950307) ">
|
||||
<use fill="black" fill-opacity="1" filter="url(#filter-24)" xlink:href="#path-23"></use>
|
||||
<use fill="url(#linearGradient-22)" fill-rule="evenodd" xlink:href="#path-23"></use>
|
||||
</g>
|
||||
<path d="M34.8824439,168.349874 L62.2463189,168.831259 C63.6537673,168.856018 64.7885425,169.99145 64.8124889,171.398912 L64.8191082,171.787962 C64.843653,173.230597 63.6940637,174.419981 62.2514286,174.444526 C62.2212993,174.445039 62.1911633,174.44503 62.1610343,174.4445 L34.7971594,173.963116 C33.389711,173.938356 32.2549357,172.802925 32.2309893,171.395463 L32.2243701,171.006413 C32.1998253,169.563778 33.3494146,168.374393 34.7920497,168.349848 C34.822179,168.349336 34.8523149,168.349344 34.8824439,168.349874 Z" id="矩形" fill="#F4E5C3" transform="translate(48.521739, 171.397187) rotate(23.000000) translate(-48.521739, -171.397187) "></path>
|
||||
<path d="M35.6935587,176.218338 L46.7821941,176.425811 C48.1873409,176.452102 49.3199011,177.585307 49.3453919,178.990469 L49.3523188,179.372312 C49.3784889,180.814919 48.2302402,182.005597 46.7876337,182.031767 C46.7555504,182.032349 46.7234591,182.03234 46.6913762,182.03174 L35.6027408,181.824267 C34.197594,181.797976 33.0650338,180.664771 33.039543,179.259609 L33.0326161,178.877766 C33.006446,177.435159 34.1546947,176.24448 35.5973013,176.21831 C35.6293845,176.217728 35.6614758,176.217738 35.6935587,176.218338 Z" id="矩形备份" fill="#F3DA7B" transform="translate(41.192467, 179.125039) rotate(25.000000) translate(-41.192467, -179.125039) "></path>
|
||||
<path d="M22.4854175,71.9306494 L123.120842,113.074543 L22.4854175,71.9306494 Z" id="路径-7" stroke="url(#linearGradient-25)" stroke-width="2.6125" stroke-linecap="round"></path>
|
||||
<line x1="125.563916" y1="112.565642" x2="228.738156" y2="71.9125793" id="路径-7备份-2" stroke="url(#linearGradient-26)" stroke-width="2.6125" stroke-linecap="round"></line>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 15 KiB |
153
build/usr/share/icons/uengine.svg
Normal file
@@ -0,0 +1,153 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<svg width="256px" height="256px" viewBox="0 0 256 256" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<title>APPS_安卓容器_bonund256pt</title>
|
||||
<defs>
|
||||
<filter x="-12.5%" y="-12.5%" width="125.0%" height="125.0%" filterUnits="objectBoundingBox" id="filter-1">
|
||||
<feOffset dx="0" dy="4" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset>
|
||||
<feGaussianBlur stdDeviation="6" in="shadowOffsetOuter1" result="shadowBlurOuter1"></feGaussianBlur>
|
||||
<feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.197982681 0" type="matrix" in="shadowBlurOuter1" result="shadowMatrixOuter1"></feColorMatrix>
|
||||
<feMerge>
|
||||
<feMergeNode in="shadowMatrixOuter1"></feMergeNode>
|
||||
<feMergeNode in="SourceGraphic"></feMergeNode>
|
||||
</feMerge>
|
||||
</filter>
|
||||
<linearGradient x1="58.6019309%" y1="88.1513471%" x2="68.1110327%" y2="11.6551043%" id="linearGradient-2">
|
||||
<stop stop-color="#02DA67" offset="0%"></stop>
|
||||
<stop stop-color="#8DF6D6" offset="100%"></stop>
|
||||
</linearGradient>
|
||||
<path d="M178.25009,95.8175981 C203.764636,95.8175981 224.183124,74.193939 224.183124,47.5198036 C224.183124,20.8456682 203.116891,-0.0263983843 178.25009,0.00161822517 C153.698836,-0.149640967 132.579574,20.8119281 132.579574,47.4860635 C132.579574,74.1601989 152.735544,95.8175981 178.25009,95.8175981 Z" id="path-3"></path>
|
||||
<filter x="-8.7%" y="-8.3%" width="117.5%" height="116.7%" filterUnits="objectBoundingBox" id="filter-4">
|
||||
<feGaussianBlur stdDeviation="6" in="SourceAlpha" result="shadowBlurInner1"></feGaussianBlur>
|
||||
<feOffset dx="0" dy="4" in="shadowBlurInner1" result="shadowOffsetInner1"></feOffset>
|
||||
<feComposite in="shadowOffsetInner1" in2="SourceAlpha" operator="arithmetic" k2="-1" k3="1" result="shadowInnerInner1"></feComposite>
|
||||
<feColorMatrix values="0 0 0 0 0.503096532 0 0 0 0 0.974696063 0 0 0 0 0.762013922 0 0 0 1 0" type="matrix" in="shadowInnerInner1"></feColorMatrix>
|
||||
</filter>
|
||||
<linearGradient x1="63.5172866%" y1="83.8734541%" x2="28.478366%" y2="6.65286784%" id="linearGradient-5">
|
||||
<stop stop-color="#4796FE" offset="0%"></stop>
|
||||
<stop stop-color="#44D9FF" offset="100%"></stop>
|
||||
</linearGradient>
|
||||
<ellipse id="path-6" cx="75.4782609" cy="64.0914576" rx="40.4347826" ry="42.2724698"></ellipse>
|
||||
<filter x="-7.4%" y="-7.1%" width="114.8%" height="114.2%" filterUnits="objectBoundingBox" id="filter-7">
|
||||
<feGaussianBlur stdDeviation="6" in="SourceAlpha" result="shadowBlurInner1"></feGaussianBlur>
|
||||
<feOffset dx="0" dy="0" in="shadowBlurInner1" result="shadowOffsetInner1"></feOffset>
|
||||
<feComposite in="shadowOffsetInner1" in2="SourceAlpha" operator="arithmetic" k2="-1" k3="1" result="shadowInnerInner1"></feComposite>
|
||||
<feColorMatrix values="0 0 0 0 0.658848459 0 0 0 0 0.76869955 0 0 0 0 0.994393611 0 0 0 1 0" type="matrix" in="shadowInnerInner1"></feColorMatrix>
|
||||
</filter>
|
||||
<linearGradient x1="50%" y1="31.0023874%" x2="50%" y2="95.9937487%" id="linearGradient-8">
|
||||
<stop stop-color="#D0FF52" offset="0%"></stop>
|
||||
<stop stop-color="#75EF07" offset="100%"></stop>
|
||||
</linearGradient>
|
||||
<path d="M173.78741,23.8356193 C174.592173,22.5497756 176.286945,22.1597832 177.572789,22.9645469 C178.97904,23.8446691 179.464805,25.6626835 178.684957,27.1269214 L178.684957,27.1269214 L167.998548,47.191447 C186.416883,60.0725236 198.886549,83.3414384 199.457775,110.056847 L199.478261,111.975079 C172.083327,116.233637 151.498347,118.362915 137.72332,118.362915 C122.744723,118.362915 100.199269,116.233637 70.0869565,111.975079 C70.0869565,84.4580366 82.7086518,60.380247 101.56625,47.1917402 L90.8802608,27.1269214 C90.1004123,25.6626835 90.5861775,23.8446691 91.9924283,22.9645469 C93.278272,22.1597832 94.9730442,22.5497756 95.7778079,23.8356193 C95.8117323,23.8898235 95.8437535,23.9451959 95.873813,24.0016352 L106.548653,44.0451766 C115.080463,39.2096532 124.660045,36.497433 134.782609,36.497433 C144.904955,36.497433 154.484343,39.2095367 163.016015,44.0448652 L173.691404,24.0016352 C173.721464,23.9451959 173.753485,23.8898235 173.78741,23.8356193 Z" id="path-9"></path>
|
||||
<filter x="-32.5%" y="-31.3%" width="164.9%" height="187.7%" filterUnits="objectBoundingBox" id="filter-10">
|
||||
<feOffset dx="0" dy="12" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset>
|
||||
<feGaussianBlur stdDeviation="12" in="shadowOffsetOuter1" result="shadowBlurOuter1"></feGaussianBlur>
|
||||
<feColorMatrix values="0 0 0 0 0.565756196 0 0 0 0 0.617813774 0 0 0 0 0 0 0 0 0.5 0" type="matrix" in="shadowBlurOuter1"></feColorMatrix>
|
||||
</filter>
|
||||
<path d="M108.824477,66.2818224 C104.358174,66.2818224 100.73752,70.0670283 100.73752,74.7363163 C100.73752,79.4056044 104.358174,83.1908103 108.824477,83.1908103 C113.290779,83.1908103 116.911433,79.4056044 116.911433,74.7363163 C116.911433,70.0670283 113.290779,66.2818224 108.824477,66.2818224 Z" id="path-11"></path>
|
||||
<filter x="-24.7%" y="-23.7%" width="149.5%" height="147.3%" filterUnits="objectBoundingBox" id="filter-12">
|
||||
<feGaussianBlur stdDeviation="2" in="SourceAlpha" result="shadowBlurInner1"></feGaussianBlur>
|
||||
<feOffset dx="0" dy="4" in="shadowBlurInner1" result="shadowOffsetInner1"></feOffset>
|
||||
<feComposite in="shadowOffsetInner1" in2="SourceAlpha" operator="arithmetic" k2="-1" k3="1" result="shadowInnerInner1"></feComposite>
|
||||
<feColorMatrix values="0 0 0 0 0.311563901 0 0 0 0 0.401805933 0 0 0 0 0.0617868498 0 0 0 1 0" type="matrix" in="shadowInnerInner1"></feColorMatrix>
|
||||
</filter>
|
||||
<path d="M162.73752,66.2818224 C158.271217,66.2818224 154.650564,70.0670283 154.650564,74.7363163 C154.650564,79.4056044 158.271217,83.1908103 162.73752,83.1908103 C167.203823,83.1908103 170.824477,79.4056044 170.824477,74.7363163 C170.824477,70.0670283 167.203823,66.2818224 162.73752,66.2818224 Z" id="path-13"></path>
|
||||
<filter x="-24.7%" y="-23.7%" width="149.5%" height="147.3%" filterUnits="objectBoundingBox" id="filter-14">
|
||||
<feGaussianBlur stdDeviation="2" in="SourceAlpha" result="shadowBlurInner1"></feGaussianBlur>
|
||||
<feOffset dx="0" dy="4" in="shadowBlurInner1" result="shadowOffsetInner1"></feOffset>
|
||||
<feComposite in="shadowOffsetInner1" in2="SourceAlpha" operator="arithmetic" k2="-1" k3="1" result="shadowInnerInner1"></feComposite>
|
||||
<feColorMatrix values="0 0 0 0 0.311563901 0 0 0 0 0.401805933 0 0 0 0 0.0617868498 0 0 0 1 0" type="matrix" in="shadowInnerInner1"></feColorMatrix>
|
||||
</filter>
|
||||
<linearGradient x1="50%" y1="15.1929094%" x2="43.5077077%" y2="91.2786664%" id="linearGradient-15">
|
||||
<stop stop-color="#F59A36" offset="0%"></stop>
|
||||
<stop stop-color="#FCCB6D" offset="100%"></stop>
|
||||
</linearGradient>
|
||||
<linearGradient x1="49.9821781%" y1="101.237754%" x2="49.9425633%" y2="5.03998902%" id="linearGradient-16">
|
||||
<stop stop-color="#FFC87C" offset="0%"></stop>
|
||||
<stop stop-color="#FD7A49" offset="100%"></stop>
|
||||
</linearGradient>
|
||||
<linearGradient x1="42.3143683%" y1="18.131572%" x2="69.2971087%" y2="74.6901955%" id="linearGradient-17">
|
||||
<stop stop-color="#FFE066" offset="0%"></stop>
|
||||
<stop stop-color="#FED862" offset="67.0339918%"></stop>
|
||||
<stop stop-color="#FFC565" offset="100%"></stop>
|
||||
</linearGradient>
|
||||
<linearGradient x1="37.3123913%" y1="70.4187755%" x2="57.7534931%" y2="25.1271391%" id="linearGradient-18">
|
||||
<stop stop-color="#FBC758" offset="0%"></stop>
|
||||
<stop stop-color="#FCE188" offset="100%"></stop>
|
||||
</linearGradient>
|
||||
<polygon id="path-19" points="22.4854175 71.1352831 124 111.895386 108.52496 183.11999 -1.44464996e-12 131.484995"></polygon>
|
||||
<filter x="-3.2%" y="-3.6%" width="112.9%" height="114.3%" filterUnits="objectBoundingBox" id="filter-20">
|
||||
<feOffset dx="4" dy="4" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset>
|
||||
<feGaussianBlur stdDeviation="2" in="shadowOffsetOuter1" result="shadowBlurOuter1"></feGaussianBlur>
|
||||
<feColorMatrix values="0 0 0 0 0.925490196 0 0 0 0 0.556862745 0 0 0 0 0.0980392157 0 0 0 1 0" type="matrix" in="shadowBlurOuter1"></feColorMatrix>
|
||||
</filter>
|
||||
<linearGradient x1="38.069149%" y1="33.5367903%" x2="38.069149%" y2="98.1621294%" id="linearGradient-21">
|
||||
<stop stop-color="#FE606D" offset="0%"></stop>
|
||||
<stop stop-color="#FFA2A5" offset="100%"></stop>
|
||||
</linearGradient>
|
||||
<linearGradient x1="60.0817844%" y1="28.2456942%" x2="38.943371%" y2="75.9265148%" id="linearGradient-22">
|
||||
<stop stop-color="#FEDB63" offset="0%"></stop>
|
||||
<stop stop-color="#FEDD73" offset="100%"></stop>
|
||||
</linearGradient>
|
||||
<polygon id="path-23" points="139.297941 70.1779313 248 120.532936 229.699968 185.722682 124 144.005227"></polygon>
|
||||
<filter x="-9.7%" y="-10.4%" width="112.9%" height="113.8%" filterUnits="objectBoundingBox" id="filter-24">
|
||||
<feOffset dx="-4" dy="-4" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset>
|
||||
<feGaussianBlur stdDeviation="2" in="shadowOffsetOuter1" result="shadowBlurOuter1"></feGaussianBlur>
|
||||
<feColorMatrix values="0 0 0 0 0.99518353 0 0 0 0 0.657959601 0 0 0 0 0.222035984 0 0 0 0.663358248 0" type="matrix" in="shadowBlurOuter1"></feColorMatrix>
|
||||
</filter>
|
||||
<linearGradient x1="1.3884147%" y1="42.2427784%" x2="97.6287521%" y2="58.3575504%" id="linearGradient-25">
|
||||
<stop stop-color="#FBDF84" offset="0%"></stop>
|
||||
<stop stop-color="#FEF6DF" offset="20.1427895%"></stop>
|
||||
<stop stop-color="#FFF8E2" offset="75.0762962%"></stop>
|
||||
<stop stop-color="#FBDF84" offset="100%"></stop>
|
||||
</linearGradient>
|
||||
<linearGradient x1="0%" y1="57.7627211%" x2="100%" y2="42.7948807%" id="linearGradient-26">
|
||||
<stop stop-color="#FDDD72" offset="0%"></stop>
|
||||
<stop stop-color="#FEF6DF" offset="20.1427895%"></stop>
|
||||
<stop stop-color="#FFF8E2" offset="75.0762962%"></stop>
|
||||
<stop stop-color="#FEDD71" offset="100%"></stop>
|
||||
</linearGradient>
|
||||
</defs>
|
||||
<g id="APPS_安卓容器_bonund256pt" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
||||
<g id="编组-3备份-3" filter="url(#filter-1)" transform="translate(4.000000, 4.000000)">
|
||||
<polygon id="路径-4" fill="#9F6B00" points="22.4854175 71.1352831 124 39.1781202 124 127.971838 42.4959276 162.72722"></polygon>
|
||||
<polygon id="路径-4" fill="#A16B00" transform="translate(176.849984, 103.805249) scale(-1, 1) translate(-176.849984, -103.805249) " points="124 70.2467832 229.699968 39.246972 229.699968 126.857126 143.556296 168.36355"></polygon>
|
||||
<g id="椭圆形">
|
||||
<use fill="url(#linearGradient-2)" fill-rule="evenodd" xlink:href="#path-3"></use>
|
||||
<use fill="black" fill-opacity="1" filter="url(#filter-4)" xlink:href="#path-3"></use>
|
||||
</g>
|
||||
<g id="椭圆形备份">
|
||||
<use fill="url(#linearGradient-5)" fill-rule="evenodd" xlink:href="#path-6"></use>
|
||||
<use fill="black" fill-opacity="1" filter="url(#filter-7)" xlink:href="#path-6"></use>
|
||||
</g>
|
||||
<g id="编组-2" transform="translate(125.653236, 69.872713) rotate(-9.000000) translate(-125.653236, -69.872713) translate(72.939312, 36.054737)"></g>
|
||||
<g id="形状结合备份-3">
|
||||
<use fill="black" fill-opacity="1" filter="url(#filter-10)" xlink:href="#path-9"></use>
|
||||
<use fill="url(#linearGradient-8)" fill-rule="evenodd" xlink:href="#path-9"></use>
|
||||
</g>
|
||||
<g id="路径">
|
||||
<use fill="#5B8C06" fill-rule="evenodd" xlink:href="#path-11"></use>
|
||||
<use fill="black" fill-opacity="1" filter="url(#filter-12)" xlink:href="#path-11"></use>
|
||||
</g>
|
||||
<g id="路径备份">
|
||||
<use fill="#5B8C06" fill-rule="evenodd" xlink:href="#path-13"></use>
|
||||
<use fill="black" fill-opacity="1" filter="url(#filter-14)" xlink:href="#path-13"></use>
|
||||
</g>
|
||||
<polygon id="路径-4备份" fill="url(#linearGradient-15)" transform="translate(71.995299, 162.885973) scale(-1, 1) translate(-71.995299, -162.885973) " points="20.4301769 118.218419 124 77.7719458 124 192.941695 19.9905981 248"></polygon>
|
||||
<line x1="123.560421" y1="245.912586" x2="124" y2="114.029217" id="路径-7备份" stroke="url(#linearGradient-16)" stroke-width="2.6125" stroke-linecap="round"></line>
|
||||
<polygon id="路径-4备份" fill="url(#linearGradient-17)" points="124 114.029217 231.198465 75.4450395 231.198465 193.553624 124 248"></polygon>
|
||||
<g id="路径-11">
|
||||
<use fill="black" fill-opacity="1" filter="url(#filter-20)" xlink:href="#path-19"></use>
|
||||
<use fill="url(#linearGradient-18)" fill-rule="evenodd" xlink:href="#path-19"></use>
|
||||
</g>
|
||||
<polygon id="路径-3" fill="url(#linearGradient-21)" points="177.791264 92.5327965 178.598476 220.244869 195.622586 211.671682 196.169593 85.4467628"></polygon>
|
||||
<g id="路径-11备份" transform="translate(186.000000, 127.950307) scale(1, -1) translate(-186.000000, -127.950307) ">
|
||||
<use fill="black" fill-opacity="1" filter="url(#filter-24)" xlink:href="#path-23"></use>
|
||||
<use fill="url(#linearGradient-22)" fill-rule="evenodd" xlink:href="#path-23"></use>
|
||||
</g>
|
||||
<path d="M34.8824439,168.349874 L62.2463189,168.831259 C63.6537673,168.856018 64.7885425,169.99145 64.8124889,171.398912 L64.8191082,171.787962 C64.843653,173.230597 63.6940637,174.419981 62.2514286,174.444526 C62.2212993,174.445039 62.1911633,174.44503 62.1610343,174.4445 L34.7971594,173.963116 C33.389711,173.938356 32.2549357,172.802925 32.2309893,171.395463 L32.2243701,171.006413 C32.1998253,169.563778 33.3494146,168.374393 34.7920497,168.349848 C34.822179,168.349336 34.8523149,168.349344 34.8824439,168.349874 Z" id="矩形" fill="#F4E5C3" transform="translate(48.521739, 171.397187) rotate(23.000000) translate(-48.521739, -171.397187) "></path>
|
||||
<path d="M35.6935587,176.218338 L46.7821941,176.425811 C48.1873409,176.452102 49.3199011,177.585307 49.3453919,178.990469 L49.3523188,179.372312 C49.3784889,180.814919 48.2302402,182.005597 46.7876337,182.031767 C46.7555504,182.032349 46.7234591,182.03234 46.6913762,182.03174 L35.6027408,181.824267 C34.197594,181.797976 33.0650338,180.664771 33.039543,179.259609 L33.0326161,178.877766 C33.006446,177.435159 34.1546947,176.24448 35.5973013,176.21831 C35.6293845,176.217728 35.6614758,176.217738 35.6935587,176.218338 Z" id="矩形备份" fill="#F3DA7B" transform="translate(41.192467, 179.125039) rotate(25.000000) translate(-41.192467, -179.125039) "></path>
|
||||
<path d="M22.4854175,71.9306494 L123.120842,113.074543 L22.4854175,71.9306494 Z" id="路径-7" stroke="url(#linearGradient-25)" stroke-width="2.6125" stroke-linecap="round"></path>
|
||||
<line x1="125.563916" y1="112.565642" x2="228.738156" y2="71.9125793" id="路径-7备份-2" stroke="url(#linearGradient-26)" stroke-width="2.6125" stroke-linecap="round"></line>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 15 KiB |
@@ -0,0 +1,21 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE policyconfig PUBLIC
|
||||
"-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN"
|
||||
"http://www.freedesktop.org/standards/PolicyKit/1/policyconfig.dtd">
|
||||
<policyconfig>
|
||||
<vendor>gfdgd xi</vendor>
|
||||
<vendor_url>https://gitee.com/gfdgd-xi/uengine-runner/</vendor_url>
|
||||
<action id="com.deepin.pkexec.apt">
|
||||
<message>Authentication is required to Install or Reinstall Program</message>
|
||||
<message xml:lang="zh_CN">安装或卸载软件需要输入密码</message>
|
||||
<icon_name>preferences-system</icon_name>
|
||||
<defaults>
|
||||
<allow_any>no</allow_any>
|
||||
<allow_inactive>no</allow_inactive>
|
||||
<allow_active>auth_admin_keep</allow_active>
|
||||
</defaults>
|
||||
<annotate key="org.freedesktop.policykit.exec.path">/usr/bin/apt</annotate>
|
||||
<annotate key="org.freedesktop.policykit.exec.allow_gui">true</annotate>
|
||||
</action>
|
||||
|
||||
</policyconfig>
|
||||
@@ -0,0 +1,21 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE policyconfig PUBLIC
|
||||
"-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN"
|
||||
"http://www.freedesktop.org/standards/PolicyKit/1/policyconfig.dtd">
|
||||
<policyconfig>
|
||||
<vendor>gfdgd xi</vendor>
|
||||
<vendor_url>https://gitee.com/gfdgd-xi/uengine-runner/</vendor_url>
|
||||
<action id="com.deepin.pkexec.installscrcpy">
|
||||
<message>Authentication is required to Install Scrcpy</message>
|
||||
<message xml:lang="zh_CN">安装 Scrcpy 需要输入密码</message>
|
||||
<icon_name>preferences-system</icon_name>
|
||||
<defaults>
|
||||
<allow_any>no</allow_any>
|
||||
<allow_inactive>no</allow_inactive>
|
||||
<allow_active>auth_admin_keep</allow_active>
|
||||
</defaults>
|
||||
<annotate key="org.freedesktop.policykit.exec.path">/tmp/uengine-runner/InstallScrcpy.sh</annotate>
|
||||
<annotate key="org.freedesktop.policykit.exec.allow_gui">true</annotate>
|
||||
</action>
|
||||
|
||||
</policyconfig>
|
||||
@@ -8,7 +8,7 @@
|
||||
<action id="com.deepin.pkexec.uengine-bridge">
|
||||
<message>Authentication is required to Setting UEngine Internet Bridge</message>
|
||||
<message xml:lang="zh_CN">设置 UEngine 桥接需要输入密码</message>
|
||||
<icon_name>kbox</icon_name>
|
||||
<icon_name>uengine</icon_name>
|
||||
<defaults>
|
||||
<allow_any>no</allow_any>
|
||||
<allow_inactive>no</allow_inactive>
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
<action id="com.deepin.pkexec.uengine-session-launch-helper">
|
||||
<message>Authentication is required to Change UEngine</message>
|
||||
<message xml:lang="zh_CN">设置 UEngine 需要输入密码</message>
|
||||
<icon_name>kbox</icon_name>
|
||||
<icon_name>uengine</icon_name>
|
||||
<defaults>
|
||||
<allow_any>no</allow_any>
|
||||
<allow_inactive>no</allow_inactive>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
"https://gitee.com/gfdgd-xi/uengine-runner",
|
||||
"https://github.com/gfdgd-xi/uengine-runner"
|
||||
],
|
||||
"Version": "1.4.2",
|
||||
"Version": "1.5.1",
|
||||
"System": "Linux(deepin/UOS)",
|
||||
"Tips": [
|
||||
"更多可见:https://gitee.com/gfdgd-xi/uengine-runner/wikis",
|
||||
@@ -26,6 +26,27 @@
|
||||
"4、如果想要使用adb连接UEngine或其他手机,请使用 1.2.0 以前的版本。(如需连接UEngine请安装adb补丁)"
|
||||
],
|
||||
"Update": [
|
||||
"V1.5.1:",
|
||||
"※1、精简用户界面,合并安装和卸载输入框和浏览按钮等",
|
||||
"※2、修复安装以其的程序图标无法点击进入的问题(deepin 社区版不存在此问题)",
|
||||
"※3、支持在程序本体反馈问题",
|
||||
"4、修复了菜单栏的部分显示问题",
|
||||
"5、支持显示 apk 的部分信息",
|
||||
"6、支持删除 UEngine 程序运行检查以及重新安装 UEngine 的功能",
|
||||
"7、自带有跳过家庭版必须有指定包名才能运行程序限制的脚本",
|
||||
"8、补回依赖包“adb”",
|
||||
"",
|
||||
"V1.5.0:",
|
||||
"※1、部分窗口支持英语",
|
||||
"2、修复在英语状态下启动器图标名称异常的问题",
|
||||
"",
|
||||
"V1.4.3:",
|
||||
"※1、支持打包器打包的包名带前缀“uengine-dc”",
|
||||
"※2、修复了两种情况可能导致程序卡住/出错无法继续运行的情况(配置文件夹不齐全和获取版本信息卡住两种情况)",
|
||||
"※3、修改了 UEngine 打包器打包的应用包名可能有大写的情况",
|
||||
"4、支持一键使用 Scrcpy 连接 UEngine(①先安装 adb 破解补丁;②请确保是使用snap安装的 Scrcpy【目前只支持 snap 安装的 Scrcpy 进行连接】)",
|
||||
"5、支持右键打包 apk",
|
||||
"",
|
||||
"V1.4.2:",
|
||||
"※1、添加adb破解补丁(用于可以让adb连接UEngine)并支持adb的部分操作;",
|
||||
"2、菜单栏的项目添加以及外观优化;",
|
||||
|
||||
605
main.py
@@ -2,11 +2,11 @@
|
||||
# 使用系统默认的 python3 运行
|
||||
###########################################################################################
|
||||
# 作者:gfdgd xi<3025613752@qq.com>
|
||||
# 版本:1.4.0
|
||||
# 更新时间:2021年8月26日
|
||||
# 版本:1.5.1
|
||||
# 更新时间:2021年10月05日(国庆了)
|
||||
# 感谢:anbox、deepin 和 UOS
|
||||
# 基于 Python3 的 tkinter 构建
|
||||
# 更新:actionchen<917981399@qq.com>
|
||||
# 更新:gfdgd xi<3025613752@qq.com>、actionchen<917981399@qq.com>
|
||||
###########################################################################################
|
||||
#################
|
||||
# 引入所需的库
|
||||
@@ -22,6 +22,8 @@ import threading
|
||||
import ttkthemes
|
||||
import webbrowser
|
||||
import subprocess
|
||||
import PIL.Image as Image
|
||||
import PIL.ImageTk as ImageTk
|
||||
import tkinter as tk
|
||||
import tkinter.ttk as ttk
|
||||
import tkinter.messagebox as messagebox
|
||||
@@ -39,37 +41,38 @@ def UninstallProgram(package: "apk 包名")->"卸载程序":
|
||||
os.remove("{}/.local/share/applications/{}.desktop".format(get_home(), package))
|
||||
if os.path.exists("{}/{}.desktop".format(get_desktop_path(), package)):
|
||||
os.remove("{}/{}.desktop".format(get_desktop_path(), package))
|
||||
fineUninstallApkHistory.append(ComboUninstallPath.get())
|
||||
ComboUninstallPath['value'] = fineUninstallApkHistory
|
||||
write_txt(get_home() + "/.config/uengine-runner/FindUninstallApkHistory.json", str(json.dumps(ListToDictionary(fineUninstallApkHistory)))) # 将历史记录的数组转换为字典并写入
|
||||
findApkHistory.append(ComboInstallPath.get())
|
||||
ComboInstallPath['value'] = findApkHistory
|
||||
write_txt(get_home() + "/.config/uengine-runner/FindApkHistory.json", str(json.dumps(ListToDictionary(findApkHistory)))) # 将历史记录的数组转换为字典并写入
|
||||
messagebox.showinfo(message="操作执行完毕!", title="提示")
|
||||
DisabledAndEnbled(False)
|
||||
return Return
|
||||
except:
|
||||
traceback.print_exc()
|
||||
messagebox.showerror(title="错误", message=traceback.format_exc())
|
||||
DisabledAndEnbled(False)
|
||||
|
||||
# 卸载文本框的浏览按钮事件
|
||||
def BtnFindUninstallApkClk():
|
||||
path = filedialog.askopenfilename(title="选择 Apk", filetypes=[("APK 文件", "*.apk"), ("所有文件", "*.*")], initialdir=json.loads(readtxt(get_home() + "/.config/uengine-runner/FindUninstallApk.json"))["path"])
|
||||
if path != "" and path != "()":
|
||||
try:
|
||||
ComboUninstallPath.set(path)
|
||||
write_txt(get_home() + "/.config/uengine-runner/FindUninstallApk.json", json.dumps({"path": os.path.dirname(path)})) # 写入配置文件
|
||||
except:
|
||||
pass
|
||||
#def BtnFindUninstallApkClk():
|
||||
# path = filedialog.askopenfilename(title="选择 Apk", filetypes=[("APK 文件", "*.apk"), ("所有文件", "*.*")], initialdir=json.loads(readtxt(get_home() + "/.config/uengine-runner/FindUninstallApk.json"))["path"])
|
||||
# if path != "" and path != "()":
|
||||
# try:
|
||||
# ComboUninstallPath.set(path)
|
||||
# write_txt(get_home() + "/.config/uengine-runner/FindUninstallApk.json", json.dumps({"path": os.path.dirname(path)})) # 写入配置文件
|
||||
# except:
|
||||
# pass
|
||||
|
||||
# 卸载按钮事件
|
||||
def ButtonClick8():
|
||||
if ComboUninstallPath.get() is "":
|
||||
if ComboInstallPath.get() is "":
|
||||
messagebox.showerror(title="提示", message="信息没有填写完整,无法继续卸载 APK")
|
||||
return
|
||||
DisabledAndEnbled(True)
|
||||
if os.path.exists(ComboUninstallPath.get()):
|
||||
path = GetApkPackageName(ComboUninstallPath.get())
|
||||
if os.path.exists(ComboInstallPath.get()):
|
||||
path = GetApkPackageName(ComboInstallPath.get())
|
||||
else:
|
||||
path = ComboUninstallPath.get()
|
||||
UninstallProgram(path)
|
||||
messagebox.showinfo(message="操作执行完毕!", title="提示")
|
||||
DisabledAndEnbled(False)
|
||||
path = ComboInstallPath.get()
|
||||
threading.Thread(target=UninstallProgram, args=[path]).start()
|
||||
|
||||
# 浏览窗口
|
||||
# temp strs
|
||||
@@ -88,8 +91,8 @@ def FindApk()->"浏览窗口":
|
||||
|
||||
# 安装按钮事件
|
||||
def Button3Install():
|
||||
if ComboInstallPath.get() is "":
|
||||
messagebox.showerror(title="提示", message="信息没有填写完整,无法继续安装 APK")
|
||||
if ComboInstallPath.get() is "" or not os.path.exists(ComboInstallPath.get()):
|
||||
messagebox.showerror(title="提示", message="信息没有填写完整或错误,无法继续安装 APK")
|
||||
return
|
||||
DisabledAndEnbled(True)
|
||||
threading.Thread(target=InstallApk, args=(ComboInstallPath.get(),)).start()
|
||||
@@ -99,7 +102,7 @@ def InstallApk(path: "apk 路径", quit: "是否静默安装" = False):
|
||||
try:
|
||||
if not os.path.exists("{}/.local/share/applications/uengine/".format(get_home())):
|
||||
print("Mkdir")
|
||||
os.mkdir("{}/.local/share/applications/uengine/".format(get_home()))
|
||||
os.makedirs("{}/.local/share/applications/uengine/".format(get_home()))
|
||||
print("start install apk")
|
||||
global findApkHistory
|
||||
commandReturn = GetCommandReturn("pkexec /usr/bin/uengine-session-launch-helper -- uengine install --apk='{}'".format(path))
|
||||
@@ -136,14 +139,16 @@ def DisabledAndEnbled(choose: "启动或者禁用")->"禁用或启动所有控
|
||||
userChoose = {True: tk.DISABLED, False: tk.NORMAL}
|
||||
a = userChoose[choose]
|
||||
ComboInstallPath.configure(state=a)
|
||||
ComboUninstallPath.configure(state=a)
|
||||
#ComboUninstallPath.configure(state=a)
|
||||
BtnFindApk.configure(state=a)
|
||||
BtnInstall.configure(state=a)
|
||||
BtnShowUengineApp.configure(state=a)
|
||||
BtnUninstallApkBrowser.configure(state=a)
|
||||
#BtnUninstallApkBrowser.configure(state=a)
|
||||
BtnUninstall.configure(state=a)
|
||||
Btngeticon.configure(state=a)
|
||||
BtnSaveApk.configure(state=a)
|
||||
BtnApkInformation.configure(state=a)
|
||||
LabApkPath.configure(state=a)
|
||||
|
||||
# 需引入 subprocess
|
||||
# 运行系统命令并获取返回值
|
||||
@@ -151,33 +156,39 @@ def GetCommandReturn(cmd: "命令")->"运行系统命令并获取返回值":
|
||||
# cmd 是要获取输出的命令
|
||||
return subprocess.getoutput(cmd)
|
||||
|
||||
def GetSystemVersion():
|
||||
systemInformation = readtxt("/etc/os-release")
|
||||
for systemInformation in systemInformation.split('\n'):
|
||||
if "PRETTY_NAME=" in systemInformation:
|
||||
return systemInformation.replace("PRETTY_NAME=", "").replace('"', '')
|
||||
|
||||
# 打开所有窗口事件
|
||||
def Button5Click():
|
||||
threading.Thread(target=OpenUengineProgramList).start()
|
||||
|
||||
# 打开“uengine 所有程序列表”
|
||||
def OpenUengineProgramList()->"打开“uengine 所有程序列表”":
|
||||
os.system("/usr/bin/uengine-launch.sh --package=org.anbox.appmgr --component=org.anbox.appmgr.AppViewActivity")
|
||||
os.system("uengine launch --package=org.anbox.appmgr --component=org.anbox.appmgr.AppViewActivity")
|
||||
|
||||
# 显示“关于这个程序”窗口
|
||||
def about_this_program()->"显示“关于这个程序”窗口":
|
||||
global about
|
||||
global title
|
||||
global iconPath
|
||||
mess = tk.Toplevel()
|
||||
message = ttk.Frame(mess)
|
||||
mess.resizable(0, 0)
|
||||
mess.title("关于 {}".format(title))
|
||||
#mess.iconphoto(False, tk.PhotoImage(file=iconPath))
|
||||
img = ImageTk.PhotoImage(Image.open(iconPath))
|
||||
LabApkPath = ttk.Label(message, image=img)
|
||||
label2 = ttk.Label(message, text=about)
|
||||
button1 = ttk.Button(message, text="确定", command=mess.withdraw)
|
||||
LabApkPath.pack()
|
||||
label2.pack()
|
||||
button1.pack(side="bottom")
|
||||
message.pack()
|
||||
mess.mainloop()
|
||||
#def about_this_program()->"显示“关于这个程序”窗口":
|
||||
# global about
|
||||
# global title
|
||||
# global iconPath
|
||||
# mess = tk.Toplevel()
|
||||
# message = ttk.Frame(mess)
|
||||
# mess.resizable(0, 0)
|
||||
# mess.title("关于 {}".format(title))
|
||||
# #mess.iconphoto(False, tk.PhotoImage(file=iconPath))
|
||||
# img = ImageTk.PhotoImage(Image.open(iconPath))
|
||||
# LabApkPath = ttk.Label(message, image=img)
|
||||
# label2 = ttk.Label(message, text=about)
|
||||
# button1 = ttk.Button(message, text="确定", command=mess.withdraw)
|
||||
# LabApkPath.pack()
|
||||
# label2.pack()
|
||||
# button1.pack(side="bottom")
|
||||
# message.pack()
|
||||
# mess.mainloop()
|
||||
|
||||
# 显示“提示”窗口
|
||||
def helps()->"显示“提示”窗口":
|
||||
@@ -211,6 +222,10 @@ def CleanProgramHistory()->"清理历史记录":
|
||||
def get_home()->"获取用户主目录":
|
||||
return os.path.expanduser('~')
|
||||
|
||||
# 获取当前语言
|
||||
def get_now_lang()->"获取当前语言":
|
||||
return os.getenv('LANG')
|
||||
|
||||
# 发送“启动 uengine 所有程序”的 .desktop 文件到桌面
|
||||
def SendUengineAndroidListForDesktop()->"发送“启动 uengine 所有程序”的 .desktop 文件到桌面":
|
||||
global desktop
|
||||
@@ -320,7 +335,7 @@ def BuildUengineDesktop(packageName: "软件包名", activityName: "activity", s
|
||||
things = '''[Desktop Entry]
|
||||
Categories=app;
|
||||
Encoding=UTF-8
|
||||
Exec=/usr/bin/uengine-launch.sh --action=android.intent.action.MAIN --package={} --component={}
|
||||
Exec=uengine launch --action=android.intent.action.MAIN --package={} --component={}
|
||||
GenericName={}
|
||||
Icon={}
|
||||
MimeType=
|
||||
@@ -454,61 +469,19 @@ def UengineRestart()->"重启 uengine 服务":
|
||||
os.system("systemctl restart uengine*")
|
||||
DisabledAndEnbled(False)
|
||||
|
||||
# 运行命令的窗口
|
||||
class InstallWindow():
|
||||
# 显示窗口
|
||||
def ShowWindows(command):
|
||||
global message
|
||||
global text
|
||||
global installTipsText
|
||||
global progressbar
|
||||
message = tk.Toplevel()
|
||||
message.iconphoto(False, tk.PhotoImage(file=iconPath))
|
||||
messageFrame = ttk.Frame(message)
|
||||
installTipsText = tk.StringVar()
|
||||
message.title("正在操作……")
|
||||
installTipsText.set("正在操作……")
|
||||
installTips = ttk.Label(messageFrame, textvariable=installTipsText)
|
||||
progressbar = ttk.Progressbar(messageFrame, length=500, mode='indeterminate')
|
||||
text = tk.Text(messageFrame)
|
||||
text.config(background="black", foreground="white")
|
||||
installTips.pack()
|
||||
progressbar.pack(fill="x")
|
||||
text.pack(expand='yes', fill='both')
|
||||
messageFrame.pack(expand='yes', fill='both')
|
||||
print("Run!")
|
||||
threading.Thread(target=InstallWindow.RunCommand, args=[command]).start()
|
||||
message.mainloop()
|
||||
|
||||
# 运行命令并显示
|
||||
def RunCommand(command):
|
||||
global message
|
||||
global text
|
||||
global progressbar
|
||||
global installTipsText
|
||||
InstallWindow.AddText("$>" + command + "\n")
|
||||
progressbar.start()
|
||||
result = subprocess.getoutput(command)
|
||||
InstallWindow.AddText(result)
|
||||
messagebox.showinfo(title="提示", message="操作完毕!")
|
||||
installTipsText.set("操作完毕!")
|
||||
message.title("操作完毕!")
|
||||
progressbar.stop()
|
||||
progressbar["value"] = 100
|
||||
# 特意添加!
|
||||
DisabledAndEnbled(False)
|
||||
print("Clean!")
|
||||
if messagebox.askyesno(title="提示", message="清空完毕,将会在重启后生效,是否要重启?"):
|
||||
print("reboot")
|
||||
os.system("reboot")
|
||||
|
||||
# 添加文本
|
||||
def AddText(things):
|
||||
global text
|
||||
text.configure(state=tk.NORMAL)
|
||||
text.insert("end", things)
|
||||
text.configure(state=tk.DISABLED)
|
||||
|
||||
def ScrcpyConnectUengine():
|
||||
if os.path.exists("/snap/bin/scrcpy"):
|
||||
threading.Thread(target=os.system, args=["/snap/bin/scrcpy -s '192.168.250.2:5555'"]).start()
|
||||
return
|
||||
if messagebox.askyesno(title="提示", message="你没有安装Scrcpy(指使用Snap安装),\n如果你使用了其他方法安装了Scrcpy,可以输入命令“scrcpy -s '192.168.250.2:5555'”,\n是否现在要使用Snap安装Scrcpy?"):
|
||||
if not os.path.exists("/tmp/uengine-runner"):
|
||||
os.makedirs("/tmp/uengine-runner")
|
||||
write_txt("/tmp/uengine-runner/InstallScrcpy.sh", '''#!/bin/bash
|
||||
sudo apt install snapd -y
|
||||
sudo snap refresh
|
||||
sudo snap install scrcpy''')
|
||||
threading.Thread(target=InstallWindow.ShowWindows, args=["chmod 777 /tmp/uengine-runner/InstallScrcpy.sh -Rv && pkexec /tmp/uengine-runner/InstallScrcpy.sh"]).start()
|
||||
return
|
||||
|
||||
# 获取用户桌面目录
|
||||
def get_desktop_path()->"获取用户桌面目录":
|
||||
@@ -545,6 +518,14 @@ def SaveInstallUengineApp():
|
||||
traceback.print_exc()
|
||||
messagebox.showerror(title="错误", message=traceback.format_exc())
|
||||
|
||||
def UengineCheckCpu():
|
||||
english = GetCommandReturn("uengine check-features")
|
||||
#chinese = GetCommandReturn("trans -b \"{}\"".format(english)) # 获取中文翻译
|
||||
#for i in chinese.split("\n"): # 删除提示
|
||||
# if "Did you mean:" in i:
|
||||
# chinese = chinese.replace(i, "").replace("\n", "")
|
||||
messagebox.showinfo(title="提示", message="{}".format(english))
|
||||
|
||||
# 获取用户主目录
|
||||
def get_home()->"获取用户主目录":
|
||||
return os.path.expanduser('~')
|
||||
@@ -554,7 +535,7 @@ def CleanAllUengineDesktopLink():
|
||||
if messagebox.askokcancel(title="提示", message="你确定要删除所有的 UEngine 应用快捷方式吗?"):
|
||||
try:
|
||||
shutil.rmtree("{}/.local/share/applications/uengine".format(get_home()))
|
||||
os.mkdir("{}/.local/share/applications/uengine".format(get_home()))
|
||||
os.makedirs("{}/.local/share/applications/uengine".format(get_home()))
|
||||
messagebox.showinfo(title="提示", message="删除完毕!")
|
||||
except:
|
||||
traceback.print_exc()
|
||||
@@ -583,7 +564,7 @@ def AdbCPUAndRAWShowInTer():
|
||||
threading.Thread(target=os.system, args=["deepin-terminal -w ~ -e 'adb -s 192.168.250.2:5555 shell top'"]).start()
|
||||
|
||||
def UengineSettingShow():
|
||||
threading.Thread(target=os.system, args=["/usr/bin/uengine-launch.sh --action=android.intent.action.MAIN --package=com.android.settings --component=com.android.settings.Settings"]).start()
|
||||
threading.Thread(target=os.system, args=["/usr/bin/uengine launch --action=android.intent.action.MAIN --package=com.android.settings --component=com.android.settings.Settings"]).start()
|
||||
|
||||
# 杀死 adb 进程
|
||||
def AdbKillAdbProgress():
|
||||
@@ -600,6 +581,16 @@ def AdbStartServer():
|
||||
os.system("adb start-server")
|
||||
messagebox.showinfo(title="提示", message="完成!")
|
||||
|
||||
def ReinstallUengine():
|
||||
threading.Thread(target=os.system, args=["deepin-terminal -C 'pkexec apt reinstall uengine uengine-android-image uengine-modules-dkms -y && notify-send -i uengine \"安装完毕!\"'"]).start()
|
||||
|
||||
def DelUengineCheck():
|
||||
if not os.path.exists("/usr/share/uengine/uengine-check-runnable.sh"):
|
||||
messagebox.showinfo(title="提示", message="本功能已经被删除,无法重复删除!")
|
||||
return
|
||||
if messagebox.askokcancel(title="警告", message="删除后将无法使用本软件恢复\n如果需要恢复本功能,请重新安装 UEngine!"):
|
||||
threading.Thread(target=InstallWindow.ShowWindows, args=["pkexec rm -v /usr/share/uengine/uengine-check-runnable.sh"]).start()
|
||||
|
||||
# 使用 adb 连接 uengine
|
||||
def UengineConnectAdb():
|
||||
messagebox.showinfo(title="提示", message=subprocess.getoutput("adb connect 192.168.250.2:5555"))
|
||||
@@ -619,6 +610,9 @@ def UengineDoNotUseAdb():
|
||||
return
|
||||
threading.Thread(target=os.system, args=["pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY {}/uengine-useadb 1".format(programPath)]).start()
|
||||
|
||||
def UengineRunnerBugUpload():
|
||||
threading.Thread(target=os.system, args=[programPath + "/uengine-runner-update-bug"]).start()
|
||||
|
||||
def AdbConnectDeviceShow():
|
||||
ShowTextTipsWindow.ShowWindow(subprocess.getoutput("adb devices -l"))
|
||||
|
||||
@@ -632,6 +626,185 @@ def AdbAndroidInstallAppList():
|
||||
subprocess.getoutput("adb -s 192.168.250.2:5555 shell pm list package -3"),
|
||||
subprocess.getoutput("adb -s 192.168.250.2:5555 shell pm list packages -f")))
|
||||
|
||||
def GetApkVersion(apkFilePath):
|
||||
info = GetApkInformation(apkFilePath)
|
||||
for line in info.split('\n'):
|
||||
if "package:" in line:
|
||||
if "compileSdkVersion='" in line:
|
||||
line = line.replace(line[line.index("compileSdkVersion='"): -1], "")
|
||||
if "platform" in line:
|
||||
line = line.replace(line[line.index("platform"): -1], "")
|
||||
line = line.replace(line[0: line.index("versionName='")], "")
|
||||
line = line.replace("versionName='", "")
|
||||
line = line.replace("'", "")
|
||||
line = line.replace(" ", "")
|
||||
return line
|
||||
|
||||
class ApkInformation():
|
||||
def ShowWindows():
|
||||
global fullInformation
|
||||
global path
|
||||
global tab1
|
||||
path = ComboInstallPath.get()
|
||||
|
||||
message = tk.Toplevel()
|
||||
|
||||
tab = ttk.Notebook(message)
|
||||
|
||||
tab1 = ttk.Frame(message)
|
||||
tab2 = ttk.Frame(message)
|
||||
|
||||
fullInformation = tk.Text(tab2)
|
||||
|
||||
tab.add(tab1, text="简化版")
|
||||
tab.add(tab2, text="完整版")
|
||||
|
||||
fullInformation.pack(expand="yes", fill="both")
|
||||
|
||||
tab.pack(expand="yes", fill="both")
|
||||
|
||||
threading.Thread(target=ApkInformation.GetInformation).start()
|
||||
|
||||
message.mainloop()
|
||||
|
||||
def GetInformation():
|
||||
# 获取详细信息
|
||||
fullInformation.configure(state=tk.NORMAL)
|
||||
fullInformation.insert("1.0", GetApkInformation(path))
|
||||
fullInformation.configure(state=tk.DISABLED)
|
||||
# 获取图标
|
||||
SaveApkIcon(path, "/tmp/uengine-runner-android-app-icon.png")
|
||||
# 读取图标
|
||||
image = Image.open("/tmp/uengine-runner-android-app-icon.png")
|
||||
if image.size[0] + image.size[1] <= 512:
|
||||
ttk.Label(tab1, image=ImageTk.PhotoImage(image)).pack()
|
||||
else:
|
||||
ttk.Label(tab1, image=ImageTk.PhotoImage(image.resize((256, 256), Image.ANTIALIAS))).pack()
|
||||
info = '''包名:{}
|
||||
中文名:{}
|
||||
Activity:{}
|
||||
版本:{}'''.format(GetApkPackageName(path), GetApkChineseLabel(path), GetApkActivityName(path), GetApkVersion(path))
|
||||
ttk.Label(tab1, text=info).pack()
|
||||
|
||||
|
||||
class AdbChangeUengineDisplaySize():
|
||||
def ShowWindows():
|
||||
global displayX
|
||||
global displayY
|
||||
global displaySize
|
||||
message = tk.Toplevel()
|
||||
messageFrame = ttk.Frame(message)
|
||||
|
||||
displaySize = tk.StringVar()
|
||||
displaySize.set("当前 UEngine 屏幕分辨率:正在获取")
|
||||
|
||||
displaySizeLabel = ttk.Label(messageFrame, textvariable=displaySize)
|
||||
|
||||
input = ttk.Frame(messageFrame)
|
||||
displayX = ttk.Entry(input)
|
||||
displayY = ttk.Entry(input)
|
||||
|
||||
settingBUtton = ttk.Button(messageFrame, text="设置分辨率", command=AdbChangeUengineDisplaySize.SettingDisplaySize)
|
||||
|
||||
message.title("修改 UEngine 分辨率")
|
||||
message.resizable(0, 0)
|
||||
message.iconphoto(False, tk.PhotoImage(file=iconPath))
|
||||
# get screen width and height
|
||||
screen_width = message.winfo_screenwidth()
|
||||
screen_height = message.winfo_screenheight()
|
||||
# calculate position x and y coordinates 假设主窗口大小固定 570x236像素 ,设置窗口位置为屏幕中心。
|
||||
winwith=570
|
||||
winhigh=236
|
||||
x = (screen_width/2) - (winwith/2)
|
||||
y = (screen_height/2) - (winhigh/2)
|
||||
message.geometry("+{}+{}".format(int(x), int(y)))
|
||||
|
||||
displayX.grid(row=0, column=0)
|
||||
displayY.grid(row=0, column=1)
|
||||
|
||||
displaySizeLabel.grid(row=0, column=0)
|
||||
input.grid(row=1, column=0)
|
||||
settingBUtton.grid(row=2, column=0)
|
||||
|
||||
messageFrame.pack()
|
||||
threading.Thread(target=AdbChangeUengineDisplaySize.GetUengineDisplaySize).start()
|
||||
message.mainloop()
|
||||
|
||||
def GetUengineDisplaySize():
|
||||
global displaySize
|
||||
displaySize.set("当前 UEngine 屏幕分辨率:\n" + subprocess.getoutput("adb -s '192.168.250.2:5555' shell wm size"))
|
||||
#displaySize.set(subprocess.getoutput("adb -s '192.168.250.2:5555' shell wm size"))
|
||||
|
||||
def SettingDisplaySize():
|
||||
global displayX
|
||||
global displayY
|
||||
try:
|
||||
int(displayX.get())
|
||||
int(displayY.get())
|
||||
except:
|
||||
messagebox.showerror(title="错误", message="你输入的数值不正确!")
|
||||
return
|
||||
os.system("adb -s '192.168.250.2:5555' shell wm size {}x{}".format(displayX.get(), displayY.get()))
|
||||
AdbChangeUengineDisplaySize.GetUengineDisplaySize()
|
||||
messagebox.showinfo(title="提示", message="执行完毕!")
|
||||
|
||||
# 运行命令的窗口
|
||||
class InstallWindow():
|
||||
# 显示窗口
|
||||
def ShowWindows(command):
|
||||
global message
|
||||
global text
|
||||
global installTipsText
|
||||
global progressbar
|
||||
global runCommand
|
||||
message = tk.Toplevel()
|
||||
message.iconphoto(False, tk.PhotoImage(file=iconPath))
|
||||
messageFrame = ttk.Frame(message)
|
||||
installTipsText = tk.StringVar()
|
||||
message.title("正在操作……")
|
||||
installTipsText.set("正在操作……")
|
||||
installTips = ttk.Label(messageFrame, textvariable=installTipsText)
|
||||
progressbar = ttk.Progressbar(messageFrame, length=500, mode='indeterminate')
|
||||
text = tk.Text(messageFrame)
|
||||
text.config(background="black", foreground="white")
|
||||
installTips.pack()
|
||||
progressbar.pack(fill="x")
|
||||
text.pack(expand='yes', fill='both')
|
||||
messageFrame.pack(expand='yes', fill='both')
|
||||
print("Run!")
|
||||
threading.Thread(target=InstallWindow.RunCommand, args=[command]).start()
|
||||
message.mainloop()
|
||||
|
||||
# 运行命令并显示
|
||||
def RunCommand(command):
|
||||
global message
|
||||
global text
|
||||
global progressbar
|
||||
global installTipsText
|
||||
InstallWindow.AddText("$>" + command + "\n")
|
||||
progressbar.start()
|
||||
result = subprocess.getoutput(command)
|
||||
InstallWindow.AddText(result)
|
||||
messagebox.showinfo(title="提示", message="操作完毕!")
|
||||
installTipsText.set("操作完毕!")
|
||||
message.title("操作完毕!")
|
||||
progressbar.stop()
|
||||
progressbar["value"] = 100
|
||||
# 特意添加!
|
||||
DisabledAndEnbled(False)
|
||||
if command == "pkexec rm -rfv /data/uengine":
|
||||
print("Clean!")
|
||||
if messagebox.askyesno(title="提示", message="清空完毕,将会在重启后生效,是否要重启?"):
|
||||
print("reboot")
|
||||
os.system("reboot")
|
||||
|
||||
# 添加文本
|
||||
def AddText(things):
|
||||
global text
|
||||
text.configure(state=tk.NORMAL)
|
||||
text.insert("end", things)
|
||||
text.configure(state=tk.DISABLED)
|
||||
|
||||
class ShowTextTipsWindow():
|
||||
def ShowWindow(things):
|
||||
message = tk.Toplevel()
|
||||
@@ -737,7 +910,7 @@ class AddNewUengineDesktopLink():
|
||||
|
||||
# 打开测试
|
||||
def TestOpen():
|
||||
threading.Thread(target=os.system, args=["/usr/bin/uengine-launch.sh --package={} --component={}".format(packageName.get(), activityName.get())]).start()
|
||||
threading.Thread(target=os.system, args=["/usr/bin/uengine launch --package={} --component={}".format(packageName.get(), activityName.get())]).start()
|
||||
AddNewUengineDesktopLink.SaveHistory()
|
||||
|
||||
# 浏览文件
|
||||
@@ -746,37 +919,12 @@ class AddNewUengineDesktopLink():
|
||||
if path == "" or path == ():
|
||||
return
|
||||
packageName.set(GetApkPackageName(path))
|
||||
activityName.set(GetApkActivityName(path))
|
||||
activityName.set(str(GetApkActivityName(path)))
|
||||
write_txt(get_home() + "/.config/uengine-runner/FindApkName.json", json.dumps({"path": os.path.dirname(path)})) # 写入配置文件
|
||||
|
||||
###########################
|
||||
# 程序信息
|
||||
###########################
|
||||
programPath = os.path.split(os.path.realpath(__file__))[0] # 返回 string
|
||||
information = json.loads(readtxt(programPath + "/information.json"))
|
||||
programUrl = information["Url"][0]
|
||||
version = information["Version"]
|
||||
goodRunSystem = information["System"]
|
||||
aaptVersion = GetCommandReturn("aapt version")
|
||||
about = '''介绍 :一个基于 Python3 的 tkinter 制作的 UEngine 运行器,在新版本Deepin/UOS发布后,可以在应用商店安装部分官方已适配的安卓应用,对爱好者来说,不能自己安装APK软件包始终差点意思,本程序可以为Deepin/UOS上的UEngine安卓运行环境安装自定义APK软件包,并能发送安装的APK包启动菜单到桌面或系统菜单。
|
||||
|
||||
版本 :{}
|
||||
|
||||
适用平台 :{}
|
||||
|
||||
程序官网 :{}
|
||||
|
||||
©2021-{}'''.format(version, goodRunSystem, tk.TkVersion, programUrl, time.strftime("%Y"))
|
||||
tips = "\n".join(information["Tips"])
|
||||
updateThingsString = "\n".join(information["Update"])
|
||||
title = "UEngine 运行器 {}".format(version)
|
||||
updateTime = information["Time"]
|
||||
updateThings = "{} 更新内容:\n{}\n更新时间:{}".format(version, updateThingsString, updateTime, time.strftime("%Y"))
|
||||
iconPath = "{}/icon.png".format(os.path.split(os.path.realpath(__file__))[0])
|
||||
desktop = programPath + "/UengineAndroidProgramList.desktop"
|
||||
desktopName = "UengineAndroidProgramList.desktop"
|
||||
contribute = "\n".join(information["Contribute"])
|
||||
useProgram = '''1、UEngine:{}
|
||||
def UseProgram():
|
||||
global useProgram
|
||||
useProgram = '''1、UEngine:{}
|
||||
2、python3:{}
|
||||
3、tkinter:{}
|
||||
4、aapt:{}
|
||||
@@ -795,14 +943,52 @@ useProgram = '''1、UEngine:{}
|
||||
subprocess.getoutput("adb version"),
|
||||
subprocess.getoutput("deepin-terminal -v"))
|
||||
|
||||
###########################
|
||||
# 程序信息
|
||||
###########################
|
||||
lang = get_now_lang()
|
||||
programPath = os.path.split(os.path.realpath(__file__))[0] # 返回 string
|
||||
information = json.loads(readtxt(programPath + "/information.json"))
|
||||
langFile = json.loads(readtxt(programPath + "/Language.json"))
|
||||
if not lang in langFile.keys():
|
||||
lang = "en_US.UTF-8"
|
||||
programUrl = information["Url"][0]
|
||||
version = information["Version"]
|
||||
goodRunSystem = information["System"]
|
||||
aaptVersion = GetCommandReturn("aapt version")
|
||||
SystemVersion = GetSystemVersion()
|
||||
about = '''介绍 :一个基于 Python3 的 tkinter 制作的 UEngine 运行器,在新版本Deepin/UOS发布后,可以在应用商店安装部分官方已适配的安卓应用,对爱好者来说,不能自己安装APK软件包始终差点意思,本程序可以为Deepin/UOS上的UEngine安卓运行环境安装自定义APK软件包,并能发送安装的APK包启动菜单到桌面或系统菜单。
|
||||
|
||||
版本 :{}
|
||||
|
||||
适用平台 :{}
|
||||
|
||||
Tk 版本 :{}
|
||||
|
||||
程序官网 :{}
|
||||
|
||||
系统版本 :{}
|
||||
|
||||
©2021-{}'''.format(version, goodRunSystem, tk.TkVersion, programUrl, SystemVersion, time.strftime("%Y"))
|
||||
tips = "\n".join(information["Tips"])
|
||||
updateThingsString = "\n".join(information["Update"])
|
||||
title = "{} {}".format(langFile[lang]["Main"]["MainWindow"]["Title"], version)
|
||||
updateTime = information["Time"]
|
||||
updateThings = "{} 更新内容:\n{}\n更新时间:{}".format(version, updateThingsString, updateTime, time.strftime("%Y"))
|
||||
iconPath = "{}/icon.png".format(os.path.split(os.path.realpath(__file__))[0])
|
||||
desktop = programPath + "/UengineAndroidProgramList.desktop"
|
||||
desktopName = "UengineAndroidProgramList.desktop"
|
||||
contribute = "\n".join(information["Contribute"])
|
||||
useProgram = ""
|
||||
threading.Thread(target=UseProgram).start()
|
||||
|
||||
###########################
|
||||
# 加载配置
|
||||
###########################
|
||||
if not os.path.exists("{}/.local/share/applications/uengine/".format(get_home())):
|
||||
os.mkdir("{}/.local/share/applications/uengine/".format(get_home()))
|
||||
os.makedirs("{}/.local/share/applications/uengine/".format(get_home()))
|
||||
if not os.path.exists(get_home() + "/.config/uengine-runner"): # 如果没有配置文件夹
|
||||
os.mkdir(get_home() + "/.config/uengine-runner") # 创建配置文件夹
|
||||
os.makedirs(get_home() + "/.config/uengine-runner") # 创建配置文件夹
|
||||
if not os.path.exists(get_home() + "/.config/uengine-runner/FindApkHistory.json"): # 如果没有配置文件
|
||||
write_txt(get_home() + "/.config/uengine-runner/FindApkHistory.json", json.dumps({})) # 创建配置文件
|
||||
if not os.path.exists(get_home() + "/.config/uengine-runner/FindApkNameHistory.json"): # 如果没有配置文件
|
||||
@@ -885,6 +1071,9 @@ def showhelp():
|
||||
def ChgAbout():
|
||||
HelpStr.set(about)
|
||||
def ChgDep():
|
||||
if useProgram == "":
|
||||
BtnZujian.configure(state=tk.DISABLED)
|
||||
return
|
||||
HelpStr.set(useProgram)
|
||||
def ChgCon():
|
||||
HelpStr.set(contribute)
|
||||
@@ -927,7 +1116,6 @@ win = tk.Tk() # 创建窗口
|
||||
style = ttkthemes.ThemedStyle(win)
|
||||
style.set_theme("breeze")
|
||||
window = ttk.Frame(win)
|
||||
win.attributes('-alpha', 0.5)
|
||||
win.title(title)
|
||||
win.resizable(0, 0)
|
||||
win.iconphoto(False, tk.PhotoImage(file=iconPath))
|
||||
@@ -945,18 +1133,19 @@ win.geometry(""+"+{:.0f}+{:.0f}".format(x, y))
|
||||
|
||||
# 创建控件
|
||||
FrmInstall = ttk.Frame(window)
|
||||
FrmUninstall = ttk.Frame(window)
|
||||
LabApkPath = ttk.Label(window, text="安装APK:")
|
||||
LabUninstallPath = ttk.Label(window, text="卸载APK:")
|
||||
#FrmUninstall = ttk.Frame(window)
|
||||
LabApkPath = ttk.Label(window, text=langFile[lang]["Main"]["MainWindow"]["LabApkPath"])
|
||||
#LabUninstallPath = ttk.Label(window, text=langFile[lang]["Main"]["MainWindow"]["LabUninstallPath"])
|
||||
ComboInstallPath = ttk.Combobox(window, width=50)
|
||||
ComboUninstallPath = ttk.Combobox(window, width=50)
|
||||
BtnFindApk = ttk.Button(FrmInstall, text="浏览", command=FindApk)
|
||||
BtnInstall = ttk.Button(FrmInstall, text="安装", command=Button3Install)
|
||||
BtnShowUengineApp = ttk.Button(window, text="打开 UEngine 应用列表", command=Button5Click)
|
||||
BtnUninstallApkBrowser = ttk.Button(FrmUninstall, text="浏览", command=BtnFindUninstallApkClk)
|
||||
BtnUninstall = ttk.Button(FrmUninstall, text="卸载", command=ButtonClick8)
|
||||
Btngeticon = ttk.Button(FrmInstall, text="保存图标", command=SaveIconToOtherPath)
|
||||
BtnSaveApk = ttk.Button(FrmInstall, text="保存apk", command=SaveInstallUengineApp)
|
||||
#ComboUninstallPath = ttk.Combobox(window, width=50)
|
||||
BtnFindApk = ttk.Button(FrmInstall, text=langFile[lang]["Main"]["MainWindow"]["BtnFindApk"], command=FindApk)
|
||||
BtnInstall = ttk.Button(FrmInstall, text=langFile[lang]["Main"]["MainWindow"]["BtnInstall"], command=Button3Install)
|
||||
BtnShowUengineApp = ttk.Button(window, text=langFile[lang]["Main"]["MainWindow"]["BtnShowUengineApp"], command=Button5Click)
|
||||
#BtnUninstallApkBrowser = ttk.Button(FrmUninstall, text=langFile[lang]["Main"]["MainWindow"]["BtnUninstallApkBrowser"], command=BtnFindUninstallApkClk)
|
||||
BtnUninstall = ttk.Button(FrmInstall, text=langFile[lang]["Main"]["MainWindow"]["BtnUninstall"], command=ButtonClick8)
|
||||
Btngeticon = ttk.Button(FrmInstall, text=langFile[lang]["Main"]["MainWindow"]["Btngeticon"], command=SaveIconToOtherPath)
|
||||
BtnSaveApk = ttk.Button(FrmInstall, text=langFile[lang]["Main"]["MainWindow"]["BtnSaveApk"], command=SaveInstallUengineApp)
|
||||
BtnApkInformation = ttk.Button(FrmInstall, text=langFile[lang]["Main"]["MainWindow"]["BtnApkInformation"], command=ApkInformation.ShowWindows)
|
||||
# 设置菜单栏
|
||||
menu = tk.Menu(window, background="white")
|
||||
|
||||
@@ -973,68 +1162,74 @@ uengineIcon = tk.Menu(uengine, tearoff=0, background="white")
|
||||
uengineUseAdb = tk.Menu(uengine, tearoff=0, background="white")
|
||||
uengineData = tk.Menu(uengine, tearoff=0, background="white")
|
||||
|
||||
menu.add_cascade(label="程序", menu=programmenu)
|
||||
menu.add_cascade(label="adb", menu=adb)
|
||||
menu.add_cascade(label="UEngine", menu=uengine)
|
||||
menu.add_cascade(label="关于", menu=help)
|
||||
menu.add_cascade(label=langFile[lang]["Main"]["MainWindow"]["Menu"][0]["Name"], menu=programmenu)
|
||||
menu.add_cascade(label=langFile[lang]["Main"]["MainWindow"]["Menu"][1]["Name"], menu=adb)
|
||||
menu.add_cascade(label=langFile[lang]["Main"]["MainWindow"]["Menu"][2]["Name"], menu=uengine)
|
||||
menu.add_cascade(label=langFile[lang]["Main"]["MainWindow"]["Menu"][3]["Name"], menu=help)
|
||||
|
||||
programmenu.add_command(label="清空软件历史记录", command=CleanProgramHistory)
|
||||
programmenu.add_command(label=langFile[lang]["Main"]["MainWindow"]["Menu"][0]["Menu"][0], command=CleanProgramHistory)
|
||||
programmenu.add_separator() # 设置分界线
|
||||
programmenu.add_command(label="退出程序", command=window.quit) # 设置“退出程序”
|
||||
programmenu.add_command(label=langFile[lang]["Main"]["MainWindow"]["Menu"][0]["Menu"][1], command=window.quit) # 设置“退出程序”
|
||||
|
||||
adb.add_command(label="adb 连接 UEngine", command=UengineConnectAdb)
|
||||
adb.add_command(label=langFile[lang]["Main"]["MainWindow"]["Menu"][1]["Menu"][0], command=UengineConnectAdb)
|
||||
adb.add_separator()
|
||||
adb.add_cascade(label="adb 服务", menu=adbServer)
|
||||
adb.add_command(label="显示 adb 连接的设备", command=AdbConnectDeviceShow)
|
||||
adb.add_cascade(label=langFile[lang]["Main"]["MainWindow"]["Menu"][1]["Menu"][1]["Name"], menu=adbServer)
|
||||
adb.add_command(label=langFile[lang]["Main"]["MainWindow"]["Menu"][1]["Menu"][2], command=AdbConnectDeviceShow)
|
||||
adb.add_separator()
|
||||
adb.add_command(label="adb 查看 UEngine 应用列表", command=AdbAndroidInstallAppList)
|
||||
adb.add_command(label="adb 查看 UEngine 资源使用情况", command=AdbCPUAndRAWShowInTer)
|
||||
adb.add_command(label="打开 adb 连接 UEngine 的终端", command=AdbShellShowInTer)
|
||||
adb.add_command(label=langFile[lang]["Main"]["MainWindow"]["Menu"][1]["Menu"][3], command=AdbChangeUengineDisplaySize.ShowWindows)
|
||||
adb.add_command(label=langFile[lang]["Main"]["MainWindow"]["Menu"][1]["Menu"][4], command=AdbAndroidInstallAppList)
|
||||
adb.add_command(label=langFile[lang]["Main"]["MainWindow"]["Menu"][1]["Menu"][5], command=AdbCPUAndRAWShowInTer)
|
||||
adb.add_command(label=langFile[lang]["Main"]["MainWindow"]["Menu"][1]["Menu"][6], command=AdbShellShowInTer)
|
||||
adb.add_command(label=langFile[lang]["Main"]["MainWindow"]["Menu"][1]["Menu"][7], command=ScrcpyConnectUengine)
|
||||
adb.add_separator()
|
||||
adb.add_cascade(label="UEngine 使用 adb", menu=uengineUseAdb)
|
||||
adb.add_cascade(label=langFile[lang]["Main"]["MainWindow"]["Menu"][1]["Menu"][8]["Name"], menu=uengineUseAdb)
|
||||
|
||||
adbServer.add_command(label="开启 adb 服务", command=AdbStartServer)
|
||||
adbServer.add_command(label="关闭 adb 服务", command=AdbStopServer)
|
||||
adbServer.add_command(label="杀死 adb 进程", command=AdbKillAdbProgress)
|
||||
adbServer.add_command(label=langFile[lang]["Main"]["MainWindow"]["Menu"][1]["Menu"][1]["Menu"][0], command=AdbStartServer)
|
||||
adbServer.add_command(label=langFile[lang]["Main"]["MainWindow"]["Menu"][1]["Menu"][1]["Menu"][1], command=AdbStopServer)
|
||||
adbServer.add_command(label=langFile[lang]["Main"]["MainWindow"]["Menu"][1]["Menu"][1]["Menu"][2], command=AdbKillAdbProgress)
|
||||
|
||||
uengine.add_command(label="UEngine 系统设置", command=UengineSettingShow)
|
||||
uengine.add_command(label="UEngine 应用打包", command=OpenUengineDebBuilder)
|
||||
#uengine.add_command(label="UEngine 键盘映射", command=KeyboardToMouse)
|
||||
uengine.add_cascade(label="UEngine 服务", menu=uengineService)
|
||||
uengine.add_cascade(label="UEngine 网络桥接", menu=uengineInternet)
|
||||
uengine.add_cascade(label="UEngine 快捷方式", menu=uengineIcon)
|
||||
uengine.add_cascade(label="UEngine 使用 adb", menu=uengineUseAdb)
|
||||
uengine.add_cascade(label="UEngine 数据", menu=uengineData)
|
||||
#uengine.add_command(label=langFile[lang]["Main"]["MainWindow"]["Menu"][2]["Menu"][0], command=UengineSettingShow)
|
||||
uengine.add_command(label=langFile[lang]["Main"]["MainWindow"]["Menu"][2]["Menu"][1], command=OpenUengineDebBuilder)
|
||||
uengine.add_command(label=langFile[lang]["Main"]["MainWindow"]["Menu"][2]["Menu"][7], command=KeyboardToMouse)
|
||||
uengine.add_command(label=langFile[lang]["Main"]["MainWindow"]["Menu"][2]["Menu"][8], command=UengineCheckCpu)
|
||||
uengine.add_cascade(label=langFile[lang]["Main"]["MainWindow"]["Menu"][2]["Menu"][2]["Name"], menu=uengineService)
|
||||
uengine.add_cascade(label=langFile[lang]["Main"]["MainWindow"]["Menu"][2]["Menu"][3]["Name"], menu=uengineInternet)
|
||||
uengine.add_cascade(label=langFile[lang]["Main"]["MainWindow"]["Menu"][2]["Menu"][4]["Name"], menu=uengineIcon)
|
||||
uengine.add_cascade(label=langFile[lang]["Main"]["MainWindow"]["Menu"][2]["Menu"][5]["Name"], menu=uengineUseAdb)
|
||||
uengine.add_cascade(label=langFile[lang]["Main"]["MainWindow"]["Menu"][2]["Menu"][6]["Name"], menu=uengineData)
|
||||
uengine.add_command(label=langFile[lang]["Main"]["MainWindow"]["Menu"][2]["Menu"][9], command=DelUengineCheck)
|
||||
uengine.add_command(label=langFile[lang]["Main"]["MainWindow"]["Menu"][2]["Menu"][10], command=ReinstallUengine)
|
||||
|
||||
help.add_command(label="程序官网", command=OpenProgramURL) # 设置“程序官网”项
|
||||
help.add_command(label="帮助", command=showhelp) # 设置“关于这个程序”项
|
||||
help.add_command(label=langFile[lang]["Main"]["MainWindow"]["Menu"][3]["Menu"][0], command=OpenProgramURL) # 设置“程序官网”项
|
||||
help.add_command(label=langFile[lang]["Main"]["MainWindow"]["Menu"][3]["Menu"][2], command=UengineRunnerBugUpload) # 设置“程序官网”项
|
||||
help.add_command(label=langFile[lang]["Main"]["MainWindow"]["Menu"][3]["Menu"][1], command=showhelp) # 设置“关于这个程序”项
|
||||
|
||||
uengineService.add_command(label="启用 UEngine 服务(需要 root)", command=StartUengine)
|
||||
uengineService.add_command(label="关闭 UEngine 服务(需要 root)", command=StopUengine)
|
||||
uengineService.add_command(label="重启 UEngine 服务(需要 root)", command=UengineRestart)
|
||||
uengineService.add_command(label=langFile[lang]["Main"]["MainWindow"]["Menu"][2]["Menu"][2]["Menu"][0], command=StartUengine)
|
||||
uengineService.add_command(label=langFile[lang]["Main"]["MainWindow"]["Menu"][2]["Menu"][2]["Menu"][1], command=StopUengine)
|
||||
uengineService.add_command(label=langFile[lang]["Main"]["MainWindow"]["Menu"][2]["Menu"][2]["Menu"][2], command=UengineRestart)
|
||||
|
||||
uengineInternet.add_command(label="启用 UEngine 网络桥接(需要 root)", command=UengineBridgeStart)
|
||||
uengineInternet.add_command(label="关闭 UEngine 网络桥接(需要 root)", command=UengineBridgeStop)
|
||||
uengineInternet.add_command(label="重启 UEngine 网络桥接(需要 root)", command=UengineBridgeRestart)
|
||||
uengineInternet.add_command(label="加载 UEngine 网络桥接(需要 root)", command=UengineBridgeReload)
|
||||
uengineInternet.add_command(label="强制加载 UEngine 网络桥接(需要 root)", command=UengineBridgeForceReload)
|
||||
uengineInternet.add_command(label=langFile[lang]["Main"]["MainWindow"]["Menu"][2]["Menu"][3]["Menu"][0], command=UengineBridgeStart)
|
||||
uengineInternet.add_command(label=langFile[lang]["Main"]["MainWindow"]["Menu"][2]["Menu"][3]["Menu"][1], command=UengineBridgeStop)
|
||||
uengineInternet.add_command(label=langFile[lang]["Main"]["MainWindow"]["Menu"][2]["Menu"][3]["Menu"][2], command=UengineBridgeRestart)
|
||||
uengineInternet.add_command(label=langFile[lang]["Main"]["MainWindow"]["Menu"][2]["Menu"][3]["Menu"][3], command=UengineBridgeReload)
|
||||
uengineInternet.add_command(label=langFile[lang]["Main"]["MainWindow"]["Menu"][2]["Menu"][3]["Menu"][4], command=UengineBridgeForceReload)
|
||||
|
||||
uengineIcon.add_command(label="发送 UEngine 应用列表到桌面", command=SendUengineAndroidListForDesktop)
|
||||
uengineIcon.add_command(label="发送 UEngine 应用列表到启动器", command=SendUengineAndroidListForLauncher)
|
||||
uengineIcon.add_command(label=langFile[lang]["Main"]["MainWindow"]["Menu"][2]["Menu"][4]["Menu"][0], command=SendUengineAndroidListForDesktop)
|
||||
uengineIcon.add_command(label=langFile[lang]["Main"]["MainWindow"]["Menu"][2]["Menu"][4]["Menu"][1], command=SendUengineAndroidListForLauncher)
|
||||
uengineIcon.add_separator()
|
||||
uengineIcon.add_command(label="添加/删除指定的 UEngine 快捷方式", command=AddNewUengineDesktopLink.ShowWindow)
|
||||
uengineIcon.add_command(label=langFile[lang]["Main"]["MainWindow"]["Menu"][2]["Menu"][4]["Menu"][2], command=AddNewUengineDesktopLink.ShowWindow)
|
||||
uengineIcon.add_separator()
|
||||
uengineIcon.add_command(label="清空所有 UEngine 快捷方式", command=CleanAllUengineDesktopLink)
|
||||
uengineIcon.add_command(label=langFile[lang]["Main"]["MainWindow"]["Menu"][2]["Menu"][4]["Menu"][3], command=CleanAllUengineDesktopLink)
|
||||
|
||||
uengineUseAdb.add_command(label="adb 连接 UEngine", command=UengineConnectAdb)
|
||||
uengineUseAdb.add_command(label=langFile[lang]["Main"]["MainWindow"]["Menu"][1]["Menu"][8]["Menu"][0], command=UengineConnectAdb)
|
||||
uengineUseAdb.add_separator()
|
||||
uengineUseAdb.add_command(label="允许此设备使用 adb 连接本 UEngine(需要 root)", command=UengineUseAdb)
|
||||
uengineUseAdb.add_command(label="禁止任何设备使用 adb 连接本 UEngine(需要 root)", command=UengineDoNotUseAdb)
|
||||
uengineUseAdb.add_command(label=langFile[lang]["Main"]["MainWindow"]["Menu"][1]["Menu"][8]["Menu"][1], command=UengineUseAdb)
|
||||
uengineUseAdb.add_command(label=langFile[lang]["Main"]["MainWindow"]["Menu"][1]["Menu"][8]["Menu"][2], command=UengineDoNotUseAdb)
|
||||
|
||||
uengineData.add_command(label="打开 UEngine 根目录", command=OpenUengineRootData)
|
||||
uengineData.add_command(label="打开 UEngine 用户数据目录", command=OpenUengineUserData)
|
||||
uengineData.add_command(label=langFile[lang]["Main"]["MainWindow"]["Menu"][2]["Menu"][6]["Menu"][0], command=OpenUengineRootData)
|
||||
uengineData.add_command(label=langFile[lang]["Main"]["MainWindow"]["Menu"][2]["Menu"][6]["Menu"][1], command=OpenUengineUserData)
|
||||
uengineData.add_separator()
|
||||
uengineData.add_command(label="清空 UEngine 数据(需要 root)", command=BackUengineClean)
|
||||
uengineData.add_command(label=langFile[lang]["Main"]["MainWindow"]["Menu"][2]["Menu"][6]["Menu"][2], command=BackUengineClean)
|
||||
|
||||
menu.configure(activebackground="dodgerblue")
|
||||
help.configure(activebackground="dodgerblue")
|
||||
@@ -1048,14 +1243,15 @@ uengineUseAdb.configure(activebackground="dodgerblue")
|
||||
uengineData.configure(activebackground="dodgerblue")
|
||||
|
||||
# 设置控件
|
||||
ComboUninstallPath['value'] = fineUninstallApkHistory
|
||||
#ComboUninstallPath['value'] = fineUninstallApkHistory
|
||||
ComboInstallPath['value'] = findApkHistory
|
||||
try:
|
||||
if sys.argv[1] == "-i":
|
||||
ComboInstallPath.set(sys.argv[2])
|
||||
print("Install Path: " + sys.argv[2])
|
||||
elif sys.argv[1] == "-u":
|
||||
ComboUninstallPath.set(sys.argv[2])
|
||||
#ComboUninstallPath.set(sys.argv[2])
|
||||
ComboInstallPath.set(sys.argv[2])
|
||||
print("Unstall Path: " + sys.argv[2])
|
||||
else:
|
||||
print("Command Format Error")
|
||||
@@ -1066,25 +1262,26 @@ win.config(menu=menu) # 显示菜单栏
|
||||
|
||||
|
||||
|
||||
LabApkPath.grid(row=1, column=0,sticky= tk.W,padx=3)
|
||||
ComboInstallPath.grid(row=2, column=0,padx=3)
|
||||
LabApkPath.grid(row=0, column=0,sticky= tk.W,padx=3)
|
||||
ComboInstallPath.grid(row=1, column=0,padx=3)
|
||||
|
||||
|
||||
FrmInstall.grid(row=2, column=1,padx=3, rowspan=2)
|
||||
FrmInstall.grid(row=0, column=1,padx=3, rowspan=3)
|
||||
BtnFindApk.grid(row=0, column=0)
|
||||
BtnInstall.grid(row=0, column=1)
|
||||
|
||||
LabUninstallPath.grid(row=4, column=0,sticky= tk.W,padx=3)
|
||||
ComboUninstallPath.grid(row=5, column=0,padx=3)
|
||||
#LabUninstallPath.grid(row=4, column=0,sticky= tk.W,padx=3)
|
||||
#ComboUninstallPath.grid(row=5, column=0,padx=3)
|
||||
|
||||
FrmUninstall.grid(row=5, column=1,padx=3)
|
||||
BtnUninstallApkBrowser.grid(row=0, column=0)
|
||||
BtnUninstall.grid(row=0, column=1)
|
||||
#FrmUninstall.grid(row=5, column=1,padx=3)
|
||||
#BtnUninstallApkBrowser.grid(row=0, column=0)
|
||||
BtnUninstall.grid(row=1, column=0)
|
||||
|
||||
BtnShowUengineApp.grid(row=6, column=0,sticky= tk.W,padx=3,pady=2)
|
||||
BtnShowUengineApp.grid(row=2, column=0,sticky= tk.W,padx=3,pady=2)
|
||||
|
||||
Btngeticon.grid(row=1, column=0,sticky= tk.W,padx=3,pady=2)
|
||||
BtnSaveApk.grid(row=1, column=1,sticky= tk.W,padx=3,pady=2)
|
||||
BtnApkInformation.grid(row=2, column=1,sticky= tk.W,padx=3,pady=2)
|
||||
Btngeticon.grid(row=1, column=1,sticky= tk.W,padx=3,pady=2)
|
||||
BtnSaveApk.grid(row=2, column=0,sticky= tk.W,padx=3,pady=2)
|
||||
|
||||
window.pack()
|
||||
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
Package: com.gitee.uengine.runner.spark
|
||||
Source: com.gitee.uengine.runner.spark
|
||||
Version: 1.4.2
|
||||
Version: 1.5.1
|
||||
Architecture: all
|
||||
Maintainer: gfdgd xi <3025613752@qq.com>, actionchen<917981399@qq.com>
|
||||
Depends: deepin-elf-verify (>= 0.0.16.7-1), python3, python3-tk, python3-pip, aapt, adb, python3-pil, python3-setuptools, uengine, deepin-terminal
|
||||
Depends: deepin-elf-verify (>= 0.0.16.7-1), python3, python3-tk, python3-pip, aapt, uengine, python3-setuptools, deepin-terminal, curl, python3-pil, python3-pil.imagetk, python3-requests, adb, translate-shell
|
||||
Section: utils
|
||||
Priority: optional
|
||||
Conflicts: spark-uengine-runner, spark-uengine-apk-builder
|
||||
|
||||
@@ -1,15 +1,21 @@
|
||||
#!/bin/sh
|
||||
# 使用 pip 安装所需库
|
||||
python3 -m pip install --upgrade ttkthemes
|
||||
python3 -m pip install --upgrade requests
|
||||
python3 -m pip install --upgrade pyautogui
|
||||
python3 -m pip install --upgrade keyboard
|
||||
python3 -m pip install --upgrade ttkthemes -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com
|
||||
python3 -m pip install --upgrade requests -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com
|
||||
python3 -m pip install --upgrade pyautogui -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com
|
||||
python3 -m pip install --upgrade keyboard -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com
|
||||
# 建立软链接
|
||||
ln -s /opt/apps/com.gitee.uengine.runner.spark/files/uengine-runner /usr/bin/uengine-runner
|
||||
ln -s /opt/apps/com.gitee.uengine.runner.spark/files/uengine-apk-builder /usr/bin/uengine-apk-builder
|
||||
ln -s /opt/apps/com.gitee.uengine.runner.spark/files/uengine-app-uninstall /usr/bin/uengine-app-uninstall
|
||||
ln -s /opt/apps/com.gitee.uengine.runner.spark/files/uengine-app-install /usr/bin/uengine-app-install
|
||||
ln -s /opt/apps/com.gitee.uengine.runner.spark/files/uengine-clean /usr/bin/uengine-clean
|
||||
ln -s /opt/apps/com.gitee.uengine.runner.spark/files/uengine-runner-about /usr/bin/uengine-runner-about
|
||||
ln -s /opt/apps/com.gitee.uengine.runner.spark/files/uengine-keyboard /usr/bin/uengine-keyboard
|
||||
ln -s /opt/apps/com.gitee.uengine.runner.spark/files/uengine-useadb /usr/bin/uengine-useadb
|
||||
ln -s /opt/apps/com.gitee.uengine.runner.spark/files/uengine-runner /usr/bin/uengine-runner
|
||||
ln -s /opt/apps/com.gitee.uengine.runner.spark/files/uengine-apk-builder /usr/bin/uengine-apk-builder
|
||||
ln -s /opt/apps/com.gitee.uengine.runner.spark/files/uengine-app-uninstall /usr/bin/uengine-app-uninstall
|
||||
ln -s /opt/apps/com.gitee.uengine.runner.spark/files/uengine-app-install /usr/bin/uengine-app-install
|
||||
ln -s /opt/apps/com.gitee.uengine.runner.spark/files/uengine-clean /usr/bin/uengine-clean
|
||||
ln -s /opt/apps/com.gitee.uengine.runner.spark/files/uengine-runner-about /usr/bin/uengine-runner-about
|
||||
ln -s /opt/apps/com.gitee.uengine.runner.spark/files/uengine-keyboard /usr/bin/uengine-keyboard
|
||||
ln -s /opt/apps/com.gitee.uengine.runner.spark/files/uengine-useadb /usr/bin/uengine-useadb
|
||||
ln -s /opt/apps/com.gitee.uengine.runner.spark/files/uengine-runner-launch.sh /usr/bin/uengine-runner-launch.sh
|
||||
ln -s /opt/apps/com.gitee.uengine.runner.spark/files/uengine-runner-update-bug /usr/bin/uengine-runner-update-bug
|
||||
# 刷新图标缓存
|
||||
#gtk-update-icon-cache /usr/share/icons/bloom
|
||||
# 向服务器返回安装数加1(不显示内容且忽略错误)
|
||||
curl http://gfdgdxi.qicp.vip/uengine/Install.php -s > /dev/null | true
|
||||
@@ -6,4 +6,9 @@ rm -fv /usr/bin/uengine-app-uninstall
|
||||
rm -fv /usr/bin/uengine-app-install
|
||||
rm -fv /usr/bin/uengine-clean
|
||||
rm -fv /usr/bin/uengine-runner-about
|
||||
rm -fv /usr/bin/uengine-keyboard
|
||||
rm -fv /usr/bin/uengine-keyboard
|
||||
rm -fv /usr/bin/uengine-useadb
|
||||
rm -fv /usr/bin/uengine-runner-launch.sh
|
||||
rm -fv /usr/bin/uengine-runner-update-bug
|
||||
# 刷新图标缓存
|
||||
gtk-update-icon-cache /usr/share/icons/bloom
|
||||
@@ -1,11 +1,12 @@
|
||||
[Desktop Entry]
|
||||
Categories=System;
|
||||
Comment=UEngine(anbox) 程序菜单
|
||||
Comment=UEngine 程序菜单
|
||||
Encoding=UTF-8
|
||||
Exec=/usr/bin/uengine-launch.sh --package=org.anbox.appmgr --component=org.anbox.appmgr.AppViewActivity
|
||||
Exec=/usr/bin/uengine launch --package=org.anbox.appmgr --component=org.anbox.appmgr.AppViewActivity
|
||||
Icon=/opt/apps/com.gitee.uengine.runner.spark/files/icon.png
|
||||
MimeType=
|
||||
Name=UEngine 程序菜单
|
||||
Name=UEngine App List
|
||||
Name[zh]=UEngine 程序菜单
|
||||
StartupWMClass=UEngine 程序菜单
|
||||
Terminal=false
|
||||
Type=Application
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
[Desktop Entry]
|
||||
Categories=System;
|
||||
Comment=UEngine 系统设置
|
||||
Encoding=UTF-8
|
||||
Exec=/usr/bin/uengine-launch.sh --action=android.intent.action.MAIN --package=com.android.settings --component=com.android.settings.Settings
|
||||
Icon=/opt/apps/com.gitee.uengine.runner.spark/files/icon.png
|
||||
MimeType=
|
||||
Name=UEngine 系统设置
|
||||
StartupWMClass=UEngine 系统设置
|
||||
Terminal=false
|
||||
Type=Application
|
||||
@@ -0,0 +1,15 @@
|
||||
[Desktop Entry]
|
||||
Type=Application
|
||||
Encoding=UTF-8
|
||||
Categories=System;
|
||||
Terminal=false
|
||||
Exec=/usr/bin/uengine-apk-builder %F
|
||||
Icon=/opt/apps/com.gitee.uengine.runner.spark/files/icon.png
|
||||
Name=Build Apk To Deb(UEngine Runner)
|
||||
Comment=Build Apk To Deb(UEngine Runner)
|
||||
Comment[zh]=打包 deb(UEngine 运行器)
|
||||
Name[zh]=打包 deb(UEngine 运行器)
|
||||
StartupNotify=true
|
||||
Hidden=false
|
||||
NoDisplay=true
|
||||
MimeType=application/vnd.android.package-archive
|
||||
@@ -5,10 +5,10 @@ Categories=System;
|
||||
Terminal=false
|
||||
Exec=/usr/bin/uengine-runner -i %F
|
||||
Icon=/opt/apps/com.gitee.uengine.runner.spark/files/icon.png
|
||||
Name=Install APK(uengine runner)
|
||||
Comment=Install APK(UEngine runner)
|
||||
Comment[zh]=安装 APK(UEngine 运行器)
|
||||
Name[zh]=安装 APK(UEngine 运行器)
|
||||
Name=Install Or Uninstall APK(uengine runner)
|
||||
Comment=Install Or Uninstall APK(UEngine runner)
|
||||
Comment[zh]=安装/卸载 APK(UEngine 运行器)
|
||||
Name[zh]=安装/卸载 APK(UEngine 运行器)
|
||||
StartupNotify=true
|
||||
Hidden=false
|
||||
NoDisplay=true
|
||||
|
||||
@@ -1,15 +0,0 @@
|
||||
[Desktop Entry]
|
||||
Type=Application
|
||||
Encoding=UTF-8
|
||||
Categories=System;
|
||||
Terminal=false
|
||||
Exec=/usr/bin/uengine-runner -u %F
|
||||
Icon=/opt/apps/com.gitee.uengine.runner.spark/files/icon.png
|
||||
Name=Uninstall APK(UEngine runner)
|
||||
Comment=Uninstall APK(UEngine runner)
|
||||
Comment[zh]=卸载 APK(UEngine 运行器)
|
||||
Name[zh]=卸载 APK(UEngine 运行器)
|
||||
StartupNotify=true
|
||||
Hidden=false
|
||||
NoDisplay=true
|
||||
MimeType=application/vnd.android.package-archive
|
||||
@@ -0,0 +1,12 @@
|
||||
[Desktop Entry]
|
||||
Type=Application
|
||||
Encoding=UTF-8
|
||||
Categories=System;
|
||||
Terminal=false
|
||||
Exec=/usr/bin/uengine-apk-builder %F
|
||||
Icon=/opt/apps/com.gitee.uengine.runner.spark/files/icon.png
|
||||
Name=uengine Apk Builder
|
||||
Comment=UEngine Apk Builder
|
||||
Comment[zh]=UEngine 应用打包器
|
||||
Name[zh]=UEngine 应用打包器
|
||||
StartupNotify=true
|
||||
@@ -5,7 +5,7 @@ Categories=System;
|
||||
Terminal=false
|
||||
Exec=/usr/bin/uengine-runner
|
||||
Icon=/opt/apps/com.gitee.uengine.runner.spark/files/icon.png
|
||||
Name=uengine runner
|
||||
Name=uengine Runner
|
||||
Comment=UEngine Runner
|
||||
Comment[zh]=UEngine 运行器
|
||||
Name[zh]=UEngine 运行器
|
||||
|
||||
@@ -0,0 +1,256 @@
|
||||
{
|
||||
"zh_CN.UTF-8": {
|
||||
"Main": {
|
||||
"MainWindow": {
|
||||
"Title": "UEngine 运行器",
|
||||
"LabApkPath": "安装/卸载 APK:",
|
||||
"LabUninstallPath": "卸载 Apk:",
|
||||
"BtnFindApk": "浏览",
|
||||
"BtnInstall": "安装",
|
||||
"BtnShowUengineApp": "打开 UEngine 应用列表",
|
||||
"BtnUninstallApkBrowser": "浏览",
|
||||
"BtnUninstall": "卸载",
|
||||
"Btngeticon": "保存图标",
|
||||
"BtnSaveApk": "保存Apk",
|
||||
"BtnApkInformation": "Apk 信息",
|
||||
"Menu": [
|
||||
{
|
||||
"Name": "程序",
|
||||
"Menu": [
|
||||
"清空软件历史记录",
|
||||
"退出程序"
|
||||
]
|
||||
},
|
||||
{
|
||||
"Name": "adb",
|
||||
"Menu": [
|
||||
"Adb 连接 UEngine",
|
||||
{
|
||||
"Name": "Adb 服务",
|
||||
"Menu": [
|
||||
"打开 Adb 服务",
|
||||
"停止 Adb 服务",
|
||||
"杀死 Adb 进程"
|
||||
]
|
||||
},
|
||||
"显示 Adb 连接的设备",
|
||||
"Adb 修改 UEngine 分辨率",
|
||||
"Adb 查看 UEngine 应用列表",
|
||||
"Adb 查看 UEngine 资源使用情况",
|
||||
"打开 Adb 连接 UEngine 的终端",
|
||||
"使用 Scrcpy 连接 UEngine(只支持使用 Snap 安装的 Scrcpy)",
|
||||
{
|
||||
"Name": "UEngine 使用 Adb",
|
||||
"Menu": [
|
||||
"Adb 连接 Connect UEngine",
|
||||
"允许此设备使用 Adb 连接本 UEngine(需要 Root)",
|
||||
"禁止任何设备使用 Adb 连接本 UEngine(需要 Root)"
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"Name": "UEngine",
|
||||
"Menu": [
|
||||
"UEngine 系统设置",
|
||||
"UEngine 应用打包",
|
||||
{
|
||||
"Name": "UEngine 服务",
|
||||
"Menu": [
|
||||
"启动 UEngine 服务(需要 Root)",
|
||||
"关闭 UEngine 服务(需要 Root)",
|
||||
"重启 UEngine 服务(需要 Root)"
|
||||
]
|
||||
},
|
||||
{
|
||||
"Name": "UEngine 网络桥接",
|
||||
"Menu": [
|
||||
"启动 UEngine 网络桥接(需要 Root)",
|
||||
"关闭 UEngine 网络桥接(需要 Root)",
|
||||
"重启 UEngine 网络桥接(需要 Root)",
|
||||
"加载 UEngine 网络桥接(需要 Root)",
|
||||
"强制加载 UEngine 网络桥接(需要 Root)"
|
||||
]
|
||||
},
|
||||
{
|
||||
"Name": "UEngine 快捷方式",
|
||||
"Menu": [
|
||||
"发送 UEngine 应用列表到桌面",
|
||||
"发送 UEngine 应用列表到启动器",
|
||||
"添加/删除指定的 UEngine 快捷方式",
|
||||
"清空所有 UEngine 快捷方式"
|
||||
]
|
||||
},
|
||||
{
|
||||
"Name": "UEngine 使用 Adb",
|
||||
"Menu": null
|
||||
},
|
||||
{
|
||||
"Name": "UEngine 数据",
|
||||
"Menu": [
|
||||
"打开 UEngine 根目录",
|
||||
"打开 UEngine 用户数据目录",
|
||||
"清空 UEngine 数据(需要 Root)"
|
||||
]
|
||||
},
|
||||
"UEngine 键盘映射",
|
||||
"UEngine 检测 CPU 是否支持运行",
|
||||
"删除 UEngine 运行检查",
|
||||
"重新安装 UEngine"
|
||||
]
|
||||
},
|
||||
{
|
||||
"Name": "关于",
|
||||
"Menu": [
|
||||
"程序官网",
|
||||
"关于",
|
||||
"反馈程序问题和建议"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"Uengine Apk Builder": {
|
||||
"Title": "UEngine APK 应用打包器",
|
||||
"label1": "要打包的 apk 路径:",
|
||||
"button2": "浏览",
|
||||
"button3": " 打包",
|
||||
"check": "使用前缀“uengine-dc”",
|
||||
"Menu": [
|
||||
{
|
||||
"Name": "程序",
|
||||
"Menu": [
|
||||
"退出程序"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"en_US.UTF-8": {
|
||||
"Main": {
|
||||
"MainWindow": {
|
||||
"Title": "UEngine Runner",
|
||||
"LabApkPath": "Install Or Uninstall Apk:",
|
||||
"BtnFindApk": "Find",
|
||||
"BtnInstall": "Install",
|
||||
"BtnShowUengineApp": "Open UEngine App List",
|
||||
"BtnUninstallApkBrowser": "Find",
|
||||
"BtnUninstall": "Uninstall",
|
||||
"Btngeticon": "Save Apk Icon",
|
||||
"BtnSaveApk": "Saving Installed App Apk",
|
||||
"BtnApkInformation": "Apk Information",
|
||||
"Menu": [
|
||||
{
|
||||
"Name": "Program",
|
||||
"Menu": [
|
||||
"Clean Program History",
|
||||
"Exit The Program"
|
||||
]
|
||||
},
|
||||
{
|
||||
"Name": "adb",
|
||||
"Menu": [
|
||||
"Use Adb To Connect UEngine",
|
||||
{
|
||||
"Name": "Adb Services",
|
||||
"Menu": [
|
||||
"Open Adb Service",
|
||||
"Close Adb Service",
|
||||
"Kill Adb Program"
|
||||
]
|
||||
},
|
||||
"Show Adb To Connect Devices",
|
||||
"Use Adb To Change UEngine Display Size",
|
||||
"Use Adb To Show UEngine Installing Program List",
|
||||
"Use Adb To Show UEngine Using System Resources",
|
||||
"Open Adb Console With UEngine",
|
||||
"Use Scrcpy Connect UEngine (Only Support Using Scrcpy With Installing the Scrcpy)",
|
||||
{
|
||||
"Name": "UEngine Use Adb",
|
||||
"Menu": [
|
||||
"Use Adb To Connect UEngine",
|
||||
"Allow This Devices Using Adb To Connect The UEngine (Allow Need Using For Root)",
|
||||
"Unallow Any Devices Using Adb To Connect The UEngine (Unallow Need Using For Root)"
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"Name": "UEngine",
|
||||
"Menu": [
|
||||
"UEngine System Control Panel",
|
||||
"UEngine Android App Builder",
|
||||
{
|
||||
"Name": "UEngine Service",
|
||||
"Menu": [
|
||||
"Open UEngine Service (It Need Run With Root)",
|
||||
"Close UEngine Service (It Need Run With Root)",
|
||||
"Restart UEngine Service (It Need Run With Root)"
|
||||
]
|
||||
},
|
||||
{
|
||||
"Name": "UEngine Internet Connecting",
|
||||
"Menu": [
|
||||
"Open UEngine Internet Bridge (It Need Run With Root)",
|
||||
"Close UEngine Internet Bridge (It Need Run With Root)",
|
||||
"Restart UEngine Internet Bridge (It Need Run With Root)",
|
||||
"Load UEngine Internet Bridge (It Need Run With Root)",
|
||||
"Force Loading UEngine Internet Bridge (It Need Run With Root)"
|
||||
]
|
||||
},
|
||||
{
|
||||
"Name": "UEngine App Link",
|
||||
"Menu": [
|
||||
"Send UEngine Program List To Desktop",
|
||||
"Send UEngine Program List To Launcher",
|
||||
"Add Or Delete UEngine App Link",
|
||||
"Delete All UEngine App Link"
|
||||
]
|
||||
},
|
||||
{
|
||||
"Name": "UEngine Use Adb",
|
||||
"Menu": null
|
||||
},
|
||||
{
|
||||
"Name": "UEngine Data",
|
||||
"Menu": [
|
||||
"Open UEngine Root Folder",
|
||||
"Open UEngine User Folder",
|
||||
"Delete All UEngine Data (It Need Run With Root)"
|
||||
]
|
||||
},
|
||||
"UEngine Keyboard",
|
||||
"UEngine Check CPU Can Or Can't Run",
|
||||
"Delete UEngine Runing Checking",
|
||||
"Reinstall UEngine"
|
||||
]
|
||||
},
|
||||
{
|
||||
"Name": "About",
|
||||
"Menu": [
|
||||
"Program WebSize",
|
||||
"Program Help",
|
||||
"Upload Problem And Advice"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"Uengine Apk Builder": {
|
||||
"Title": "UEngine APK Builder",
|
||||
"label1": "Will Build APK Path",
|
||||
"button2": "Find",
|
||||
"button3": " Build",
|
||||
"check": "Use Prefix With \"uengine-dc\"",
|
||||
"Menu": [
|
||||
{
|
||||
"Name": "Program",
|
||||
"Menu": [
|
||||
"Exit The Program"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -2,8 +2,8 @@
|
||||
Categories=System;
|
||||
Comment=UEngine 程序菜单
|
||||
Encoding=UTF-8
|
||||
Exec=/usr/bin/uengine-launch.sh --package=org.anbox.appmgr --component=org.anbox.appmgr.AppViewActivity
|
||||
Icon=/opt/apps/com.gitee.uengine.runner.spark/files/icon.png
|
||||
Exec=/usr/bin/uengine launch --package=org.anbox.appmgr --component=org.anbox.appmgr.AppViewActivity
|
||||
Icon=/opt/apps/uengine-runner/icon.png
|
||||
MimeType=
|
||||
Name=UEngine 程序菜单
|
||||
StartupWMClass=UEngine 程序菜单
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
"https://gitee.com/gfdgd-xi/uengine-runner",
|
||||
"https://github.com/gfdgd-xi/uengine-runner"
|
||||
],
|
||||
"Version": "1.4.2",
|
||||
"Version": "1.5.1",
|
||||
"System": "Linux(deepin/UOS)",
|
||||
"Tips": [
|
||||
"更多可见:https://gitee.com/gfdgd-xi/uengine-runner/wikis",
|
||||
@@ -26,6 +26,27 @@
|
||||
"4、如果想要使用adb连接UEngine或其他手机,请使用 1.2.0 以前的版本。(如需连接UEngine请安装adb补丁)"
|
||||
],
|
||||
"Update": [
|
||||
"V1.5.1:",
|
||||
"※1、精简用户界面,合并安装和卸载输入框和浏览按钮等",
|
||||
"※2、修复安装以其的程序图标无法点击进入的问题(deepin 社区版不存在此问题)",
|
||||
"※3、支持在程序本体反馈问题",
|
||||
"4、修复了菜单栏的部分显示问题",
|
||||
"5、支持显示 apk 的部分信息",
|
||||
"6、支持删除 UEngine 程序运行检查以及重新安装 UEngine 的功能",
|
||||
"7、自带有跳过家庭版必须有指定包名才能运行程序限制的脚本",
|
||||
"8、补回依赖包“adb”",
|
||||
"",
|
||||
"V1.5.0:",
|
||||
"※1、部分窗口支持英语",
|
||||
"2、修复在英语状态下启动器图标名称异常的问题",
|
||||
"",
|
||||
"V1.4.3:",
|
||||
"※1、支持打包器打包的包名带前缀“uengine-dc”",
|
||||
"※2、修复了两种情况可能导致程序卡住/出错无法继续运行的情况(配置文件夹不齐全和获取版本信息卡住两种情况)",
|
||||
"※3、修改了 UEngine 打包器打包的应用包名可能有大写的情况",
|
||||
"4、支持一键使用 Scrcpy 连接 UEngine(①先安装 adb 破解补丁;②请确保是使用snap安装的 Scrcpy【目前只支持 snap 安装的 Scrcpy 进行连接】)",
|
||||
"5、支持右键打包 apk",
|
||||
"",
|
||||
"V1.4.2:",
|
||||
"※1、添加adb破解补丁(用于可以让adb连接UEngine)并支持adb的部分操作;",
|
||||
"2、菜单栏的项目添加以及外观优化;",
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"Package": "com.gitee.uengine.runner.spark",
|
||||
"Update": true,
|
||||
"Version": "1.5.1",
|
||||
"Url": "https://gfdgd-xi.github.io/update-program/data/UpdateInformation.json"
|
||||
}
|
||||
@@ -1,6 +1,7 @@
|
||||
{
|
||||
"Package": "com.gitee.uengine.runner.spark",
|
||||
"Package": "spark-uengine-runner",
|
||||
"Update": true,
|
||||
"Version": "1.4.2",
|
||||
"Version": "1.5.1",
|
||||
"Url": "https://gfdgd-xi.github.io/update-program/data/UpdateInformation.json"
|
||||
|
||||
}
|
||||
@@ -148,7 +148,7 @@ done
|
||||
exit 0'''.format(apkPackageName)
|
||||
desktopFile = '''[Desktop Entry]
|
||||
Categories=Other;
|
||||
Exec=/usr/bin/uengine-launch.sh --action=android.intent.action.MAIN --package={} --component={}
|
||||
Exec=uengine launch --action=android.intent.action.MAIN --package={} --component={}
|
||||
Icon=/usr/share/uengine/icons/{}.png
|
||||
Terminal=false
|
||||
Type=Application
|
||||
@@ -187,6 +187,7 @@ def DisabledAndEnbled(choose):
|
||||
userChoose = {True: tk.DISABLED, False: tk.NORMAL}
|
||||
a = userChoose[choose]
|
||||
combobox1.configure(state=a)
|
||||
check.configure(state=a)
|
||||
button2.configure(state=a)
|
||||
button3.configure(state=a)
|
||||
|
||||
@@ -204,6 +205,10 @@ def ReStartProgram():
|
||||
def get_home():
|
||||
return os.path.expanduser('~')
|
||||
|
||||
# 获取当前语言
|
||||
def get_now_lang()->"获取当前语言":
|
||||
return os.getenv('LANG')
|
||||
|
||||
# 获取用户桌面目录
|
||||
def get_desktop_path():
|
||||
for line in open(get_home() + "/.config/user-dirs.dirs"): # 以行来读取配置文件
|
||||
@@ -256,6 +261,7 @@ def GetApkActivityName(apkFilePath):
|
||||
return line
|
||||
|
||||
def GetApkPackageName(apkFilePath):
|
||||
# 提示:此函数有被为此程序适配而调整,如果需要最原始(无调整的)请使用主程序(此为附属组件)里的函数
|
||||
info = GetApkInformation(apkFilePath)
|
||||
for line in info.split('\n'):
|
||||
if "package:" in line:
|
||||
@@ -264,7 +270,10 @@ def GetApkPackageName(apkFilePath):
|
||||
line = line.replace("name=", "")
|
||||
line = line.replace("'", "")
|
||||
line = line.replace(" ", "")
|
||||
return line
|
||||
# 此较为特殊,因为需要判断用户是否要添加前缀
|
||||
if qianZhui.get() == True:
|
||||
return "uengine-dc-{}".format(line).lower()
|
||||
return line.lower()
|
||||
|
||||
def GetApkVersion(apkFilePath):
|
||||
info = GetApkInformation(apkFilePath)
|
||||
@@ -285,7 +294,7 @@ def BuildUengineDesktop(packageName, activityName, showName, iconPath, savePath)
|
||||
[Desktop Entry]
|
||||
Categories=app;
|
||||
Encoding=UTF-8
|
||||
Exec=/usr/bin/uengine-launch.sh --action=android.intent.action.MAIN --package={} --component={}
|
||||
Exec=/usr/bin/uengine launch.sh --action=android.intent.action.MAIN --package={} --component={}
|
||||
GenericName={}
|
||||
Icon={}
|
||||
MimeType=
|
||||
@@ -304,16 +313,16 @@ def GetApkChineseLabel(apkFilePath):
|
||||
line = line.replace("'", "")
|
||||
return line
|
||||
|
||||
def GetApkIconInApk(apkFilePath):
|
||||
info = GetApkInformation(apkFilePath)
|
||||
for line in info.split('\n'):
|
||||
if "application:" in line:
|
||||
line = line[line.index("icon='"): -1]
|
||||
line = line.replace("icon='", "")
|
||||
if "'" in line:
|
||||
line = line[0: line.index("'")]
|
||||
return line
|
||||
return line
|
||||
#def GetApkIconInApk(apkFilePath):
|
||||
# info = GetApkInformation(apkFilePath)
|
||||
# for line in info.split('\n'):
|
||||
# if "application:" in line:
|
||||
# line = line[line.index("icon='"): -1]
|
||||
# line = line.replace("icon='", "")
|
||||
# if "'" in line:
|
||||
# line = line[0: line.index("'")]
|
||||
# return line
|
||||
# return line
|
||||
|
||||
#合并两个函数到一起
|
||||
def SaveApkIcon(apkFilePath, iconSavePath)->"获取 apk 文件的图标":
|
||||
@@ -372,16 +381,20 @@ def get_home():
|
||||
# 程序信息
|
||||
###########################
|
||||
programPath = os.path.split(os.path.realpath(__file__))[0] # 返回 string
|
||||
lang = get_now_lang()
|
||||
langFile = json.loads(readtxt(programPath + "/Language.json"))
|
||||
if not lang in langFile.keys():
|
||||
lang = "en_US.UTF-8"
|
||||
information = json.loads(readtxt(programPath + "/information.json"))
|
||||
version = information["Version"]
|
||||
title = "UEngine APK 应用打包器 {}".format(version)
|
||||
title = "{} {}".format(langFile[lang]["Uengine Apk Builder"]["Title"], version)
|
||||
iconPath = "{}/icon.png".format(os.path.split(os.path.realpath(__file__))[0])
|
||||
|
||||
###########################
|
||||
# 加载配置
|
||||
###########################
|
||||
if not os.path.exists(get_home() + "/.config/uengine-runner"): # 如果没有配置文件夹
|
||||
os.mkdir(get_home() + "/.config/uengine-runner") # 创建配置文件夹
|
||||
os.makedirs(get_home() + "/.config/uengine-runner") # 创建配置文件夹
|
||||
if not os.path.exists(get_home() + "/.config/uengine-runner/FindApkBuildHistory.json"): # 如果没有配置文件
|
||||
write_txt(get_home() + "/.config/uengine-runner/FindApkBuildHistory.json", json.dumps({})) # 创建配置文件
|
||||
if not os.path.exists(get_home() + "/.config/uengine-runner/FindApkBuild.json"): # 如果没有配置文件
|
||||
@@ -396,34 +409,43 @@ findApkHistory = list(json.loads(readtxt(get_home() + "/.config/uengine-runner/F
|
||||
# 窗口创建
|
||||
###########################
|
||||
win = tk.Tk()
|
||||
|
||||
qianZhui = tk.BooleanVar()
|
||||
|
||||
window = ttk.Frame(win)
|
||||
frame2 = ttk.Frame(window)
|
||||
label1 = ttk.Label(window, text=langFile[lang]["Uengine Apk Builder"]["label1"])
|
||||
combobox1 = ttk.Combobox(window, width=100)
|
||||
button2 = ttk.Button(window, text=langFile[lang]["Uengine Apk Builder"]["button2"], command=FindApk)
|
||||
button3 = ttk.Button(frame2, text=langFile[lang]["Uengine Apk Builder"]["button3"], command=BuildDeb)
|
||||
check = ttk.Checkbutton(frame2, variable=qianZhui,text=langFile[lang]["Uengine Apk Builder"]["check"])
|
||||
textbox1 = tk.Text(window, width=100)
|
||||
menu = tk.Menu(window, background="white") # 设置菜单栏
|
||||
programmenu = tk.Menu(menu, tearoff=0, background="white") # 设置“程序”菜单栏
|
||||
|
||||
menu.add_cascade(label=langFile[lang]["Uengine Apk Builder"]["Menu"][0]["Name"], menu=programmenu)
|
||||
programmenu.add_command(label=langFile[lang]["Uengine Apk Builder"]["Menu"][0]["Menu"][0], command=window.quit) # 设置“退出程序”项
|
||||
# 设置控件
|
||||
combobox1['value'] = findApkHistory
|
||||
textbox1.configure(state=tk.DISABLED)
|
||||
textbox1.config(foreground='white', background='black')
|
||||
# 如果有参数
|
||||
if len(sys.argv) > 1:
|
||||
combobox1.set(sys.argv[1])
|
||||
# 设置窗口
|
||||
style = ttkthemes.ThemedStyle(win)
|
||||
style.set_theme("breeze")
|
||||
win.attributes('-alpha', 0.5)
|
||||
win.title(title)
|
||||
win.resizable(0, 0)
|
||||
win.iconphoto(False, tk.PhotoImage(file=iconPath))
|
||||
frame2 = ttk.Frame(window)
|
||||
label1 = ttk.Label(window, text="要打包的 apk 路径:")
|
||||
combobox1 = ttk.Combobox(window, width=100)
|
||||
button2 = ttk.Button(window, text="浏览", command=FindApk)
|
||||
button3 = ttk.Button(frame2, text="打包", command=BuildDeb)
|
||||
textbox1 = tk.Text(window, width=100)
|
||||
menu = tk.Menu(window, background="white") # 设置菜单栏
|
||||
programmenu = tk.Menu(menu, tearoff=0, background="white") # 设置“程序”菜单栏
|
||||
menu.add_cascade(label="程序", menu=programmenu)
|
||||
programmenu.add_command(label="退出程序", command=window.quit) # 设置“退出程序”项
|
||||
# 设置控件
|
||||
combobox1['value'] = findApkHistory
|
||||
textbox1.configure(state=tk.DISABLED)
|
||||
textbox1.config(foreground='white', background='black')
|
||||
#
|
||||
win.config(menu=menu) # 显示菜单栏
|
||||
label1.grid(row=2, column=0)
|
||||
combobox1.grid(row=2, column=1)
|
||||
#button1.grid(column=0, row=0)
|
||||
button2.grid(row=2, column=2)
|
||||
button3.grid(row=0, column=0)
|
||||
button3.grid(row=0, column=1)
|
||||
check.grid(row=0, column=0)
|
||||
frame2.grid(row=3, columnspa=3)
|
||||
textbox1.grid(row=4, columnspa=3)
|
||||
window.pack()
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
[Desktop Entry]
|
||||
Categories=system;Utility;
|
||||
Encoding=UTF-8
|
||||
Exec=uengine-runner -ci %F
|
||||
GenericName=APK Install(UEngine)
|
||||
GenericName[zh_CN]=APK 安装(UEngine)
|
||||
Icon=/opt/apps/uengine-runner/icon.png
|
||||
MimeType=application/apk;
|
||||
Name=APK Install(UEngine)
|
||||
Name[zh_CN]=APK 安装(UEngine)
|
||||
NoDisplay=true
|
||||
OnlyShowIn=Unity;
|
||||
StartupNotify=false
|
||||
StartupWMClass=APK 安装(UEngine)
|
||||
Terminal=false
|
||||
Type=Application
|
||||
@@ -2,16 +2,15 @@
|
||||
# 使用系统默认的 python3 运行
|
||||
###########################################################################################
|
||||
# 作者:gfdgd xi<3025613752@qq.com>
|
||||
# 版本:1.4.0
|
||||
# 更新时间:2021年8月26日
|
||||
# 版本:1.5.1
|
||||
# 更新时间:2021年10月05日(国庆了)
|
||||
# 感谢:anbox、deepin 和 UOS
|
||||
# 基于 Python3 的 tkinter 构建
|
||||
# 更新:actionchen<917981399@qq.com>
|
||||
# 更新:gfdgd xi<3025613752@qq.com>、actionchen<917981399@qq.com>
|
||||
###########################################################################################
|
||||
#################
|
||||
# 引入所需的库
|
||||
#################
|
||||
from genericpath import exists
|
||||
import os
|
||||
import sys
|
||||
import time
|
||||
@@ -23,13 +22,15 @@ import threading
|
||||
import ttkthemes
|
||||
import webbrowser
|
||||
import subprocess
|
||||
import PIL.Image as Image
|
||||
import PIL.ImageTk as ImageTk
|
||||
import tkinter as tk
|
||||
import tkinter.ttk as ttk
|
||||
import tkinter.messagebox as messagebox
|
||||
import tkinter.filedialog as filedialog
|
||||
import tkinter.simpledialog as simpledialog
|
||||
from getxmlimg import getsavexml
|
||||
from tkinter.constants import TOP
|
||||
|
||||
|
||||
# 卸载程序
|
||||
def UninstallProgram(package: "apk 包名")->"卸载程序":
|
||||
@@ -40,37 +41,38 @@ def UninstallProgram(package: "apk 包名")->"卸载程序":
|
||||
os.remove("{}/.local/share/applications/{}.desktop".format(get_home(), package))
|
||||
if os.path.exists("{}/{}.desktop".format(get_desktop_path(), package)):
|
||||
os.remove("{}/{}.desktop".format(get_desktop_path(), package))
|
||||
fineUninstallApkHistory.append(ComboUninstallPath.get())
|
||||
ComboUninstallPath['value'] = fineUninstallApkHistory
|
||||
write_txt(get_home() + "/.config/uengine-runner/FindUninstallApkHistory.json", str(json.dumps(ListToDictionary(fineUninstallApkHistory)))) # 将历史记录的数组转换为字典并写入
|
||||
findApkHistory.append(ComboInstallPath.get())
|
||||
ComboInstallPath['value'] = findApkHistory
|
||||
write_txt(get_home() + "/.config/uengine-runner/FindApkHistory.json", str(json.dumps(ListToDictionary(findApkHistory)))) # 将历史记录的数组转换为字典并写入
|
||||
messagebox.showinfo(message="操作执行完毕!", title="提示")
|
||||
DisabledAndEnbled(False)
|
||||
return Return
|
||||
except:
|
||||
traceback.print_exc()
|
||||
messagebox.showerror(title="错误", message=traceback.format_exc())
|
||||
DisabledAndEnbled(False)
|
||||
|
||||
# 卸载文本框的浏览按钮事件
|
||||
def BtnFindUninstallApkClk():
|
||||
path = filedialog.askopenfilename(title="选择 Apk", filetypes=[("APK 文件", "*.apk"), ("所有文件", "*.*")], initialdir=json.loads(readtxt(get_home() + "/.config/uengine-runner/FindUninstallApk.json"))["path"])
|
||||
if path != "" and path != "()":
|
||||
try:
|
||||
ComboUninstallPath.set(path)
|
||||
write_txt(get_home() + "/.config/uengine-runner/FindUninstallApk.json", json.dumps({"path": os.path.dirname(path)})) # 写入配置文件
|
||||
except:
|
||||
pass
|
||||
#def BtnFindUninstallApkClk():
|
||||
# path = filedialog.askopenfilename(title="选择 Apk", filetypes=[("APK 文件", "*.apk"), ("所有文件", "*.*")], initialdir=json.loads(readtxt(get_home() + "/.config/uengine-runner/FindUninstallApk.json"))["path"])
|
||||
# if path != "" and path != "()":
|
||||
# try:
|
||||
# ComboUninstallPath.set(path)
|
||||
# write_txt(get_home() + "/.config/uengine-runner/FindUninstallApk.json", json.dumps({"path": os.path.dirname(path)})) # 写入配置文件
|
||||
# except:
|
||||
# pass
|
||||
|
||||
# 卸载按钮事件
|
||||
def ButtonClick8():
|
||||
if ComboUninstallPath.get() is "":
|
||||
if ComboInstallPath.get() is "":
|
||||
messagebox.showerror(title="提示", message="信息没有填写完整,无法继续卸载 APK")
|
||||
return
|
||||
DisabledAndEnbled(True)
|
||||
if os.path.exists(ComboUninstallPath.get()):
|
||||
path = GetApkPackageName(ComboUninstallPath.get())
|
||||
if os.path.exists(ComboInstallPath.get()):
|
||||
path = GetApkPackageName(ComboInstallPath.get())
|
||||
else:
|
||||
path = ComboUninstallPath.get()
|
||||
UninstallProgram(path)
|
||||
messagebox.showinfo(message="操作执行完毕!", title="提示")
|
||||
DisabledAndEnbled(False)
|
||||
path = ComboInstallPath.get()
|
||||
threading.Thread(target=UninstallProgram, args=[path]).start()
|
||||
|
||||
# 浏览窗口
|
||||
# temp strs
|
||||
@@ -89,8 +91,8 @@ def FindApk()->"浏览窗口":
|
||||
|
||||
# 安装按钮事件
|
||||
def Button3Install():
|
||||
if ComboInstallPath.get() is "":
|
||||
messagebox.showerror(title="提示", message="信息没有填写完整,无法继续安装 APK")
|
||||
if ComboInstallPath.get() is "" or not os.path.exists(ComboInstallPath.get()):
|
||||
messagebox.showerror(title="提示", message="信息没有填写完整或错误,无法继续安装 APK")
|
||||
return
|
||||
DisabledAndEnbled(True)
|
||||
threading.Thread(target=InstallApk, args=(ComboInstallPath.get(),)).start()
|
||||
@@ -100,7 +102,7 @@ def InstallApk(path: "apk 路径", quit: "是否静默安装" = False):
|
||||
try:
|
||||
if not os.path.exists("{}/.local/share/applications/uengine/".format(get_home())):
|
||||
print("Mkdir")
|
||||
os.mkdir("{}/.local/share/applications/uengine/".format(get_home()))
|
||||
os.makedirs("{}/.local/share/applications/uengine/".format(get_home()))
|
||||
print("start install apk")
|
||||
global findApkHistory
|
||||
commandReturn = GetCommandReturn("pkexec /usr/bin/uengine-session-launch-helper -- uengine install --apk='{}'".format(path))
|
||||
@@ -137,14 +139,16 @@ def DisabledAndEnbled(choose: "启动或者禁用")->"禁用或启动所有控
|
||||
userChoose = {True: tk.DISABLED, False: tk.NORMAL}
|
||||
a = userChoose[choose]
|
||||
ComboInstallPath.configure(state=a)
|
||||
ComboUninstallPath.configure(state=a)
|
||||
#ComboUninstallPath.configure(state=a)
|
||||
BtnFindApk.configure(state=a)
|
||||
BtnInstall.configure(state=a)
|
||||
BtnShowUengineApp.configure(state=a)
|
||||
BtnUninstallApkBrowser.configure(state=a)
|
||||
#BtnUninstallApkBrowser.configure(state=a)
|
||||
BtnUninstall.configure(state=a)
|
||||
Btngeticon.configure(state=a)
|
||||
BtnSaveApk.configure(state=a)
|
||||
BtnApkInformation.configure(state=a)
|
||||
LabApkPath.configure(state=a)
|
||||
|
||||
# 需引入 subprocess
|
||||
# 运行系统命令并获取返回值
|
||||
@@ -152,33 +156,39 @@ def GetCommandReturn(cmd: "命令")->"运行系统命令并获取返回值":
|
||||
# cmd 是要获取输出的命令
|
||||
return subprocess.getoutput(cmd)
|
||||
|
||||
def GetSystemVersion():
|
||||
systemInformation = readtxt("/etc/os-release")
|
||||
for systemInformation in systemInformation.split('\n'):
|
||||
if "PRETTY_NAME=" in systemInformation:
|
||||
return systemInformation.replace("PRETTY_NAME=", "").replace('"', '')
|
||||
|
||||
# 打开所有窗口事件
|
||||
def Button5Click():
|
||||
threading.Thread(target=OpenUengineProgramList).start()
|
||||
|
||||
# 打开“uengine 所有程序列表”
|
||||
def OpenUengineProgramList()->"打开“uengine 所有程序列表”":
|
||||
os.system("/usr/bin/uengine-launch.sh --package=org.anbox.appmgr --component=org.anbox.appmgr.AppViewActivity")
|
||||
os.system("uengine launch --package=org.anbox.appmgr --component=org.anbox.appmgr.AppViewActivity")
|
||||
|
||||
# 显示“关于这个程序”窗口
|
||||
def about_this_program()->"显示“关于这个程序”窗口":
|
||||
global about
|
||||
global title
|
||||
global iconPath
|
||||
mess = tk.Toplevel()
|
||||
message = ttk.Frame(mess)
|
||||
mess.resizable(0, 0)
|
||||
mess.title("关于 {}".format(title))
|
||||
#mess.iconphoto(False, tk.PhotoImage(file=iconPath))
|
||||
img = ImageTk.PhotoImage(Image.open(iconPath))
|
||||
LabApkPath = ttk.Label(message, image=img)
|
||||
label2 = ttk.Label(message, text=about)
|
||||
button1 = ttk.Button(message, text="确定", command=mess.withdraw)
|
||||
LabApkPath.pack()
|
||||
label2.pack()
|
||||
button1.pack(side="bottom")
|
||||
message.pack()
|
||||
mess.mainloop()
|
||||
#def about_this_program()->"显示“关于这个程序”窗口":
|
||||
# global about
|
||||
# global title
|
||||
# global iconPath
|
||||
# mess = tk.Toplevel()
|
||||
# message = ttk.Frame(mess)
|
||||
# mess.resizable(0, 0)
|
||||
# mess.title("关于 {}".format(title))
|
||||
# #mess.iconphoto(False, tk.PhotoImage(file=iconPath))
|
||||
# img = ImageTk.PhotoImage(Image.open(iconPath))
|
||||
# LabApkPath = ttk.Label(message, image=img)
|
||||
# label2 = ttk.Label(message, text=about)
|
||||
# button1 = ttk.Button(message, text="确定", command=mess.withdraw)
|
||||
# LabApkPath.pack()
|
||||
# label2.pack()
|
||||
# button1.pack(side="bottom")
|
||||
# message.pack()
|
||||
# mess.mainloop()
|
||||
|
||||
# 显示“提示”窗口
|
||||
def helps()->"显示“提示”窗口":
|
||||
@@ -212,6 +222,10 @@ def CleanProgramHistory()->"清理历史记录":
|
||||
def get_home()->"获取用户主目录":
|
||||
return os.path.expanduser('~')
|
||||
|
||||
# 获取当前语言
|
||||
def get_now_lang()->"获取当前语言":
|
||||
return os.getenv('LANG')
|
||||
|
||||
# 发送“启动 uengine 所有程序”的 .desktop 文件到桌面
|
||||
def SendUengineAndroidListForDesktop()->"发送“启动 uengine 所有程序”的 .desktop 文件到桌面":
|
||||
global desktop
|
||||
@@ -321,7 +335,7 @@ def BuildUengineDesktop(packageName: "软件包名", activityName: "activity", s
|
||||
things = '''[Desktop Entry]
|
||||
Categories=app;
|
||||
Encoding=UTF-8
|
||||
Exec=/usr/bin/uengine-launch.sh --action=android.intent.action.MAIN --package={} --component={}
|
||||
Exec=uengine launch --action=android.intent.action.MAIN --package={} --component={}
|
||||
GenericName={}
|
||||
Icon={}
|
||||
MimeType=
|
||||
@@ -455,61 +469,19 @@ def UengineRestart()->"重启 uengine 服务":
|
||||
os.system("systemctl restart uengine*")
|
||||
DisabledAndEnbled(False)
|
||||
|
||||
# 运行命令的窗口
|
||||
class InstallWindow():
|
||||
# 显示窗口
|
||||
def ShowWindows(command):
|
||||
global message
|
||||
global text
|
||||
global installTipsText
|
||||
global progressbar
|
||||
message = tk.Toplevel()
|
||||
message.iconphoto(False, tk.PhotoImage(file=iconPath))
|
||||
messageFrame = ttk.Frame(message)
|
||||
installTipsText = tk.StringVar()
|
||||
message.title("正在操作……")
|
||||
installTipsText.set("正在操作……")
|
||||
installTips = ttk.Label(messageFrame, textvariable=installTipsText)
|
||||
progressbar = ttk.Progressbar(messageFrame, length=500, mode='indeterminate')
|
||||
text = tk.Text(messageFrame)
|
||||
text.config(background="black", foreground="white")
|
||||
installTips.pack()
|
||||
progressbar.pack(fill="x")
|
||||
text.pack(expand='yes', fill='both')
|
||||
messageFrame.pack(expand='yes', fill='both')
|
||||
print("Run!")
|
||||
threading.Thread(target=InstallWindow.RunCommand, args=[command]).start()
|
||||
message.mainloop()
|
||||
|
||||
# 运行命令并显示
|
||||
def RunCommand(command):
|
||||
global message
|
||||
global text
|
||||
global progressbar
|
||||
global installTipsText
|
||||
InstallWindow.AddText("$>" + command + "\n")
|
||||
progressbar.start()
|
||||
result = subprocess.getoutput(command)
|
||||
InstallWindow.AddText(result)
|
||||
messagebox.showinfo(title="提示", message="操作完毕!")
|
||||
installTipsText.set("操作完毕!")
|
||||
message.title("操作完毕!")
|
||||
progressbar.stop()
|
||||
progressbar["value"] = 100
|
||||
# 特意添加!
|
||||
DisabledAndEnbled(False)
|
||||
print("Clean!")
|
||||
if messagebox.askyesno(title="提示", message="清空完毕,将会在重启后生效,是否要重启?"):
|
||||
print("reboot")
|
||||
os.system("reboot")
|
||||
|
||||
# 添加文本
|
||||
def AddText(things):
|
||||
global text
|
||||
text.configure(state=tk.NORMAL)
|
||||
text.insert("end", things)
|
||||
text.configure(state=tk.DISABLED)
|
||||
|
||||
def ScrcpyConnectUengine():
|
||||
if os.path.exists("/snap/bin/scrcpy"):
|
||||
threading.Thread(target=os.system, args=["/snap/bin/scrcpy -s '192.168.250.2:5555'"]).start()
|
||||
return
|
||||
if messagebox.askyesno(title="提示", message="你没有安装Scrcpy(指使用Snap安装),\n如果你使用了其他方法安装了Scrcpy,可以输入命令“scrcpy -s '192.168.250.2:5555'”,\n是否现在要使用Snap安装Scrcpy?"):
|
||||
if not os.path.exists("/tmp/uengine-runner"):
|
||||
os.makedirs("/tmp/uengine-runner")
|
||||
write_txt("/tmp/uengine-runner/InstallScrcpy.sh", '''#!/bin/bash
|
||||
sudo apt install snapd -y
|
||||
sudo snap refresh
|
||||
sudo snap install scrcpy''')
|
||||
threading.Thread(target=InstallWindow.ShowWindows, args=["chmod 777 /tmp/uengine-runner/InstallScrcpy.sh -Rv && pkexec /tmp/uengine-runner/InstallScrcpy.sh"]).start()
|
||||
return
|
||||
|
||||
# 获取用户桌面目录
|
||||
def get_desktop_path()->"获取用户桌面目录":
|
||||
@@ -546,16 +518,24 @@ def SaveInstallUengineApp():
|
||||
traceback.print_exc()
|
||||
messagebox.showerror(title="错误", message=traceback.format_exc())
|
||||
|
||||
def UengineCheckCpu():
|
||||
english = GetCommandReturn("uengine check-features")
|
||||
#chinese = GetCommandReturn("trans -b \"{}\"".format(english)) # 获取中文翻译
|
||||
#for i in chinese.split("\n"): # 删除提示
|
||||
# if "Did you mean:" in i:
|
||||
# chinese = chinese.replace(i, "").replace("\n", "")
|
||||
messagebox.showinfo(title="提示", message="{}".format(english))
|
||||
|
||||
# 获取用户主目录
|
||||
def get_home()->"获取用户主目录":
|
||||
return os.path.expanduser('~')
|
||||
|
||||
# 删除所有的 uengine 应用快捷方式
|
||||
def CleanAllUengineDesktopLink():
|
||||
if messagebox.askokcancel(title="提示", message="你确定要删除所有的 uengine 应用快捷方式吗?"):
|
||||
if messagebox.askokcancel(title="提示", message="你确定要删除所有的 UEngine 应用快捷方式吗?"):
|
||||
try:
|
||||
shutil.rmtree("{}/.local/share/applications/uengine".format(get_home()))
|
||||
os.mkdir("{}/.local/share/applications/uengine".format(get_home()))
|
||||
os.makedirs("{}/.local/share/applications/uengine".format(get_home()))
|
||||
messagebox.showinfo(title="提示", message="删除完毕!")
|
||||
except:
|
||||
traceback.print_exc()
|
||||
@@ -573,6 +553,276 @@ def OpenUengineRootData():
|
||||
def OpenUengineUserData():
|
||||
threading.Thread(target=os.system, args=["xdg-open ~/安卓应用文件"]).start()
|
||||
|
||||
# 终端显示 adb 命令行
|
||||
def AdbShellShowInTer():
|
||||
os.system("adb connect 192.168.250.2:5555")
|
||||
threading.Thread(target=os.system, args=["deepin-terminal -w ~ -e 'adb -s 192.168.250.2:5555 shell'"]).start()
|
||||
|
||||
# 终端显示 adb top
|
||||
def AdbCPUAndRAWShowInTer():
|
||||
os.system("adb connect 192.168.250.2:5555")
|
||||
threading.Thread(target=os.system, args=["deepin-terminal -w ~ -e 'adb -s 192.168.250.2:5555 shell top'"]).start()
|
||||
|
||||
def UengineSettingShow():
|
||||
threading.Thread(target=os.system, args=["/usr/bin/uengine launch --action=android.intent.action.MAIN --package=com.android.settings --component=com.android.settings.Settings"]).start()
|
||||
|
||||
# 杀死 adb 进程
|
||||
def AdbKillAdbProgress():
|
||||
os.system("killall adb")
|
||||
messagebox.showinfo(title="提示", message="完成!")
|
||||
|
||||
# 关闭 adb 服务
|
||||
def AdbStopServer():
|
||||
os.system("adb kill-server")
|
||||
messagebox.showinfo(title="提示", message="完成!")
|
||||
|
||||
# 开启 adb 服务
|
||||
def AdbStartServer():
|
||||
os.system("adb start-server")
|
||||
messagebox.showinfo(title="提示", message="完成!")
|
||||
|
||||
def ReinstallUengine():
|
||||
threading.Thread(target=os.system, args=["deepin-terminal -C 'pkexec apt reinstall uengine uengine-android-image uengine-modules-dkms -y && notify-send -i uengine \"安装完毕!\"'"]).start()
|
||||
|
||||
def DelUengineCheck():
|
||||
if not os.path.exists("/usr/share/uengine/uengine-check-runnable.sh"):
|
||||
messagebox.showinfo(title="提示", message="本功能已经被删除,无法重复删除!")
|
||||
return
|
||||
if messagebox.askokcancel(title="警告", message="删除后将无法使用本软件恢复\n如果需要恢复本功能,请重新安装 UEngine!"):
|
||||
threading.Thread(target=InstallWindow.ShowWindows, args=["pkexec rm -v /usr/share/uengine/uengine-check-runnable.sh"]).start()
|
||||
|
||||
# 使用 adb 连接 uengine
|
||||
def UengineConnectAdb():
|
||||
messagebox.showinfo(title="提示", message=subprocess.getoutput("adb connect 192.168.250.2:5555"))
|
||||
|
||||
# 允许用户使用 adb
|
||||
def UengineUseAdb():
|
||||
# 因为需要 root,所以需要开二号程序
|
||||
os.system("adb start-server") # 保证有生成文件
|
||||
os.system("pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY {}/uengine-useadb 0 '{}'".format(programPath, "{}/.android/adbkey.pub".format(get_home()))) # 写入配置
|
||||
if messagebox.askyesno(title="提示", message="是否要连接到 UEngine?"):
|
||||
UengineConnectAdb()
|
||||
|
||||
def UengineDoNotUseAdb():
|
||||
# 因为需要 root,所以需要开二号程序
|
||||
if not os.path.exists("/data/uengine/data/data/misc/adb/adb_keys"):
|
||||
messagebox.showinfo(title="提示", message="你的 uengine 在设置前已经禁用 adb 连接,无需重复设置")
|
||||
return
|
||||
threading.Thread(target=os.system, args=["pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY {}/uengine-useadb 1".format(programPath)]).start()
|
||||
|
||||
def UengineRunnerBugUpload():
|
||||
threading.Thread(target=os.system, args=[programPath + "/uengine-runner-update-bug"]).start()
|
||||
|
||||
def AdbConnectDeviceShow():
|
||||
ShowTextTipsWindow.ShowWindow(subprocess.getoutput("adb devices -l"))
|
||||
|
||||
def AdbAndroidInstallAppList():
|
||||
ShowTextTipsWindow.ShowWindow('''系统应用:
|
||||
{}
|
||||
第三方应用:
|
||||
{}
|
||||
全部应用以及apk所在路径:
|
||||
{}'''.format(subprocess.getoutput("adb -s 192.168.250.2:5555 shell pm list packages -s"),
|
||||
subprocess.getoutput("adb -s 192.168.250.2:5555 shell pm list package -3"),
|
||||
subprocess.getoutput("adb -s 192.168.250.2:5555 shell pm list packages -f")))
|
||||
|
||||
def GetApkVersion(apkFilePath):
|
||||
info = GetApkInformation(apkFilePath)
|
||||
for line in info.split('\n'):
|
||||
if "package:" in line:
|
||||
if "compileSdkVersion='" in line:
|
||||
line = line.replace(line[line.index("compileSdkVersion='"): -1], "")
|
||||
if "platform" in line:
|
||||
line = line.replace(line[line.index("platform"): -1], "")
|
||||
line = line.replace(line[0: line.index("versionName='")], "")
|
||||
line = line.replace("versionName='", "")
|
||||
line = line.replace("'", "")
|
||||
line = line.replace(" ", "")
|
||||
return line
|
||||
|
||||
class ApkInformation():
|
||||
def ShowWindows():
|
||||
global fullInformation
|
||||
global path
|
||||
global tab1
|
||||
path = ComboInstallPath.get()
|
||||
|
||||
message = tk.Toplevel()
|
||||
|
||||
tab = ttk.Notebook(message)
|
||||
|
||||
tab1 = ttk.Frame(message)
|
||||
tab2 = ttk.Frame(message)
|
||||
|
||||
fullInformation = tk.Text(tab2)
|
||||
|
||||
tab.add(tab1, text="简化版")
|
||||
tab.add(tab2, text="完整版")
|
||||
|
||||
fullInformation.pack(expand="yes", fill="both")
|
||||
|
||||
tab.pack(expand="yes", fill="both")
|
||||
|
||||
threading.Thread(target=ApkInformation.GetInformation).start()
|
||||
|
||||
message.mainloop()
|
||||
|
||||
def GetInformation():
|
||||
# 获取详细信息
|
||||
fullInformation.configure(state=tk.NORMAL)
|
||||
fullInformation.insert("1.0", GetApkInformation(path))
|
||||
fullInformation.configure(state=tk.DISABLED)
|
||||
# 获取图标
|
||||
SaveApkIcon(path, "/tmp/uengine-runner-android-app-icon.png")
|
||||
# 读取图标
|
||||
image = Image.open("/tmp/uengine-runner-android-app-icon.png")
|
||||
if image.size[0] + image.size[1] <= 512:
|
||||
ttk.Label(tab1, image=ImageTk.PhotoImage(image)).pack()
|
||||
else:
|
||||
ttk.Label(tab1, image=ImageTk.PhotoImage(image.resize((256, 256), Image.ANTIALIAS))).pack()
|
||||
info = '''包名:{}
|
||||
中文名:{}
|
||||
Activity:{}
|
||||
版本:{}'''.format(GetApkPackageName(path), GetApkChineseLabel(path), GetApkActivityName(path), GetApkVersion(path))
|
||||
ttk.Label(tab1, text=info).pack()
|
||||
|
||||
|
||||
class AdbChangeUengineDisplaySize():
|
||||
def ShowWindows():
|
||||
global displayX
|
||||
global displayY
|
||||
global displaySize
|
||||
message = tk.Toplevel()
|
||||
messageFrame = ttk.Frame(message)
|
||||
|
||||
displaySize = tk.StringVar()
|
||||
displaySize.set("当前 UEngine 屏幕分辨率:正在获取")
|
||||
|
||||
displaySizeLabel = ttk.Label(messageFrame, textvariable=displaySize)
|
||||
|
||||
input = ttk.Frame(messageFrame)
|
||||
displayX = ttk.Entry(input)
|
||||
displayY = ttk.Entry(input)
|
||||
|
||||
settingBUtton = ttk.Button(messageFrame, text="设置分辨率", command=AdbChangeUengineDisplaySize.SettingDisplaySize)
|
||||
|
||||
message.title("修改 UEngine 分辨率")
|
||||
message.resizable(0, 0)
|
||||
message.iconphoto(False, tk.PhotoImage(file=iconPath))
|
||||
# get screen width and height
|
||||
screen_width = message.winfo_screenwidth()
|
||||
screen_height = message.winfo_screenheight()
|
||||
# calculate position x and y coordinates 假设主窗口大小固定 570x236像素 ,设置窗口位置为屏幕中心。
|
||||
winwith=570
|
||||
winhigh=236
|
||||
x = (screen_width/2) - (winwith/2)
|
||||
y = (screen_height/2) - (winhigh/2)
|
||||
message.geometry("+{}+{}".format(int(x), int(y)))
|
||||
|
||||
displayX.grid(row=0, column=0)
|
||||
displayY.grid(row=0, column=1)
|
||||
|
||||
displaySizeLabel.grid(row=0, column=0)
|
||||
input.grid(row=1, column=0)
|
||||
settingBUtton.grid(row=2, column=0)
|
||||
|
||||
messageFrame.pack()
|
||||
threading.Thread(target=AdbChangeUengineDisplaySize.GetUengineDisplaySize).start()
|
||||
message.mainloop()
|
||||
|
||||
def GetUengineDisplaySize():
|
||||
global displaySize
|
||||
displaySize.set("当前 UEngine 屏幕分辨率:\n" + subprocess.getoutput("adb -s '192.168.250.2:5555' shell wm size"))
|
||||
#displaySize.set(subprocess.getoutput("adb -s '192.168.250.2:5555' shell wm size"))
|
||||
|
||||
def SettingDisplaySize():
|
||||
global displayX
|
||||
global displayY
|
||||
try:
|
||||
int(displayX.get())
|
||||
int(displayY.get())
|
||||
except:
|
||||
messagebox.showerror(title="错误", message="你输入的数值不正确!")
|
||||
return
|
||||
os.system("adb -s '192.168.250.2:5555' shell wm size {}x{}".format(displayX.get(), displayY.get()))
|
||||
AdbChangeUengineDisplaySize.GetUengineDisplaySize()
|
||||
messagebox.showinfo(title="提示", message="执行完毕!")
|
||||
|
||||
# 运行命令的窗口
|
||||
class InstallWindow():
|
||||
# 显示窗口
|
||||
def ShowWindows(command):
|
||||
global message
|
||||
global text
|
||||
global installTipsText
|
||||
global progressbar
|
||||
global runCommand
|
||||
message = tk.Toplevel()
|
||||
message.iconphoto(False, tk.PhotoImage(file=iconPath))
|
||||
messageFrame = ttk.Frame(message)
|
||||
installTipsText = tk.StringVar()
|
||||
message.title("正在操作……")
|
||||
installTipsText.set("正在操作……")
|
||||
installTips = ttk.Label(messageFrame, textvariable=installTipsText)
|
||||
progressbar = ttk.Progressbar(messageFrame, length=500, mode='indeterminate')
|
||||
text = tk.Text(messageFrame)
|
||||
text.config(background="black", foreground="white")
|
||||
installTips.pack()
|
||||
progressbar.pack(fill="x")
|
||||
text.pack(expand='yes', fill='both')
|
||||
messageFrame.pack(expand='yes', fill='both')
|
||||
print("Run!")
|
||||
threading.Thread(target=InstallWindow.RunCommand, args=[command]).start()
|
||||
message.mainloop()
|
||||
|
||||
# 运行命令并显示
|
||||
def RunCommand(command):
|
||||
global message
|
||||
global text
|
||||
global progressbar
|
||||
global installTipsText
|
||||
InstallWindow.AddText("$>" + command + "\n")
|
||||
progressbar.start()
|
||||
result = subprocess.getoutput(command)
|
||||
InstallWindow.AddText(result)
|
||||
messagebox.showinfo(title="提示", message="操作完毕!")
|
||||
installTipsText.set("操作完毕!")
|
||||
message.title("操作完毕!")
|
||||
progressbar.stop()
|
||||
progressbar["value"] = 100
|
||||
# 特意添加!
|
||||
DisabledAndEnbled(False)
|
||||
if command == "pkexec rm -rfv /data/uengine":
|
||||
print("Clean!")
|
||||
if messagebox.askyesno(title="提示", message="清空完毕,将会在重启后生效,是否要重启?"):
|
||||
print("reboot")
|
||||
os.system("reboot")
|
||||
|
||||
# 添加文本
|
||||
def AddText(things):
|
||||
global text
|
||||
text.configure(state=tk.NORMAL)
|
||||
text.insert("end", things)
|
||||
text.configure(state=tk.DISABLED)
|
||||
|
||||
class ShowTextTipsWindow():
|
||||
def ShowWindow(things):
|
||||
message = tk.Toplevel()
|
||||
|
||||
message.title("提示")
|
||||
message.iconphoto(False, tk.PhotoImage(file=iconPath))
|
||||
|
||||
text = tk.Text(message)
|
||||
quitButton = ttk.Button(message, text="确定", command=message.destroy)
|
||||
|
||||
text.insert("end", things)
|
||||
text.configure(state=tk.DISABLED)
|
||||
|
||||
text.pack(fill="both", expand="yes")
|
||||
quitButton.pack()
|
||||
|
||||
message.mainloop()
|
||||
|
||||
# 添加/删除 uengine 应用快捷方式
|
||||
class AddNewUengineDesktopLink():
|
||||
addTips = '''可以输入app的包名和Activity或通过浏览apk文件来获取包名和Activity
|
||||
@@ -591,8 +841,9 @@ class AddNewUengineDesktopLink():
|
||||
saveButton = ttk.Button(controlFrame, text="写入", command=AddNewUengineDesktopLink.SaveDesktopLink)
|
||||
delButton = ttk.Button(controlFrame, text="删除", command=AddNewUengineDesktopLink.DelDesktopLink)
|
||||
|
||||
message.title("添加/删除 uengine 图标")
|
||||
message.title("添加/删除 UEngine 图标")
|
||||
message.resizable(0, 0)
|
||||
message.iconphoto(False, tk.PhotoImage(file=iconPath))
|
||||
# get screen width and height
|
||||
screen_width = message.winfo_screenwidth()
|
||||
screen_height = message.winfo_screenheight()
|
||||
@@ -636,7 +887,7 @@ class AddNewUengineDesktopLink():
|
||||
def DelDesktopLink():
|
||||
global packageName
|
||||
if not os.path.exists("{}/.local/share/applications/uengine/{}.desktop".format(get_home(), packageName.get())):
|
||||
messagebox.showerror(title="错误", message="此包名对应的uengine桌面快捷方式不存在!")
|
||||
messagebox.showerror(title="错误", message="此包名对应的 UEngine 桌面快捷方式不存在!")
|
||||
return
|
||||
if not messagebox.askyesno(title="提示", message="你确定要删除吗?删除后将无法恢复!"):
|
||||
return
|
||||
@@ -659,7 +910,7 @@ class AddNewUengineDesktopLink():
|
||||
|
||||
# 打开测试
|
||||
def TestOpen():
|
||||
threading.Thread(target=os.system, args=["/usr/bin/uengine-launch.sh --package={} --component={}".format(packageName.get(), activityName.get())]).start()
|
||||
threading.Thread(target=os.system, args=["/usr/bin/uengine launch --package={} --component={}".format(packageName.get(), activityName.get())]).start()
|
||||
AddNewUengineDesktopLink.SaveHistory()
|
||||
|
||||
# 浏览文件
|
||||
@@ -668,50 +919,76 @@ class AddNewUengineDesktopLink():
|
||||
if path == "" or path == ():
|
||||
return
|
||||
packageName.set(GetApkPackageName(path))
|
||||
activityName.set(GetApkActivityName(path))
|
||||
activityName.set(str(GetApkActivityName(path)))
|
||||
write_txt(get_home() + "/.config/uengine-runner/FindApkName.json", json.dumps({"path": os.path.dirname(path)})) # 写入配置文件
|
||||
|
||||
def UseProgram():
|
||||
global useProgram
|
||||
useProgram = '''1、UEngine:{}
|
||||
2、python3:{}
|
||||
3、tkinter:{}
|
||||
4、aapt:{}
|
||||
5、dpkg:{}
|
||||
6、mkdir:{}
|
||||
7、echo
|
||||
8、chmod:{}
|
||||
9、adb:{}
|
||||
10、deepin 终端:{}'''.format(subprocess.getoutput("uengine version"),
|
||||
subprocess.getoutput("python3 --version"),
|
||||
tk.TkVersion,
|
||||
subprocess.getoutput("aapt version"),
|
||||
subprocess.getoutput("dpkg --version"),
|
||||
subprocess.getoutput("mkdir --version"),
|
||||
subprocess.getoutput("chmod --version"),
|
||||
subprocess.getoutput("adb version"),
|
||||
subprocess.getoutput("deepin-terminal -v"))
|
||||
|
||||
###########################
|
||||
# 程序信息
|
||||
###########################
|
||||
lang = get_now_lang()
|
||||
programPath = os.path.split(os.path.realpath(__file__))[0] # 返回 string
|
||||
information = json.loads(readtxt(programPath + "/information.json"))
|
||||
langFile = json.loads(readtxt(programPath + "/Language.json"))
|
||||
if not lang in langFile.keys():
|
||||
lang = "en_US.UTF-8"
|
||||
programUrl = information["Url"][0]
|
||||
version = information["Version"]
|
||||
goodRunSystem = information["System"]
|
||||
aaptVersion = GetCommandReturn("aapt version")
|
||||
about = ''' 一个基于 Python3 的 tkinter 制作的 uengine APK 运行器
|
||||
SystemVersion = GetSystemVersion()
|
||||
about = '''介绍 :一个基于 Python3 的 tkinter 制作的 UEngine 运行器,在新版本Deepin/UOS发布后,可以在应用商店安装部分官方已适配的安卓应用,对爱好者来说,不能自己安装APK软件包始终差点意思,本程序可以为Deepin/UOS上的UEngine安卓运行环境安装自定义APK软件包,并能发送安装的APK包启动菜单到桌面或系统菜单。
|
||||
|
||||
版本 :{}
|
||||
|
||||
适用平台 :{}
|
||||
|
||||
tkinter版本:{}
|
||||
|
||||
aapt 版本 :{}
|
||||
Tk 版本 :{}
|
||||
|
||||
程序官网 :{}
|
||||
|
||||
©2021-{}'''.format(version, goodRunSystem, tk.TkVersion, aaptVersion,programUrl, time.strftime("%Y"))
|
||||
系统版本 :{}
|
||||
|
||||
©2021-{}'''.format(version, goodRunSystem, tk.TkVersion, programUrl, SystemVersion, time.strftime("%Y"))
|
||||
tips = "\n".join(information["Tips"])
|
||||
updateThingsString = "\n".join(information["Update"])
|
||||
title = "uengine 运行器 {}".format(version)
|
||||
title = "{} {}".format(langFile[lang]["Main"]["MainWindow"]["Title"], version)
|
||||
updateTime = information["Time"]
|
||||
updateThings = "{} 更新内容:\n{}\n更新时间:{}".format(version, updateThingsString, updateTime, time.strftime("%Y"))
|
||||
iconPath = "{}/icon.png".format(os.path.split(os.path.realpath(__file__))[0])
|
||||
desktop = programPath + "/UengineAndroidProgramList.desktop"
|
||||
desktopName = "UengineAndroidProgramList.desktop"
|
||||
contribute = "\n".join(information["Contribute"])
|
||||
useProgram = "\n".join(information["Use"])
|
||||
|
||||
useProgram = ""
|
||||
threading.Thread(target=UseProgram).start()
|
||||
|
||||
###########################
|
||||
# 加载配置
|
||||
###########################
|
||||
if not os.path.exists("{}/.local/share/applications/uengine/".format(get_home())):
|
||||
os.mkdir("{}/.local/share/applications/uengine/".format(get_home()))
|
||||
os.makedirs("{}/.local/share/applications/uengine/".format(get_home()))
|
||||
if not os.path.exists(get_home() + "/.config/uengine-runner"): # 如果没有配置文件夹
|
||||
os.mkdir(get_home() + "/.config/uengine-runner") # 创建配置文件夹
|
||||
os.makedirs(get_home() + "/.config/uengine-runner") # 创建配置文件夹
|
||||
if not os.path.exists(get_home() + "/.config/uengine-runner/FindApkHistory.json"): # 如果没有配置文件
|
||||
write_txt(get_home() + "/.config/uengine-runner/FindApkHistory.json", json.dumps({})) # 创建配置文件
|
||||
if not os.path.exists(get_home() + "/.config/uengine-runner/FindApkNameHistory.json"): # 如果没有配置文件
|
||||
@@ -752,7 +1029,7 @@ def showhelp():
|
||||
helpwindow=tk.Toplevel()
|
||||
helpwindow.resizable(0, 0)
|
||||
helpwindow.title("帮助")
|
||||
|
||||
helpwindow.iconphoto(False, tk.PhotoImage(file=iconPath))
|
||||
|
||||
# get screen width and height
|
||||
screen_width = helpwindow.winfo_screenwidth()
|
||||
@@ -794,6 +1071,9 @@ def showhelp():
|
||||
def ChgAbout():
|
||||
HelpStr.set(about)
|
||||
def ChgDep():
|
||||
if useProgram == "":
|
||||
BtnZujian.configure(state=tk.DISABLED)
|
||||
return
|
||||
HelpStr.set(useProgram)
|
||||
def ChgCon():
|
||||
HelpStr.set(contribute)
|
||||
@@ -836,7 +1116,6 @@ win = tk.Tk() # 创建窗口
|
||||
style = ttkthemes.ThemedStyle(win)
|
||||
style.set_theme("breeze")
|
||||
window = ttk.Frame(win)
|
||||
win.attributes('-alpha', 0.5)
|
||||
win.title(title)
|
||||
win.resizable(0, 0)
|
||||
win.iconphoto(False, tk.PhotoImage(file=iconPath))
|
||||
@@ -854,87 +1133,125 @@ win.geometry(""+"+{:.0f}+{:.0f}".format(x, y))
|
||||
|
||||
# 创建控件
|
||||
FrmInstall = ttk.Frame(window)
|
||||
FrmUninstall = ttk.Frame(window)
|
||||
LabApkPath = ttk.Label(window, text="安装APK:")
|
||||
LabUninstallPath = ttk.Label(window, text="卸载APK:")
|
||||
#FrmUninstall = ttk.Frame(window)
|
||||
LabApkPath = ttk.Label(window, text=langFile[lang]["Main"]["MainWindow"]["LabApkPath"])
|
||||
#LabUninstallPath = ttk.Label(window, text=langFile[lang]["Main"]["MainWindow"]["LabUninstallPath"])
|
||||
ComboInstallPath = ttk.Combobox(window, width=50)
|
||||
ComboUninstallPath = ttk.Combobox(window, width=50)
|
||||
BtnFindApk = ttk.Button(FrmInstall, text="浏览", command=FindApk)
|
||||
BtnInstall = ttk.Button(FrmInstall, text="安装", command=Button3Install)
|
||||
BtnShowUengineApp = ttk.Button(window, text="打开 uengine 应用列表", command=Button5Click)
|
||||
BtnUninstallApkBrowser = ttk.Button(FrmUninstall, text="浏览", command=BtnFindUninstallApkClk)
|
||||
BtnUninstall = ttk.Button(FrmUninstall, text="卸载", command=ButtonClick8)
|
||||
Btngeticon = ttk.Button(FrmInstall, text="保存图标", command=SaveIconToOtherPath)
|
||||
BtnSaveApk = ttk.Button(FrmInstall, text="保存apk", command=SaveInstallUengineApp)
|
||||
#ComboUninstallPath = ttk.Combobox(window, width=50)
|
||||
BtnFindApk = ttk.Button(FrmInstall, text=langFile[lang]["Main"]["MainWindow"]["BtnFindApk"], command=FindApk)
|
||||
BtnInstall = ttk.Button(FrmInstall, text=langFile[lang]["Main"]["MainWindow"]["BtnInstall"], command=Button3Install)
|
||||
BtnShowUengineApp = ttk.Button(window, text=langFile[lang]["Main"]["MainWindow"]["BtnShowUengineApp"], command=Button5Click)
|
||||
#BtnUninstallApkBrowser = ttk.Button(FrmUninstall, text=langFile[lang]["Main"]["MainWindow"]["BtnUninstallApkBrowser"], command=BtnFindUninstallApkClk)
|
||||
BtnUninstall = ttk.Button(FrmInstall, text=langFile[lang]["Main"]["MainWindow"]["BtnUninstall"], command=ButtonClick8)
|
||||
Btngeticon = ttk.Button(FrmInstall, text=langFile[lang]["Main"]["MainWindow"]["Btngeticon"], command=SaveIconToOtherPath)
|
||||
BtnSaveApk = ttk.Button(FrmInstall, text=langFile[lang]["Main"]["MainWindow"]["BtnSaveApk"], command=SaveInstallUengineApp)
|
||||
BtnApkInformation = ttk.Button(FrmInstall, text=langFile[lang]["Main"]["MainWindow"]["BtnApkInformation"], command=ApkInformation.ShowWindows)
|
||||
# 设置菜单栏
|
||||
menu = tk.Menu(window, background="white")
|
||||
|
||||
programmenu = tk.Menu(menu, tearoff=0, background="white") # 设置“程序”菜单栏
|
||||
adb = tk.Menu(menu, tearoff=0, background="white")
|
||||
uengine = tk.Menu(menu, tearoff=0, background="white")
|
||||
help = tk.Menu(menu, tearoff=0, background="white") # 设置“帮助”菜单栏
|
||||
|
||||
uengineService = tk.Menu(uengine)
|
||||
uengineInternet = tk.Menu(uengine)
|
||||
uengineIcon = tk.Menu(uengine)
|
||||
uengineData = tk.Menu(uengine)
|
||||
adbServer = tk.Menu(adb, tearoff=0, background="white")
|
||||
|
||||
menu.add_cascade(label="程序", menu=programmenu)
|
||||
menu.add_cascade(label="uengine", menu=uengine)
|
||||
menu.add_cascade(label="关于", menu=help)
|
||||
uengineService = tk.Menu(uengine, tearoff=0, background="white")
|
||||
uengineInternet = tk.Menu(uengine, tearoff=0, background="white")
|
||||
uengineIcon = tk.Menu(uengine, tearoff=0, background="white")
|
||||
uengineUseAdb = tk.Menu(uengine, tearoff=0, background="white")
|
||||
uengineData = tk.Menu(uengine, tearoff=0, background="white")
|
||||
|
||||
programmenu.add_command(label="清空软件历史记录", command=CleanProgramHistory)
|
||||
menu.add_cascade(label=langFile[lang]["Main"]["MainWindow"]["Menu"][0]["Name"], menu=programmenu)
|
||||
menu.add_cascade(label=langFile[lang]["Main"]["MainWindow"]["Menu"][1]["Name"], menu=adb)
|
||||
menu.add_cascade(label=langFile[lang]["Main"]["MainWindow"]["Menu"][2]["Name"], menu=uengine)
|
||||
menu.add_cascade(label=langFile[lang]["Main"]["MainWindow"]["Menu"][3]["Name"], menu=help)
|
||||
|
||||
programmenu.add_command(label=langFile[lang]["Main"]["MainWindow"]["Menu"][0]["Menu"][0], command=CleanProgramHistory)
|
||||
programmenu.add_separator() # 设置分界线
|
||||
programmenu.add_command(label="退出程序", command=window.quit) # 设置“退出程序”
|
||||
programmenu.add_command(label=langFile[lang]["Main"]["MainWindow"]["Menu"][0]["Menu"][1], command=window.quit) # 设置“退出程序”
|
||||
|
||||
uengine.add_command(label="uengine 应用打包", command=OpenUengineDebBuilder)
|
||||
uengine.add_command(label="uengine 键盘映射", command=KeyboardToMouse)
|
||||
uengine.add_cascade(label="uengine 服务", menu=uengineService)
|
||||
uengine.add_cascade(label="uengine 网络桥接", menu=uengineInternet)
|
||||
uengine.add_cascade(label="uengine 快捷方式", menu=uengineIcon)
|
||||
uengine.add_cascade(label="uengine 数据", menu=uengineData)
|
||||
adb.add_command(label=langFile[lang]["Main"]["MainWindow"]["Menu"][1]["Menu"][0], command=UengineConnectAdb)
|
||||
adb.add_separator()
|
||||
adb.add_cascade(label=langFile[lang]["Main"]["MainWindow"]["Menu"][1]["Menu"][1]["Name"], menu=adbServer)
|
||||
adb.add_command(label=langFile[lang]["Main"]["MainWindow"]["Menu"][1]["Menu"][2], command=AdbConnectDeviceShow)
|
||||
adb.add_separator()
|
||||
adb.add_command(label=langFile[lang]["Main"]["MainWindow"]["Menu"][1]["Menu"][3], command=AdbChangeUengineDisplaySize.ShowWindows)
|
||||
adb.add_command(label=langFile[lang]["Main"]["MainWindow"]["Menu"][1]["Menu"][4], command=AdbAndroidInstallAppList)
|
||||
adb.add_command(label=langFile[lang]["Main"]["MainWindow"]["Menu"][1]["Menu"][5], command=AdbCPUAndRAWShowInTer)
|
||||
adb.add_command(label=langFile[lang]["Main"]["MainWindow"]["Menu"][1]["Menu"][6], command=AdbShellShowInTer)
|
||||
adb.add_command(label=langFile[lang]["Main"]["MainWindow"]["Menu"][1]["Menu"][7], command=ScrcpyConnectUengine)
|
||||
adb.add_separator()
|
||||
adb.add_cascade(label=langFile[lang]["Main"]["MainWindow"]["Menu"][1]["Menu"][8]["Name"], menu=uengineUseAdb)
|
||||
|
||||
help.add_command(label="程序官网", command=OpenProgramURL) # 设置“程序官网”项
|
||||
help.add_command(label="帮助", command=showhelp) # 设置“关于这个程序”项
|
||||
adbServer.add_command(label=langFile[lang]["Main"]["MainWindow"]["Menu"][1]["Menu"][1]["Menu"][0], command=AdbStartServer)
|
||||
adbServer.add_command(label=langFile[lang]["Main"]["MainWindow"]["Menu"][1]["Menu"][1]["Menu"][1], command=AdbStopServer)
|
||||
adbServer.add_command(label=langFile[lang]["Main"]["MainWindow"]["Menu"][1]["Menu"][1]["Menu"][2], command=AdbKillAdbProgress)
|
||||
|
||||
uengineService.add_command(label="启用 uengine 服务", command=StartUengine)
|
||||
uengineService.add_command(label="关闭 uengine 服务", command=StopUengine)
|
||||
uengineService.add_command(label="重启 uengine 服务", command=UengineRestart)
|
||||
#uengine.add_command(label=langFile[lang]["Main"]["MainWindow"]["Menu"][2]["Menu"][0], command=UengineSettingShow)
|
||||
uengine.add_command(label=langFile[lang]["Main"]["MainWindow"]["Menu"][2]["Menu"][1], command=OpenUengineDebBuilder)
|
||||
uengine.add_command(label=langFile[lang]["Main"]["MainWindow"]["Menu"][2]["Menu"][7], command=KeyboardToMouse)
|
||||
uengine.add_command(label=langFile[lang]["Main"]["MainWindow"]["Menu"][2]["Menu"][8], command=UengineCheckCpu)
|
||||
uengine.add_cascade(label=langFile[lang]["Main"]["MainWindow"]["Menu"][2]["Menu"][2]["Name"], menu=uengineService)
|
||||
uengine.add_cascade(label=langFile[lang]["Main"]["MainWindow"]["Menu"][2]["Menu"][3]["Name"], menu=uengineInternet)
|
||||
uengine.add_cascade(label=langFile[lang]["Main"]["MainWindow"]["Menu"][2]["Menu"][4]["Name"], menu=uengineIcon)
|
||||
uengine.add_cascade(label=langFile[lang]["Main"]["MainWindow"]["Menu"][2]["Menu"][5]["Name"], menu=uengineUseAdb)
|
||||
uengine.add_cascade(label=langFile[lang]["Main"]["MainWindow"]["Menu"][2]["Menu"][6]["Name"], menu=uengineData)
|
||||
uengine.add_command(label=langFile[lang]["Main"]["MainWindow"]["Menu"][2]["Menu"][9], command=DelUengineCheck)
|
||||
uengine.add_command(label=langFile[lang]["Main"]["MainWindow"]["Menu"][2]["Menu"][10], command=ReinstallUengine)
|
||||
|
||||
uengineInternet.add_command(label="启用 uengine 网络桥接", command=UengineBridgeStart)
|
||||
uengineInternet.add_command(label="关闭 uengine 网络桥接", command=UengineBridgeStop)
|
||||
uengineInternet.add_command(label="重启 uengine 网络桥接", command=UengineBridgeRestart)
|
||||
uengineInternet.add_command(label="加载 uengine 网络桥接", command=UengineBridgeReload)
|
||||
uengineInternet.add_command(label="强制加载 uengine 网络桥接", command=UengineBridgeForceReload)
|
||||
help.add_command(label=langFile[lang]["Main"]["MainWindow"]["Menu"][3]["Menu"][0], command=OpenProgramURL) # 设置“程序官网”项
|
||||
help.add_command(label=langFile[lang]["Main"]["MainWindow"]["Menu"][3]["Menu"][2], command=UengineRunnerBugUpload) # 设置“程序官网”项
|
||||
help.add_command(label=langFile[lang]["Main"]["MainWindow"]["Menu"][3]["Menu"][1], command=showhelp) # 设置“关于这个程序”项
|
||||
|
||||
uengineIcon.add_command(label="发送 uengine 应用列表到桌面", command=SendUengineAndroidListForDesktop)
|
||||
uengineIcon.add_command(label="发送 uengine 应用列表到启动器", command=SendUengineAndroidListForLauncher)
|
||||
uengineService.add_command(label=langFile[lang]["Main"]["MainWindow"]["Menu"][2]["Menu"][2]["Menu"][0], command=StartUengine)
|
||||
uengineService.add_command(label=langFile[lang]["Main"]["MainWindow"]["Menu"][2]["Menu"][2]["Menu"][1], command=StopUengine)
|
||||
uengineService.add_command(label=langFile[lang]["Main"]["MainWindow"]["Menu"][2]["Menu"][2]["Menu"][2], command=UengineRestart)
|
||||
|
||||
uengineInternet.add_command(label=langFile[lang]["Main"]["MainWindow"]["Menu"][2]["Menu"][3]["Menu"][0], command=UengineBridgeStart)
|
||||
uengineInternet.add_command(label=langFile[lang]["Main"]["MainWindow"]["Menu"][2]["Menu"][3]["Menu"][1], command=UengineBridgeStop)
|
||||
uengineInternet.add_command(label=langFile[lang]["Main"]["MainWindow"]["Menu"][2]["Menu"][3]["Menu"][2], command=UengineBridgeRestart)
|
||||
uengineInternet.add_command(label=langFile[lang]["Main"]["MainWindow"]["Menu"][2]["Menu"][3]["Menu"][3], command=UengineBridgeReload)
|
||||
uengineInternet.add_command(label=langFile[lang]["Main"]["MainWindow"]["Menu"][2]["Menu"][3]["Menu"][4], command=UengineBridgeForceReload)
|
||||
|
||||
uengineIcon.add_command(label=langFile[lang]["Main"]["MainWindow"]["Menu"][2]["Menu"][4]["Menu"][0], command=SendUengineAndroidListForDesktop)
|
||||
uengineIcon.add_command(label=langFile[lang]["Main"]["MainWindow"]["Menu"][2]["Menu"][4]["Menu"][1], command=SendUengineAndroidListForLauncher)
|
||||
uengineIcon.add_separator()
|
||||
uengineIcon.add_command(label="添加/删除指定的 uengine 快捷方式", command=AddNewUengineDesktopLink.ShowWindow)
|
||||
uengineIcon.add_command(label=langFile[lang]["Main"]["MainWindow"]["Menu"][2]["Menu"][4]["Menu"][2], command=AddNewUengineDesktopLink.ShowWindow)
|
||||
uengineIcon.add_separator()
|
||||
uengineIcon.add_command(label="清空所有 uengine 快捷方式", command=CleanAllUengineDesktopLink)
|
||||
uengineIcon.add_command(label=langFile[lang]["Main"]["MainWindow"]["Menu"][2]["Menu"][4]["Menu"][3], command=CleanAllUengineDesktopLink)
|
||||
|
||||
uengineData.add_command(label="打开 uengine 根目录", command=OpenUengineRootData)
|
||||
uengineData.add_command(label="打开 uengine 用户数据目录", command=OpenUengineUserData)
|
||||
uengineUseAdb.add_command(label=langFile[lang]["Main"]["MainWindow"]["Menu"][1]["Menu"][8]["Menu"][0], command=UengineConnectAdb)
|
||||
uengineUseAdb.add_separator()
|
||||
uengineUseAdb.add_command(label=langFile[lang]["Main"]["MainWindow"]["Menu"][1]["Menu"][8]["Menu"][1], command=UengineUseAdb)
|
||||
uengineUseAdb.add_command(label=langFile[lang]["Main"]["MainWindow"]["Menu"][1]["Menu"][8]["Menu"][2], command=UengineDoNotUseAdb)
|
||||
|
||||
uengineData.add_command(label=langFile[lang]["Main"]["MainWindow"]["Menu"][2]["Menu"][6]["Menu"][0], command=OpenUengineRootData)
|
||||
uengineData.add_command(label=langFile[lang]["Main"]["MainWindow"]["Menu"][2]["Menu"][6]["Menu"][1], command=OpenUengineUserData)
|
||||
uengineData.add_separator()
|
||||
uengineData.add_command(label="清空 uengine 数据", command=BackUengineClean)
|
||||
uengineData.add_command(label=langFile[lang]["Main"]["MainWindow"]["Menu"][2]["Menu"][6]["Menu"][2], command=BackUengineClean)
|
||||
|
||||
menu.configure(activebackground="dodgerblue")
|
||||
help.configure(activebackground="dodgerblue")
|
||||
adb.configure(activebackground="dodgerblue")
|
||||
uengine.configure(activebackground="dodgerblue")
|
||||
programmenu.configure(activebackground="dodgerblue")
|
||||
uengineService.configure(activebackground="dodgerblue")
|
||||
uengineInternet.configure(activebackground="dodgerblue")
|
||||
uengineIcon.configure(activebackground="dodgerblue")
|
||||
uengineUseAdb.configure(activebackground="dodgerblue")
|
||||
uengineData.configure(activebackground="dodgerblue")
|
||||
|
||||
# 设置控件
|
||||
ComboUninstallPath['value'] = fineUninstallApkHistory
|
||||
#ComboUninstallPath['value'] = fineUninstallApkHistory
|
||||
ComboInstallPath['value'] = findApkHistory
|
||||
try:
|
||||
if sys.argv[1] == "-i":
|
||||
ComboInstallPath.set(sys.argv[2])
|
||||
print("Install Path: " + sys.argv[2])
|
||||
elif sys.argv[1] == "-u":
|
||||
ComboUninstallPath.set(sys.argv[2])
|
||||
#ComboUninstallPath.set(sys.argv[2])
|
||||
ComboInstallPath.set(sys.argv[2])
|
||||
print("Unstall Path: " + sys.argv[2])
|
||||
else:
|
||||
print("Command Format Error")
|
||||
@@ -945,25 +1262,26 @@ win.config(menu=menu) # 显示菜单栏
|
||||
|
||||
|
||||
|
||||
LabApkPath.grid(row=1, column=0,sticky= tk.W,padx=3)
|
||||
ComboInstallPath.grid(row=2, column=0,padx=3)
|
||||
LabApkPath.grid(row=0, column=0,sticky= tk.W,padx=3)
|
||||
ComboInstallPath.grid(row=1, column=0,padx=3)
|
||||
|
||||
|
||||
FrmInstall.grid(row=2, column=1,padx=3, rowspan=2)
|
||||
FrmInstall.grid(row=0, column=1,padx=3, rowspan=3)
|
||||
BtnFindApk.grid(row=0, column=0)
|
||||
BtnInstall.grid(row=0, column=1)
|
||||
|
||||
LabUninstallPath.grid(row=4, column=0,sticky= tk.W,padx=3)
|
||||
ComboUninstallPath.grid(row=5, column=0,padx=3)
|
||||
#LabUninstallPath.grid(row=4, column=0,sticky= tk.W,padx=3)
|
||||
#ComboUninstallPath.grid(row=5, column=0,padx=3)
|
||||
|
||||
FrmUninstall.grid(row=5, column=1,padx=3)
|
||||
BtnUninstallApkBrowser.grid(row=0, column=0)
|
||||
BtnUninstall.grid(row=0, column=1)
|
||||
#FrmUninstall.grid(row=5, column=1,padx=3)
|
||||
#BtnUninstallApkBrowser.grid(row=0, column=0)
|
||||
BtnUninstall.grid(row=1, column=0)
|
||||
|
||||
BtnShowUengineApp.grid(row=6, column=0,sticky= tk.W,padx=3,pady=2)
|
||||
BtnShowUengineApp.grid(row=2, column=0,sticky= tk.W,padx=3,pady=2)
|
||||
|
||||
Btngeticon.grid(row=1, column=0,sticky= tk.W,padx=3,pady=2)
|
||||
BtnSaveApk.grid(row=1, column=1,sticky= tk.W,padx=3,pady=2)
|
||||
BtnApkInformation.grid(row=2, column=1,sticky= tk.W,padx=3,pady=2)
|
||||
Btngeticon.grid(row=1, column=1,sticky= tk.W,padx=3,pady=2)
|
||||
BtnSaveApk.grid(row=2, column=0,sticky= tk.W,padx=3,pady=2)
|
||||
|
||||
window.pack()
|
||||
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
# 使用系统默认的 python3 运行
|
||||
###########################################################################################
|
||||
# 作者:gfdgd xi
|
||||
# 版本:1.4.2
|
||||
# 更新时间:2021年8月30日
|
||||
# 版本:1.4.3
|
||||
# 更新时间:2021年9月11日
|
||||
# 感谢:anbox、deepin 和 统信
|
||||
# 基于 Python3 的 tkinter 构建
|
||||
###########################################################################################
|
||||
@@ -11,6 +11,7 @@
|
||||
# 引入所需的库
|
||||
#################
|
||||
import os
|
||||
import threading
|
||||
import time
|
||||
import json
|
||||
import ttkthemes
|
||||
@@ -52,7 +53,16 @@ iconPath = "{}/icon.png".format(os.path.split(os.path.realpath(__file__))[0])
|
||||
desktop = "/opt/apps/uengine-runner/UengineAndroidProgramList.desktop"
|
||||
desktopName = "UengineAndroidProgramList.desktop"
|
||||
contribute = "\n".join(information["Contribute"])
|
||||
useProgram = '''1、UEngine:{}
|
||||
useProgram = ""
|
||||
threading.Thread(target=useProgram).start()
|
||||
|
||||
# add sub window
|
||||
#添加窗口开启关闭开关,防止重复开启
|
||||
windowflag = "close"
|
||||
|
||||
def UseProgram():
|
||||
global useProgram
|
||||
useProgram = '''1、UEngine:{}
|
||||
2、python3:{}
|
||||
3、tkinter:{}
|
||||
4、aapt:{}
|
||||
@@ -71,10 +81,6 @@ useProgram = '''1、UEngine:{}
|
||||
subprocess.getoutput("adb version"),
|
||||
subprocess.getoutput("deepin-terminal -v"))
|
||||
|
||||
# add sub window
|
||||
#添加窗口开启关闭开关,防止重复开启
|
||||
windowflag = "close"
|
||||
|
||||
def showhelp():
|
||||
|
||||
#define window and frame and button label
|
||||
@@ -127,6 +133,9 @@ def showhelp():
|
||||
def ChgAbout():
|
||||
HelpStr.set(about)
|
||||
def ChgDep():
|
||||
if useProgram == "":
|
||||
BtnZujian.configure(state=tk.DISABLED)
|
||||
return
|
||||
HelpStr.set(useProgram)
|
||||
def ChgCon():
|
||||
HelpStr.set(contribute)
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
#!/bin/bash
|
||||
|
||||
# 忽略社区版检测
|
||||
|
||||
pkgRunCnt=`ps -ef |grep "uengine launch" |grep -v grep |grep "$pkg" |wc -l`
|
||||
if [ $pkgRunCnt -ge 1 ]; then
|
||||
#防止短时间内多次打开同一应用,如果应用正在启动中,此次忽略
|
||||
exit 0
|
||||
fi
|
||||
|
||||
#等Session服务启动完全
|
||||
wscont=0
|
||||
isReady=`busctl --user get-property org.anbox /org/anbox org.anbox.ApplicationManager Ready`
|
||||
if [ "$isReady" != "b true" ] ;then
|
||||
sleep 2
|
||||
fi
|
||||
while [ "$isReady" = "b false" -a $wscont -lt 10 ]
|
||||
do
|
||||
sleep 1
|
||||
isReady=`busctl --user get-property org.anbox /org/anbox org.anbox.ApplicationManager Ready`
|
||||
let wscont++
|
||||
done
|
||||
|
||||
uengine launch $*
|
||||
@@ -0,0 +1,113 @@
|
||||
#!/usr/bin/env python3
|
||||
import os
|
||||
import json
|
||||
import base64
|
||||
import requests
|
||||
import ttkthemes
|
||||
import traceback
|
||||
import webbrowser
|
||||
import tkinter as tk
|
||||
import tkinter.ttk as ttk
|
||||
import tkinter.messagebox as messagebox
|
||||
import urllib.parse as parse
|
||||
|
||||
# 读取文本文档
|
||||
def readtxt(path: "路径")->"读取文本文档":
|
||||
f = open(path, "r") # 设置文件对象
|
||||
str = f.read() # 获取内容
|
||||
f.close() # 关闭文本对象
|
||||
return str # 返回结果
|
||||
|
||||
def Update(name, stars, contact, things, version):
|
||||
# post 内容
|
||||
data = {
|
||||
"Name": name,
|
||||
"Starts": stars,
|
||||
"Contact": contact,
|
||||
"Things": things,
|
||||
"Version": version
|
||||
}
|
||||
try:
|
||||
messagebox.showinfo(message=requests.post(parse.unquote(base64.b64decode("aHR0cCUzQS8vZ2ZkZ2R4aS5xaWNwLnZpcC91ZW5naW5lL2J1Zy91cGxvYWQucGhw").decode("utf-8")), data=data).text)
|
||||
except:
|
||||
traceback.print_exc()
|
||||
messagebox.showerror(title="错误", message="服务器疑似出现错误,可以进行以下尝试:①多尝试几次;②使用其他反馈途径\n错误信息:{}".format(traceback.format_exc()))
|
||||
|
||||
def UpdateButtonClick():
|
||||
#判断是否为空
|
||||
if nameThings.get() == "" or starValue.get() == "" or contactThings.get() == "" or updateThings.get(1.0, "end").replace(" ", "").replace("\n", "") == "":
|
||||
messagebox.showerror(title="错误", message="反馈信息未填写完整!")
|
||||
return
|
||||
Update(name=nameThings.get(), stars=starValue.get(), contact=contactThings.get(), things=updateThings.get(1.0, "end"), version=version)
|
||||
|
||||
def OpenGiteeIssues():
|
||||
webbrowser.open_new_tab("https://gitee.com/gfdgd-xi/uengine-runner/issues")
|
||||
|
||||
def OpenGithubIssues():
|
||||
webbrowser.open_new_tab("https://github.com/gfdgd-xi/uengine-runner/issues")
|
||||
|
||||
###########################
|
||||
# 程序信息
|
||||
###########################
|
||||
iconPath = "{}/icon.png".format(os.path.split(os.path.realpath(__file__))[0])
|
||||
programPath = os.path.split(os.path.realpath(__file__))[0] # 返回 string
|
||||
information = json.loads(readtxt(programPath + "/information.json"))
|
||||
version = information["Version"]
|
||||
|
||||
###########################
|
||||
# 窗口创建
|
||||
###########################
|
||||
window = tk.Tk()
|
||||
win = ttk.Frame()
|
||||
|
||||
starValue = tk.StringVar()
|
||||
starValue.set("5分")
|
||||
|
||||
name = ttk.Label(win, text="你的昵称:")
|
||||
nameThings = ttk.Entry(win, width=25)
|
||||
|
||||
contact = ttk.Label(win, text="联系方式:")
|
||||
contactThings = ttk.Entry(win, width=25)
|
||||
|
||||
star = ttk.Label(win, text="评分:")
|
||||
starMenu = ttk.OptionMenu(win, starValue, "5分", "5分", "4分", "3分", "2分", "1分")
|
||||
|
||||
updateThingsTips = ttk.Label(win, text="反馈内容(支持 Markdown 格式):")
|
||||
updateThings = tk.Text(win)
|
||||
|
||||
otherUpload = ttk.Frame(win)
|
||||
# 所属内容
|
||||
tips = ttk.Label(otherUpload, text="如果无法正常反馈,可以用其他方式反馈:")
|
||||
giteeButton = ttk.Button(otherUpload, text="Gitee Issues", command=OpenGiteeIssues)
|
||||
githubButton = ttk.Button(otherUpload, text="Github Issues", command=OpenGithubIssues)
|
||||
|
||||
updateButton = ttk.Button(win, text="提交", command=UpdateButtonClick)
|
||||
|
||||
# 设置窗口
|
||||
style = ttkthemes.ThemedStyle(window)
|
||||
style.set_theme("breeze")
|
||||
window.title("UEngine 运行器 {} 问题/建议反馈".format(version))
|
||||
window.resizable(0, 0)
|
||||
window.iconphoto(False, tk.PhotoImage(file=iconPath))
|
||||
|
||||
tips.grid(row=0, column=0)
|
||||
giteeButton.grid(row=0, column=1)
|
||||
githubButton.grid(row=0, column=2)
|
||||
|
||||
name.grid(row=0, column=0)
|
||||
nameThings.grid(row=0, column=1)
|
||||
|
||||
contact.grid(row=0, column=2)
|
||||
contactThings.grid(row=0, column=3)
|
||||
|
||||
star.grid(row=0, column=4)
|
||||
starMenu.grid(row=0, column=5)
|
||||
|
||||
updateThingsTips.grid(row=1, column=0, columnspan=2)
|
||||
updateThings.grid(row=2, column=0, columnspan=6)
|
||||
|
||||
otherUpload.grid(row=3, column=0, columnspan=4)
|
||||
updateButton.grid(row=3, column=5)
|
||||
|
||||
win.pack(expand="yes", fill="both")
|
||||
window.mainloop()
|
||||
@@ -0,0 +1,153 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<svg width="256px" height="256px" viewBox="0 0 256 256" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<title>APPS_安卓容器_bonund256pt</title>
|
||||
<defs>
|
||||
<filter x="-12.5%" y="-12.5%" width="125.0%" height="125.0%" filterUnits="objectBoundingBox" id="filter-1">
|
||||
<feOffset dx="0" dy="4" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset>
|
||||
<feGaussianBlur stdDeviation="6" in="shadowOffsetOuter1" result="shadowBlurOuter1"></feGaussianBlur>
|
||||
<feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.197982681 0" type="matrix" in="shadowBlurOuter1" result="shadowMatrixOuter1"></feColorMatrix>
|
||||
<feMerge>
|
||||
<feMergeNode in="shadowMatrixOuter1"></feMergeNode>
|
||||
<feMergeNode in="SourceGraphic"></feMergeNode>
|
||||
</feMerge>
|
||||
</filter>
|
||||
<linearGradient x1="58.6019309%" y1="88.1513471%" x2="68.1110327%" y2="11.6551043%" id="linearGradient-2">
|
||||
<stop stop-color="#02DA67" offset="0%"></stop>
|
||||
<stop stop-color="#8DF6D6" offset="100%"></stop>
|
||||
</linearGradient>
|
||||
<path d="M178.25009,95.8175981 C203.764636,95.8175981 224.183124,74.193939 224.183124,47.5198036 C224.183124,20.8456682 203.116891,-0.0263983843 178.25009,0.00161822517 C153.698836,-0.149640967 132.579574,20.8119281 132.579574,47.4860635 C132.579574,74.1601989 152.735544,95.8175981 178.25009,95.8175981 Z" id="path-3"></path>
|
||||
<filter x="-8.7%" y="-8.3%" width="117.5%" height="116.7%" filterUnits="objectBoundingBox" id="filter-4">
|
||||
<feGaussianBlur stdDeviation="6" in="SourceAlpha" result="shadowBlurInner1"></feGaussianBlur>
|
||||
<feOffset dx="0" dy="4" in="shadowBlurInner1" result="shadowOffsetInner1"></feOffset>
|
||||
<feComposite in="shadowOffsetInner1" in2="SourceAlpha" operator="arithmetic" k2="-1" k3="1" result="shadowInnerInner1"></feComposite>
|
||||
<feColorMatrix values="0 0 0 0 0.503096532 0 0 0 0 0.974696063 0 0 0 0 0.762013922 0 0 0 1 0" type="matrix" in="shadowInnerInner1"></feColorMatrix>
|
||||
</filter>
|
||||
<linearGradient x1="63.5172866%" y1="83.8734541%" x2="28.478366%" y2="6.65286784%" id="linearGradient-5">
|
||||
<stop stop-color="#4796FE" offset="0%"></stop>
|
||||
<stop stop-color="#44D9FF" offset="100%"></stop>
|
||||
</linearGradient>
|
||||
<ellipse id="path-6" cx="75.4782609" cy="64.0914576" rx="40.4347826" ry="42.2724698"></ellipse>
|
||||
<filter x="-7.4%" y="-7.1%" width="114.8%" height="114.2%" filterUnits="objectBoundingBox" id="filter-7">
|
||||
<feGaussianBlur stdDeviation="6" in="SourceAlpha" result="shadowBlurInner1"></feGaussianBlur>
|
||||
<feOffset dx="0" dy="0" in="shadowBlurInner1" result="shadowOffsetInner1"></feOffset>
|
||||
<feComposite in="shadowOffsetInner1" in2="SourceAlpha" operator="arithmetic" k2="-1" k3="1" result="shadowInnerInner1"></feComposite>
|
||||
<feColorMatrix values="0 0 0 0 0.658848459 0 0 0 0 0.76869955 0 0 0 0 0.994393611 0 0 0 1 0" type="matrix" in="shadowInnerInner1"></feColorMatrix>
|
||||
</filter>
|
||||
<linearGradient x1="50%" y1="31.0023874%" x2="50%" y2="95.9937487%" id="linearGradient-8">
|
||||
<stop stop-color="#D0FF52" offset="0%"></stop>
|
||||
<stop stop-color="#75EF07" offset="100%"></stop>
|
||||
</linearGradient>
|
||||
<path d="M173.78741,23.8356193 C174.592173,22.5497756 176.286945,22.1597832 177.572789,22.9645469 C178.97904,23.8446691 179.464805,25.6626835 178.684957,27.1269214 L178.684957,27.1269214 L167.998548,47.191447 C186.416883,60.0725236 198.886549,83.3414384 199.457775,110.056847 L199.478261,111.975079 C172.083327,116.233637 151.498347,118.362915 137.72332,118.362915 C122.744723,118.362915 100.199269,116.233637 70.0869565,111.975079 C70.0869565,84.4580366 82.7086518,60.380247 101.56625,47.1917402 L90.8802608,27.1269214 C90.1004123,25.6626835 90.5861775,23.8446691 91.9924283,22.9645469 C93.278272,22.1597832 94.9730442,22.5497756 95.7778079,23.8356193 C95.8117323,23.8898235 95.8437535,23.9451959 95.873813,24.0016352 L106.548653,44.0451766 C115.080463,39.2096532 124.660045,36.497433 134.782609,36.497433 C144.904955,36.497433 154.484343,39.2095367 163.016015,44.0448652 L173.691404,24.0016352 C173.721464,23.9451959 173.753485,23.8898235 173.78741,23.8356193 Z" id="path-9"></path>
|
||||
<filter x="-32.5%" y="-31.3%" width="164.9%" height="187.7%" filterUnits="objectBoundingBox" id="filter-10">
|
||||
<feOffset dx="0" dy="12" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset>
|
||||
<feGaussianBlur stdDeviation="12" in="shadowOffsetOuter1" result="shadowBlurOuter1"></feGaussianBlur>
|
||||
<feColorMatrix values="0 0 0 0 0.565756196 0 0 0 0 0.617813774 0 0 0 0 0 0 0 0 0.5 0" type="matrix" in="shadowBlurOuter1"></feColorMatrix>
|
||||
</filter>
|
||||
<path d="M108.824477,66.2818224 C104.358174,66.2818224 100.73752,70.0670283 100.73752,74.7363163 C100.73752,79.4056044 104.358174,83.1908103 108.824477,83.1908103 C113.290779,83.1908103 116.911433,79.4056044 116.911433,74.7363163 C116.911433,70.0670283 113.290779,66.2818224 108.824477,66.2818224 Z" id="path-11"></path>
|
||||
<filter x="-24.7%" y="-23.7%" width="149.5%" height="147.3%" filterUnits="objectBoundingBox" id="filter-12">
|
||||
<feGaussianBlur stdDeviation="2" in="SourceAlpha" result="shadowBlurInner1"></feGaussianBlur>
|
||||
<feOffset dx="0" dy="4" in="shadowBlurInner1" result="shadowOffsetInner1"></feOffset>
|
||||
<feComposite in="shadowOffsetInner1" in2="SourceAlpha" operator="arithmetic" k2="-1" k3="1" result="shadowInnerInner1"></feComposite>
|
||||
<feColorMatrix values="0 0 0 0 0.311563901 0 0 0 0 0.401805933 0 0 0 0 0.0617868498 0 0 0 1 0" type="matrix" in="shadowInnerInner1"></feColorMatrix>
|
||||
</filter>
|
||||
<path d="M162.73752,66.2818224 C158.271217,66.2818224 154.650564,70.0670283 154.650564,74.7363163 C154.650564,79.4056044 158.271217,83.1908103 162.73752,83.1908103 C167.203823,83.1908103 170.824477,79.4056044 170.824477,74.7363163 C170.824477,70.0670283 167.203823,66.2818224 162.73752,66.2818224 Z" id="path-13"></path>
|
||||
<filter x="-24.7%" y="-23.7%" width="149.5%" height="147.3%" filterUnits="objectBoundingBox" id="filter-14">
|
||||
<feGaussianBlur stdDeviation="2" in="SourceAlpha" result="shadowBlurInner1"></feGaussianBlur>
|
||||
<feOffset dx="0" dy="4" in="shadowBlurInner1" result="shadowOffsetInner1"></feOffset>
|
||||
<feComposite in="shadowOffsetInner1" in2="SourceAlpha" operator="arithmetic" k2="-1" k3="1" result="shadowInnerInner1"></feComposite>
|
||||
<feColorMatrix values="0 0 0 0 0.311563901 0 0 0 0 0.401805933 0 0 0 0 0.0617868498 0 0 0 1 0" type="matrix" in="shadowInnerInner1"></feColorMatrix>
|
||||
</filter>
|
||||
<linearGradient x1="50%" y1="15.1929094%" x2="43.5077077%" y2="91.2786664%" id="linearGradient-15">
|
||||
<stop stop-color="#F59A36" offset="0%"></stop>
|
||||
<stop stop-color="#FCCB6D" offset="100%"></stop>
|
||||
</linearGradient>
|
||||
<linearGradient x1="49.9821781%" y1="101.237754%" x2="49.9425633%" y2="5.03998902%" id="linearGradient-16">
|
||||
<stop stop-color="#FFC87C" offset="0%"></stop>
|
||||
<stop stop-color="#FD7A49" offset="100%"></stop>
|
||||
</linearGradient>
|
||||
<linearGradient x1="42.3143683%" y1="18.131572%" x2="69.2971087%" y2="74.6901955%" id="linearGradient-17">
|
||||
<stop stop-color="#FFE066" offset="0%"></stop>
|
||||
<stop stop-color="#FED862" offset="67.0339918%"></stop>
|
||||
<stop stop-color="#FFC565" offset="100%"></stop>
|
||||
</linearGradient>
|
||||
<linearGradient x1="37.3123913%" y1="70.4187755%" x2="57.7534931%" y2="25.1271391%" id="linearGradient-18">
|
||||
<stop stop-color="#FBC758" offset="0%"></stop>
|
||||
<stop stop-color="#FCE188" offset="100%"></stop>
|
||||
</linearGradient>
|
||||
<polygon id="path-19" points="22.4854175 71.1352831 124 111.895386 108.52496 183.11999 -1.44464996e-12 131.484995"></polygon>
|
||||
<filter x="-3.2%" y="-3.6%" width="112.9%" height="114.3%" filterUnits="objectBoundingBox" id="filter-20">
|
||||
<feOffset dx="4" dy="4" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset>
|
||||
<feGaussianBlur stdDeviation="2" in="shadowOffsetOuter1" result="shadowBlurOuter1"></feGaussianBlur>
|
||||
<feColorMatrix values="0 0 0 0 0.925490196 0 0 0 0 0.556862745 0 0 0 0 0.0980392157 0 0 0 1 0" type="matrix" in="shadowBlurOuter1"></feColorMatrix>
|
||||
</filter>
|
||||
<linearGradient x1="38.069149%" y1="33.5367903%" x2="38.069149%" y2="98.1621294%" id="linearGradient-21">
|
||||
<stop stop-color="#FE606D" offset="0%"></stop>
|
||||
<stop stop-color="#FFA2A5" offset="100%"></stop>
|
||||
</linearGradient>
|
||||
<linearGradient x1="60.0817844%" y1="28.2456942%" x2="38.943371%" y2="75.9265148%" id="linearGradient-22">
|
||||
<stop stop-color="#FEDB63" offset="0%"></stop>
|
||||
<stop stop-color="#FEDD73" offset="100%"></stop>
|
||||
</linearGradient>
|
||||
<polygon id="path-23" points="139.297941 70.1779313 248 120.532936 229.699968 185.722682 124 144.005227"></polygon>
|
||||
<filter x="-9.7%" y="-10.4%" width="112.9%" height="113.8%" filterUnits="objectBoundingBox" id="filter-24">
|
||||
<feOffset dx="-4" dy="-4" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset>
|
||||
<feGaussianBlur stdDeviation="2" in="shadowOffsetOuter1" result="shadowBlurOuter1"></feGaussianBlur>
|
||||
<feColorMatrix values="0 0 0 0 0.99518353 0 0 0 0 0.657959601 0 0 0 0 0.222035984 0 0 0 0.663358248 0" type="matrix" in="shadowBlurOuter1"></feColorMatrix>
|
||||
</filter>
|
||||
<linearGradient x1="1.3884147%" y1="42.2427784%" x2="97.6287521%" y2="58.3575504%" id="linearGradient-25">
|
||||
<stop stop-color="#FBDF84" offset="0%"></stop>
|
||||
<stop stop-color="#FEF6DF" offset="20.1427895%"></stop>
|
||||
<stop stop-color="#FFF8E2" offset="75.0762962%"></stop>
|
||||
<stop stop-color="#FBDF84" offset="100%"></stop>
|
||||
</linearGradient>
|
||||
<linearGradient x1="0%" y1="57.7627211%" x2="100%" y2="42.7948807%" id="linearGradient-26">
|
||||
<stop stop-color="#FDDD72" offset="0%"></stop>
|
||||
<stop stop-color="#FEF6DF" offset="20.1427895%"></stop>
|
||||
<stop stop-color="#FFF8E2" offset="75.0762962%"></stop>
|
||||
<stop stop-color="#FEDD71" offset="100%"></stop>
|
||||
</linearGradient>
|
||||
</defs>
|
||||
<g id="APPS_安卓容器_bonund256pt" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
||||
<g id="编组-3备份-3" filter="url(#filter-1)" transform="translate(4.000000, 4.000000)">
|
||||
<polygon id="路径-4" fill="#9F6B00" points="22.4854175 71.1352831 124 39.1781202 124 127.971838 42.4959276 162.72722"></polygon>
|
||||
<polygon id="路径-4" fill="#A16B00" transform="translate(176.849984, 103.805249) scale(-1, 1) translate(-176.849984, -103.805249) " points="124 70.2467832 229.699968 39.246972 229.699968 126.857126 143.556296 168.36355"></polygon>
|
||||
<g id="椭圆形">
|
||||
<use fill="url(#linearGradient-2)" fill-rule="evenodd" xlink:href="#path-3"></use>
|
||||
<use fill="black" fill-opacity="1" filter="url(#filter-4)" xlink:href="#path-3"></use>
|
||||
</g>
|
||||
<g id="椭圆形备份">
|
||||
<use fill="url(#linearGradient-5)" fill-rule="evenodd" xlink:href="#path-6"></use>
|
||||
<use fill="black" fill-opacity="1" filter="url(#filter-7)" xlink:href="#path-6"></use>
|
||||
</g>
|
||||
<g id="编组-2" transform="translate(125.653236, 69.872713) rotate(-9.000000) translate(-125.653236, -69.872713) translate(72.939312, 36.054737)"></g>
|
||||
<g id="形状结合备份-3">
|
||||
<use fill="black" fill-opacity="1" filter="url(#filter-10)" xlink:href="#path-9"></use>
|
||||
<use fill="url(#linearGradient-8)" fill-rule="evenodd" xlink:href="#path-9"></use>
|
||||
</g>
|
||||
<g id="路径">
|
||||
<use fill="#5B8C06" fill-rule="evenodd" xlink:href="#path-11"></use>
|
||||
<use fill="black" fill-opacity="1" filter="url(#filter-12)" xlink:href="#path-11"></use>
|
||||
</g>
|
||||
<g id="路径备份">
|
||||
<use fill="#5B8C06" fill-rule="evenodd" xlink:href="#path-13"></use>
|
||||
<use fill="black" fill-opacity="1" filter="url(#filter-14)" xlink:href="#path-13"></use>
|
||||
</g>
|
||||
<polygon id="路径-4备份" fill="url(#linearGradient-15)" transform="translate(71.995299, 162.885973) scale(-1, 1) translate(-71.995299, -162.885973) " points="20.4301769 118.218419 124 77.7719458 124 192.941695 19.9905981 248"></polygon>
|
||||
<line x1="123.560421" y1="245.912586" x2="124" y2="114.029217" id="路径-7备份" stroke="url(#linearGradient-16)" stroke-width="2.6125" stroke-linecap="round"></line>
|
||||
<polygon id="路径-4备份" fill="url(#linearGradient-17)" points="124 114.029217 231.198465 75.4450395 231.198465 193.553624 124 248"></polygon>
|
||||
<g id="路径-11">
|
||||
<use fill="black" fill-opacity="1" filter="url(#filter-20)" xlink:href="#path-19"></use>
|
||||
<use fill="url(#linearGradient-18)" fill-rule="evenodd" xlink:href="#path-19"></use>
|
||||
</g>
|
||||
<polygon id="路径-3" fill="url(#linearGradient-21)" points="177.791264 92.5327965 178.598476 220.244869 195.622586 211.671682 196.169593 85.4467628"></polygon>
|
||||
<g id="路径-11备份" transform="translate(186.000000, 127.950307) scale(1, -1) translate(-186.000000, -127.950307) ">
|
||||
<use fill="black" fill-opacity="1" filter="url(#filter-24)" xlink:href="#path-23"></use>
|
||||
<use fill="url(#linearGradient-22)" fill-rule="evenodd" xlink:href="#path-23"></use>
|
||||
</g>
|
||||
<path d="M34.8824439,168.349874 L62.2463189,168.831259 C63.6537673,168.856018 64.7885425,169.99145 64.8124889,171.398912 L64.8191082,171.787962 C64.843653,173.230597 63.6940637,174.419981 62.2514286,174.444526 C62.2212993,174.445039 62.1911633,174.44503 62.1610343,174.4445 L34.7971594,173.963116 C33.389711,173.938356 32.2549357,172.802925 32.2309893,171.395463 L32.2243701,171.006413 C32.1998253,169.563778 33.3494146,168.374393 34.7920497,168.349848 C34.822179,168.349336 34.8523149,168.349344 34.8824439,168.349874 Z" id="矩形" fill="#F4E5C3" transform="translate(48.521739, 171.397187) rotate(23.000000) translate(-48.521739, -171.397187) "></path>
|
||||
<path d="M35.6935587,176.218338 L46.7821941,176.425811 C48.1873409,176.452102 49.3199011,177.585307 49.3453919,178.990469 L49.3523188,179.372312 C49.3784889,180.814919 48.2302402,182.005597 46.7876337,182.031767 C46.7555504,182.032349 46.7234591,182.03234 46.6913762,182.03174 L35.6027408,181.824267 C34.197594,181.797976 33.0650338,180.664771 33.039543,179.259609 L33.0326161,178.877766 C33.006446,177.435159 34.1546947,176.24448 35.5973013,176.21831 C35.6293845,176.217728 35.6614758,176.217738 35.6935587,176.218338 Z" id="矩形备份" fill="#F3DA7B" transform="translate(41.192467, 179.125039) rotate(25.000000) translate(-41.192467, -179.125039) "></path>
|
||||
<path d="M22.4854175,71.9306494 L123.120842,113.074543 L22.4854175,71.9306494 Z" id="路径-7" stroke="url(#linearGradient-25)" stroke-width="2.6125" stroke-linecap="round"></path>
|
||||
<line x1="125.563916" y1="112.565642" x2="228.738156" y2="71.9125793" id="路径-7备份-2" stroke="url(#linearGradient-26)" stroke-width="2.6125" stroke-linecap="round"></line>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 15 KiB |
153
new-deb-build/usr/share/icons/apps/256/uengine.svg
Normal file
@@ -0,0 +1,153 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<svg width="256px" height="256px" viewBox="0 0 256 256" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<title>APPS_安卓容器_bonund256pt</title>
|
||||
<defs>
|
||||
<filter x="-12.5%" y="-12.5%" width="125.0%" height="125.0%" filterUnits="objectBoundingBox" id="filter-1">
|
||||
<feOffset dx="0" dy="4" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset>
|
||||
<feGaussianBlur stdDeviation="6" in="shadowOffsetOuter1" result="shadowBlurOuter1"></feGaussianBlur>
|
||||
<feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.197982681 0" type="matrix" in="shadowBlurOuter1" result="shadowMatrixOuter1"></feColorMatrix>
|
||||
<feMerge>
|
||||
<feMergeNode in="shadowMatrixOuter1"></feMergeNode>
|
||||
<feMergeNode in="SourceGraphic"></feMergeNode>
|
||||
</feMerge>
|
||||
</filter>
|
||||
<linearGradient x1="58.6019309%" y1="88.1513471%" x2="68.1110327%" y2="11.6551043%" id="linearGradient-2">
|
||||
<stop stop-color="#02DA67" offset="0%"></stop>
|
||||
<stop stop-color="#8DF6D6" offset="100%"></stop>
|
||||
</linearGradient>
|
||||
<path d="M178.25009,95.8175981 C203.764636,95.8175981 224.183124,74.193939 224.183124,47.5198036 C224.183124,20.8456682 203.116891,-0.0263983843 178.25009,0.00161822517 C153.698836,-0.149640967 132.579574,20.8119281 132.579574,47.4860635 C132.579574,74.1601989 152.735544,95.8175981 178.25009,95.8175981 Z" id="path-3"></path>
|
||||
<filter x="-8.7%" y="-8.3%" width="117.5%" height="116.7%" filterUnits="objectBoundingBox" id="filter-4">
|
||||
<feGaussianBlur stdDeviation="6" in="SourceAlpha" result="shadowBlurInner1"></feGaussianBlur>
|
||||
<feOffset dx="0" dy="4" in="shadowBlurInner1" result="shadowOffsetInner1"></feOffset>
|
||||
<feComposite in="shadowOffsetInner1" in2="SourceAlpha" operator="arithmetic" k2="-1" k3="1" result="shadowInnerInner1"></feComposite>
|
||||
<feColorMatrix values="0 0 0 0 0.503096532 0 0 0 0 0.974696063 0 0 0 0 0.762013922 0 0 0 1 0" type="matrix" in="shadowInnerInner1"></feColorMatrix>
|
||||
</filter>
|
||||
<linearGradient x1="63.5172866%" y1="83.8734541%" x2="28.478366%" y2="6.65286784%" id="linearGradient-5">
|
||||
<stop stop-color="#4796FE" offset="0%"></stop>
|
||||
<stop stop-color="#44D9FF" offset="100%"></stop>
|
||||
</linearGradient>
|
||||
<ellipse id="path-6" cx="75.4782609" cy="64.0914576" rx="40.4347826" ry="42.2724698"></ellipse>
|
||||
<filter x="-7.4%" y="-7.1%" width="114.8%" height="114.2%" filterUnits="objectBoundingBox" id="filter-7">
|
||||
<feGaussianBlur stdDeviation="6" in="SourceAlpha" result="shadowBlurInner1"></feGaussianBlur>
|
||||
<feOffset dx="0" dy="0" in="shadowBlurInner1" result="shadowOffsetInner1"></feOffset>
|
||||
<feComposite in="shadowOffsetInner1" in2="SourceAlpha" operator="arithmetic" k2="-1" k3="1" result="shadowInnerInner1"></feComposite>
|
||||
<feColorMatrix values="0 0 0 0 0.658848459 0 0 0 0 0.76869955 0 0 0 0 0.994393611 0 0 0 1 0" type="matrix" in="shadowInnerInner1"></feColorMatrix>
|
||||
</filter>
|
||||
<linearGradient x1="50%" y1="31.0023874%" x2="50%" y2="95.9937487%" id="linearGradient-8">
|
||||
<stop stop-color="#D0FF52" offset="0%"></stop>
|
||||
<stop stop-color="#75EF07" offset="100%"></stop>
|
||||
</linearGradient>
|
||||
<path d="M173.78741,23.8356193 C174.592173,22.5497756 176.286945,22.1597832 177.572789,22.9645469 C178.97904,23.8446691 179.464805,25.6626835 178.684957,27.1269214 L178.684957,27.1269214 L167.998548,47.191447 C186.416883,60.0725236 198.886549,83.3414384 199.457775,110.056847 L199.478261,111.975079 C172.083327,116.233637 151.498347,118.362915 137.72332,118.362915 C122.744723,118.362915 100.199269,116.233637 70.0869565,111.975079 C70.0869565,84.4580366 82.7086518,60.380247 101.56625,47.1917402 L90.8802608,27.1269214 C90.1004123,25.6626835 90.5861775,23.8446691 91.9924283,22.9645469 C93.278272,22.1597832 94.9730442,22.5497756 95.7778079,23.8356193 C95.8117323,23.8898235 95.8437535,23.9451959 95.873813,24.0016352 L106.548653,44.0451766 C115.080463,39.2096532 124.660045,36.497433 134.782609,36.497433 C144.904955,36.497433 154.484343,39.2095367 163.016015,44.0448652 L173.691404,24.0016352 C173.721464,23.9451959 173.753485,23.8898235 173.78741,23.8356193 Z" id="path-9"></path>
|
||||
<filter x="-32.5%" y="-31.3%" width="164.9%" height="187.7%" filterUnits="objectBoundingBox" id="filter-10">
|
||||
<feOffset dx="0" dy="12" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset>
|
||||
<feGaussianBlur stdDeviation="12" in="shadowOffsetOuter1" result="shadowBlurOuter1"></feGaussianBlur>
|
||||
<feColorMatrix values="0 0 0 0 0.565756196 0 0 0 0 0.617813774 0 0 0 0 0 0 0 0 0.5 0" type="matrix" in="shadowBlurOuter1"></feColorMatrix>
|
||||
</filter>
|
||||
<path d="M108.824477,66.2818224 C104.358174,66.2818224 100.73752,70.0670283 100.73752,74.7363163 C100.73752,79.4056044 104.358174,83.1908103 108.824477,83.1908103 C113.290779,83.1908103 116.911433,79.4056044 116.911433,74.7363163 C116.911433,70.0670283 113.290779,66.2818224 108.824477,66.2818224 Z" id="path-11"></path>
|
||||
<filter x="-24.7%" y="-23.7%" width="149.5%" height="147.3%" filterUnits="objectBoundingBox" id="filter-12">
|
||||
<feGaussianBlur stdDeviation="2" in="SourceAlpha" result="shadowBlurInner1"></feGaussianBlur>
|
||||
<feOffset dx="0" dy="4" in="shadowBlurInner1" result="shadowOffsetInner1"></feOffset>
|
||||
<feComposite in="shadowOffsetInner1" in2="SourceAlpha" operator="arithmetic" k2="-1" k3="1" result="shadowInnerInner1"></feComposite>
|
||||
<feColorMatrix values="0 0 0 0 0.311563901 0 0 0 0 0.401805933 0 0 0 0 0.0617868498 0 0 0 1 0" type="matrix" in="shadowInnerInner1"></feColorMatrix>
|
||||
</filter>
|
||||
<path d="M162.73752,66.2818224 C158.271217,66.2818224 154.650564,70.0670283 154.650564,74.7363163 C154.650564,79.4056044 158.271217,83.1908103 162.73752,83.1908103 C167.203823,83.1908103 170.824477,79.4056044 170.824477,74.7363163 C170.824477,70.0670283 167.203823,66.2818224 162.73752,66.2818224 Z" id="path-13"></path>
|
||||
<filter x="-24.7%" y="-23.7%" width="149.5%" height="147.3%" filterUnits="objectBoundingBox" id="filter-14">
|
||||
<feGaussianBlur stdDeviation="2" in="SourceAlpha" result="shadowBlurInner1"></feGaussianBlur>
|
||||
<feOffset dx="0" dy="4" in="shadowBlurInner1" result="shadowOffsetInner1"></feOffset>
|
||||
<feComposite in="shadowOffsetInner1" in2="SourceAlpha" operator="arithmetic" k2="-1" k3="1" result="shadowInnerInner1"></feComposite>
|
||||
<feColorMatrix values="0 0 0 0 0.311563901 0 0 0 0 0.401805933 0 0 0 0 0.0617868498 0 0 0 1 0" type="matrix" in="shadowInnerInner1"></feColorMatrix>
|
||||
</filter>
|
||||
<linearGradient x1="50%" y1="15.1929094%" x2="43.5077077%" y2="91.2786664%" id="linearGradient-15">
|
||||
<stop stop-color="#F59A36" offset="0%"></stop>
|
||||
<stop stop-color="#FCCB6D" offset="100%"></stop>
|
||||
</linearGradient>
|
||||
<linearGradient x1="49.9821781%" y1="101.237754%" x2="49.9425633%" y2="5.03998902%" id="linearGradient-16">
|
||||
<stop stop-color="#FFC87C" offset="0%"></stop>
|
||||
<stop stop-color="#FD7A49" offset="100%"></stop>
|
||||
</linearGradient>
|
||||
<linearGradient x1="42.3143683%" y1="18.131572%" x2="69.2971087%" y2="74.6901955%" id="linearGradient-17">
|
||||
<stop stop-color="#FFE066" offset="0%"></stop>
|
||||
<stop stop-color="#FED862" offset="67.0339918%"></stop>
|
||||
<stop stop-color="#FFC565" offset="100%"></stop>
|
||||
</linearGradient>
|
||||
<linearGradient x1="37.3123913%" y1="70.4187755%" x2="57.7534931%" y2="25.1271391%" id="linearGradient-18">
|
||||
<stop stop-color="#FBC758" offset="0%"></stop>
|
||||
<stop stop-color="#FCE188" offset="100%"></stop>
|
||||
</linearGradient>
|
||||
<polygon id="path-19" points="22.4854175 71.1352831 124 111.895386 108.52496 183.11999 -1.44464996e-12 131.484995"></polygon>
|
||||
<filter x="-3.2%" y="-3.6%" width="112.9%" height="114.3%" filterUnits="objectBoundingBox" id="filter-20">
|
||||
<feOffset dx="4" dy="4" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset>
|
||||
<feGaussianBlur stdDeviation="2" in="shadowOffsetOuter1" result="shadowBlurOuter1"></feGaussianBlur>
|
||||
<feColorMatrix values="0 0 0 0 0.925490196 0 0 0 0 0.556862745 0 0 0 0 0.0980392157 0 0 0 1 0" type="matrix" in="shadowBlurOuter1"></feColorMatrix>
|
||||
</filter>
|
||||
<linearGradient x1="38.069149%" y1="33.5367903%" x2="38.069149%" y2="98.1621294%" id="linearGradient-21">
|
||||
<stop stop-color="#FE606D" offset="0%"></stop>
|
||||
<stop stop-color="#FFA2A5" offset="100%"></stop>
|
||||
</linearGradient>
|
||||
<linearGradient x1="60.0817844%" y1="28.2456942%" x2="38.943371%" y2="75.9265148%" id="linearGradient-22">
|
||||
<stop stop-color="#FEDB63" offset="0%"></stop>
|
||||
<stop stop-color="#FEDD73" offset="100%"></stop>
|
||||
</linearGradient>
|
||||
<polygon id="path-23" points="139.297941 70.1779313 248 120.532936 229.699968 185.722682 124 144.005227"></polygon>
|
||||
<filter x="-9.7%" y="-10.4%" width="112.9%" height="113.8%" filterUnits="objectBoundingBox" id="filter-24">
|
||||
<feOffset dx="-4" dy="-4" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset>
|
||||
<feGaussianBlur stdDeviation="2" in="shadowOffsetOuter1" result="shadowBlurOuter1"></feGaussianBlur>
|
||||
<feColorMatrix values="0 0 0 0 0.99518353 0 0 0 0 0.657959601 0 0 0 0 0.222035984 0 0 0 0.663358248 0" type="matrix" in="shadowBlurOuter1"></feColorMatrix>
|
||||
</filter>
|
||||
<linearGradient x1="1.3884147%" y1="42.2427784%" x2="97.6287521%" y2="58.3575504%" id="linearGradient-25">
|
||||
<stop stop-color="#FBDF84" offset="0%"></stop>
|
||||
<stop stop-color="#FEF6DF" offset="20.1427895%"></stop>
|
||||
<stop stop-color="#FFF8E2" offset="75.0762962%"></stop>
|
||||
<stop stop-color="#FBDF84" offset="100%"></stop>
|
||||
</linearGradient>
|
||||
<linearGradient x1="0%" y1="57.7627211%" x2="100%" y2="42.7948807%" id="linearGradient-26">
|
||||
<stop stop-color="#FDDD72" offset="0%"></stop>
|
||||
<stop stop-color="#FEF6DF" offset="20.1427895%"></stop>
|
||||
<stop stop-color="#FFF8E2" offset="75.0762962%"></stop>
|
||||
<stop stop-color="#FEDD71" offset="100%"></stop>
|
||||
</linearGradient>
|
||||
</defs>
|
||||
<g id="APPS_安卓容器_bonund256pt" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
||||
<g id="编组-3备份-3" filter="url(#filter-1)" transform="translate(4.000000, 4.000000)">
|
||||
<polygon id="路径-4" fill="#9F6B00" points="22.4854175 71.1352831 124 39.1781202 124 127.971838 42.4959276 162.72722"></polygon>
|
||||
<polygon id="路径-4" fill="#A16B00" transform="translate(176.849984, 103.805249) scale(-1, 1) translate(-176.849984, -103.805249) " points="124 70.2467832 229.699968 39.246972 229.699968 126.857126 143.556296 168.36355"></polygon>
|
||||
<g id="椭圆形">
|
||||
<use fill="url(#linearGradient-2)" fill-rule="evenodd" xlink:href="#path-3"></use>
|
||||
<use fill="black" fill-opacity="1" filter="url(#filter-4)" xlink:href="#path-3"></use>
|
||||
</g>
|
||||
<g id="椭圆形备份">
|
||||
<use fill="url(#linearGradient-5)" fill-rule="evenodd" xlink:href="#path-6"></use>
|
||||
<use fill="black" fill-opacity="1" filter="url(#filter-7)" xlink:href="#path-6"></use>
|
||||
</g>
|
||||
<g id="编组-2" transform="translate(125.653236, 69.872713) rotate(-9.000000) translate(-125.653236, -69.872713) translate(72.939312, 36.054737)"></g>
|
||||
<g id="形状结合备份-3">
|
||||
<use fill="black" fill-opacity="1" filter="url(#filter-10)" xlink:href="#path-9"></use>
|
||||
<use fill="url(#linearGradient-8)" fill-rule="evenodd" xlink:href="#path-9"></use>
|
||||
</g>
|
||||
<g id="路径">
|
||||
<use fill="#5B8C06" fill-rule="evenodd" xlink:href="#path-11"></use>
|
||||
<use fill="black" fill-opacity="1" filter="url(#filter-12)" xlink:href="#path-11"></use>
|
||||
</g>
|
||||
<g id="路径备份">
|
||||
<use fill="#5B8C06" fill-rule="evenodd" xlink:href="#path-13"></use>
|
||||
<use fill="black" fill-opacity="1" filter="url(#filter-14)" xlink:href="#path-13"></use>
|
||||
</g>
|
||||
<polygon id="路径-4备份" fill="url(#linearGradient-15)" transform="translate(71.995299, 162.885973) scale(-1, 1) translate(-71.995299, -162.885973) " points="20.4301769 118.218419 124 77.7719458 124 192.941695 19.9905981 248"></polygon>
|
||||
<line x1="123.560421" y1="245.912586" x2="124" y2="114.029217" id="路径-7备份" stroke="url(#linearGradient-16)" stroke-width="2.6125" stroke-linecap="round"></line>
|
||||
<polygon id="路径-4备份" fill="url(#linearGradient-17)" points="124 114.029217 231.198465 75.4450395 231.198465 193.553624 124 248"></polygon>
|
||||
<g id="路径-11">
|
||||
<use fill="black" fill-opacity="1" filter="url(#filter-20)" xlink:href="#path-19"></use>
|
||||
<use fill="url(#linearGradient-18)" fill-rule="evenodd" xlink:href="#path-19"></use>
|
||||
</g>
|
||||
<polygon id="路径-3" fill="url(#linearGradient-21)" points="177.791264 92.5327965 178.598476 220.244869 195.622586 211.671682 196.169593 85.4467628"></polygon>
|
||||
<g id="路径-11备份" transform="translate(186.000000, 127.950307) scale(1, -1) translate(-186.000000, -127.950307) ">
|
||||
<use fill="black" fill-opacity="1" filter="url(#filter-24)" xlink:href="#path-23"></use>
|
||||
<use fill="url(#linearGradient-22)" fill-rule="evenodd" xlink:href="#path-23"></use>
|
||||
</g>
|
||||
<path d="M34.8824439,168.349874 L62.2463189,168.831259 C63.6537673,168.856018 64.7885425,169.99145 64.8124889,171.398912 L64.8191082,171.787962 C64.843653,173.230597 63.6940637,174.419981 62.2514286,174.444526 C62.2212993,174.445039 62.1911633,174.44503 62.1610343,174.4445 L34.7971594,173.963116 C33.389711,173.938356 32.2549357,172.802925 32.2309893,171.395463 L32.2243701,171.006413 C32.1998253,169.563778 33.3494146,168.374393 34.7920497,168.349848 C34.822179,168.349336 34.8523149,168.349344 34.8824439,168.349874 Z" id="矩形" fill="#F4E5C3" transform="translate(48.521739, 171.397187) rotate(23.000000) translate(-48.521739, -171.397187) "></path>
|
||||
<path d="M35.6935587,176.218338 L46.7821941,176.425811 C48.1873409,176.452102 49.3199011,177.585307 49.3453919,178.990469 L49.3523188,179.372312 C49.3784889,180.814919 48.2302402,182.005597 46.7876337,182.031767 C46.7555504,182.032349 46.7234591,182.03234 46.6913762,182.03174 L35.6027408,181.824267 C34.197594,181.797976 33.0650338,180.664771 33.039543,179.259609 L33.0326161,178.877766 C33.006446,177.435159 34.1546947,176.24448 35.5973013,176.21831 C35.6293845,176.217728 35.6614758,176.217738 35.6935587,176.218338 Z" id="矩形备份" fill="#F3DA7B" transform="translate(41.192467, 179.125039) rotate(25.000000) translate(-41.192467, -179.125039) "></path>
|
||||
<path d="M22.4854175,71.9306494 L123.120842,113.074543 L22.4854175,71.9306494 Z" id="路径-7" stroke="url(#linearGradient-25)" stroke-width="2.6125" stroke-linecap="round"></path>
|
||||
<line x1="125.563916" y1="112.565642" x2="228.738156" y2="71.9125793" id="路径-7备份-2" stroke="url(#linearGradient-26)" stroke-width="2.6125" stroke-linecap="round"></line>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 15 KiB |
@@ -0,0 +1,21 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE policyconfig PUBLIC
|
||||
"-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN"
|
||||
"http://www.freedesktop.org/standards/PolicyKit/1/policyconfig.dtd">
|
||||
<policyconfig>
|
||||
<vendor>gfdgd xi</vendor>
|
||||
<vendor_url>https://gitee.com/gfdgd-xi/uengine-runner/</vendor_url>
|
||||
<action id="com.deepin.pkexec.apt">
|
||||
<message>Authentication is required to Install or Reinstall Program</message>
|
||||
<message xml:lang="zh_CN">安装或卸载软件需要输入密码</message>
|
||||
<icon_name>preferences-system</icon_name>
|
||||
<defaults>
|
||||
<allow_any>no</allow_any>
|
||||
<allow_inactive>no</allow_inactive>
|
||||
<allow_active>auth_admin_keep</allow_active>
|
||||
</defaults>
|
||||
<annotate key="org.freedesktop.policykit.exec.path">/usr/bin/apt</annotate>
|
||||
<annotate key="org.freedesktop.policykit.exec.allow_gui">true</annotate>
|
||||
</action>
|
||||
|
||||
</policyconfig>
|
||||
@@ -0,0 +1,21 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE policyconfig PUBLIC
|
||||
"-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN"
|
||||
"http://www.freedesktop.org/standards/PolicyKit/1/policyconfig.dtd">
|
||||
<policyconfig>
|
||||
<vendor>gfdgd xi</vendor>
|
||||
<vendor_url>https://gitee.com/gfdgd-xi/uengine-runner/</vendor_url>
|
||||
<action id="com.deepin.pkexec.installscrcpy">
|
||||
<message>Authentication is required to Install Scrcpy</message>
|
||||
<message xml:lang="zh_CN">安装 Scrcpy 需要输入密码</message>
|
||||
<icon_name>preferences-system</icon_name>
|
||||
<defaults>
|
||||
<allow_any>no</allow_any>
|
||||
<allow_inactive>no</allow_inactive>
|
||||
<allow_active>auth_admin_keep</allow_active>
|
||||
</defaults>
|
||||
<annotate key="org.freedesktop.policykit.exec.path">/tmp/uengine-runner/InstallScrcpy.sh</annotate>
|
||||
<annotate key="org.freedesktop.policykit.exec.allow_gui">true</annotate>
|
||||
</action>
|
||||
|
||||
</policyconfig>
|
||||
@@ -8,7 +8,7 @@
|
||||
<action id="com.deepin.pkexec.uengine-bridge">
|
||||
<message>Authentication is required to Setting UEngine Internet Bridge</message>
|
||||
<message xml:lang="zh_CN">设置 UEngine 桥接需要输入密码</message>
|
||||
<icon_name>kbox</icon_name>
|
||||
<icon_name>uengine</icon_name>
|
||||
<defaults>
|
||||
<allow_any>no</allow_any>
|
||||
<allow_inactive>no</allow_inactive>
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
<action id="com.deepin.pkexec.uengine-session-launch-helper">
|
||||
<message>Authentication is required to Change UEngine</message>
|
||||
<message xml:lang="zh_CN">设置 UEngine 需要输入密码</message>
|
||||
<icon_name>kbox</icon_name>
|
||||
<icon_name>uengine</icon_name>
|
||||
<defaults>
|
||||
<allow_any>no</allow_any>
|
||||
<allow_inactive>no</allow_inactive>
|
||||
|
||||
21
pkexec/com.deepin.pkexec.apt.policy
Normal file
@@ -0,0 +1,21 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE policyconfig PUBLIC
|
||||
"-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN"
|
||||
"http://www.freedesktop.org/standards/PolicyKit/1/policyconfig.dtd">
|
||||
<policyconfig>
|
||||
<vendor>gfdgd xi</vendor>
|
||||
<vendor_url>https://gitee.com/gfdgd-xi/uengine-runner/</vendor_url>
|
||||
<action id="com.deepin.pkexec.apt">
|
||||
<message>Authentication is required to Install or Reinstall Program</message>
|
||||
<message xml:lang="zh_CN">安装或卸载软件需要输入密码</message>
|
||||
<icon_name>preferences-system</icon_name>
|
||||
<defaults>
|
||||
<allow_any>no</allow_any>
|
||||
<allow_inactive>no</allow_inactive>
|
||||
<allow_active>auth_admin_keep</allow_active>
|
||||
</defaults>
|
||||
<annotate key="org.freedesktop.policykit.exec.path">/usr/bin/apt</annotate>
|
||||
<annotate key="org.freedesktop.policykit.exec.allow_gui">true</annotate>
|
||||
</action>
|
||||
|
||||
</policyconfig>
|
||||
21
pkexec/com.deepin.pkexec.installscrcpy.policy
Normal file
@@ -0,0 +1,21 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE policyconfig PUBLIC
|
||||
"-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN"
|
||||
"http://www.freedesktop.org/standards/PolicyKit/1/policyconfig.dtd">
|
||||
<policyconfig>
|
||||
<vendor>gfdgd xi</vendor>
|
||||
<vendor_url>https://gitee.com/gfdgd-xi/uengine-runner/</vendor_url>
|
||||
<action id="com.deepin.pkexec.installscrcpy">
|
||||
<message>Authentication is required to Install Scrcpy</message>
|
||||
<message xml:lang="zh_CN">安装 Scrcpy 需要输入密码</message>
|
||||
<icon_name>preferences-system</icon_name>
|
||||
<defaults>
|
||||
<allow_any>no</allow_any>
|
||||
<allow_inactive>no</allow_inactive>
|
||||
<allow_active>auth_admin_keep</allow_active>
|
||||
</defaults>
|
||||
<annotate key="org.freedesktop.policykit.exec.path">/tmp/uengine-runner/InstallScrcpy.sh</annotate>
|
||||
<annotate key="org.freedesktop.policykit.exec.allow_gui">true</annotate>
|
||||
</action>
|
||||
|
||||
</policyconfig>
|
||||
58
pkexec/icon/kbox.svg
Normal file
@@ -0,0 +1,58 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="512" height="512" viewBox="0 0 512 512">
|
||||
<defs>
|
||||
<filter id="安卓容器-512px-a" width="122.6%" height="123.3%" x="-11.3%" y="-11.6%" filterUnits="objectBoundingBox">
|
||||
<feOffset dy="8" in="SourceAlpha" result="shadowOffsetOuter1"/>
|
||||
<feGaussianBlur in="shadowOffsetOuter1" result="shadowBlurOuter1" stdDeviation="10"/>
|
||||
<feColorMatrix in="shadowBlurOuter1" result="shadowMatrixOuter1" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"/>
|
||||
<feMerge>
|
||||
<feMergeNode in="shadowMatrixOuter1"/>
|
||||
<feMergeNode in="SourceGraphic"/>
|
||||
</feMerge>
|
||||
</filter>
|
||||
<linearGradient id="安卓容器-512px-b" x1="50%" x2="50%" y1="0%" y2="100%">
|
||||
<stop offset="0%" stop-color="#CFFB82"/>
|
||||
<stop offset="100%" stop-color="#539109"/>
|
||||
</linearGradient>
|
||||
<linearGradient id="安卓容器-512px-c" x1="50%" x2="50%" y1="0%" y2="190.452%">
|
||||
<stop offset="0%" stop-color="#FFF"/>
|
||||
<stop offset="100%" stop-color="#FFF" stop-opacity=".255"/>
|
||||
</linearGradient>
|
||||
<linearGradient id="安卓容器-512px-d" x1="50%" x2="50%" y1="11.664%" y2="100%">
|
||||
<stop offset="0%" stop-color="#ECCB89"/>
|
||||
<stop offset="15.474%" stop-color="#CC9A4E"/>
|
||||
<stop offset="23.345%" stop-color="#E2BB78"/>
|
||||
<stop offset="29.459%" stop-color="#E5BE7D"/>
|
||||
<stop offset="100%" stop-color="#D1965D"/>
|
||||
</linearGradient>
|
||||
<path id="安卓容器-512px-e" d="M72,148 L406,148 C426.434536,148 443,164.565464 443,185 L443,427 C443,447.434536 426.434536,464 406,464 L72,464 C51.5654643,464 35,447.434536 35,427 L35,185 C35,164.565464 51.5654643,148 72,148 Z"/>
|
||||
<linearGradient id="安卓容器-512px-f" x1="50%" x2="50%" y1="0%" y2="126.091%">
|
||||
<stop offset="0%" stop-color="#FD9"/>
|
||||
<stop offset="100%" stop-color="#D1A25E"/>
|
||||
</linearGradient>
|
||||
<path id="安卓容器-512px-g" d="M45.2703171,146 L432.729683,146 C438.398863,146 443.508433,149.418972 445.671038,154.659463 L474.009349,223.329731 C475.484098,226.903388 473.782597,230.995929 470.20894,232.470677 C469.362065,232.820159 468.454823,233 467.538672,233 L10.4613285,233 C6.59533521,233 3.46132846,229.865993 3.46132846,226 C3.46132846,225.083848 3.64116944,224.176606 3.99065113,223.329731 L32.3289625,154.659463 C34.4915674,149.418972 39.6011368,146 45.2703171,146 Z"/>
|
||||
<filter id="安卓容器-512px-h" width="99.6%" height="105.7%" x=".2%" y="-2.9%" filterUnits="objectBoundingBox">
|
||||
<feOffset dx="-2" dy="-3" in="SourceAlpha" result="shadowOffsetInner1"/>
|
||||
<feComposite in="shadowOffsetInner1" in2="SourceAlpha" k2="-1" k3="1" operator="arithmetic" result="shadowInnerInner1"/>
|
||||
<feColorMatrix in="shadowInnerInner1" result="shadowMatrixInner1" values="0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.08 0"/>
|
||||
<feGaussianBlur in="SourceAlpha" result="shadowBlurInner2" stdDeviation="1"/>
|
||||
<feOffset dy="3" in="shadowBlurInner2" result="shadowOffsetInner2"/>
|
||||
<feComposite in="shadowOffsetInner2" in2="SourceAlpha" k2="-1" k3="1" operator="arithmetic" result="shadowInnerInner2"/>
|
||||
<feColorMatrix in="shadowInnerInner2" result="shadowMatrixInner2" values="0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.241313374 0"/>
|
||||
<feMerge>
|
||||
<feMergeNode in="shadowMatrixInner1"/>
|
||||
<feMergeNode in="shadowMatrixInner2"/>
|
||||
</feMerge>
|
||||
</filter>
|
||||
</defs>
|
||||
<g fill="none" fill-rule="evenodd" filter="url(#安卓容器-512px-a)" transform="translate(17 23)">
|
||||
<g transform="translate(98)">
|
||||
<path fill="url(#安卓容器-512px-b)" d="M0,169 L282,169 C282,121.487244 262.463855,78.877939 223.561446,50.9789895 L254.479518,20.2056028 C259.575904,14.2876438 259.575904,8.87693847 254.479518,3.8044022 C249.383133,-1.26813407 243.777108,-1.26813407 238.001205,3.8044022 L202.836145,38.8049025 C183.639759,28.6598299 163.084337,23.5872936 141,23.5872936 C118.236145,23.5872936 97.3409639,28.6598299 78.1445783,38.973987 L42.9795181,3.8044022 C37.8831325,-1.26813407 32.2771084,-1.26813407 26.5012048,3.8044022 C20.5554217,8.87693847 20.5554217,14.4567284 26.5012048,20.2056028 L57.4192771,50.9789895 C19.026506,78.0325163 0,120.641821 0,169 Z"/>
|
||||
<path fill="url(#安卓容器-512px-c)" d="M205,88 C214.444444,88 222,95.5555556 222,105 C222,114.444444 214.444444,122 205,122 C195.555556,122 188,114.444444 188,105 C188,95.5555556 195.555556,88 205,88 Z M77,88 C86.4444444,88 94,95.5555556 94,105 C94,114.444444 86.4444444,122 77,122 C67.5555556,122 60,114.444444 60,105 C60,95.5555556 67.5555556,88 77,88 Z"/>
|
||||
</g>
|
||||
<use fill="url(#安卓容器-512px-d)" fill-rule="nonzero" xlink:href="#安卓容器-512px-e"/>
|
||||
<g fill-rule="nonzero">
|
||||
<use fill="url(#安卓容器-512px-f)" xlink:href="#安卓容器-512px-g"/>
|
||||
<use fill="#000" filter="url(#安卓容器-512px-h)" xlink:href="#安卓容器-512px-g"/>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 4.8 KiB |
48
pkexec/icon/preferences-system.svg
Normal file
|
After Width: | Height: | Size: 16 KiB |
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"Package": "com.gitee.uengine.runner.spark",
|
||||
"Update": true,
|
||||
"Version": "1.4.2",
|
||||
"Version": "1.5.1",
|
||||
"Url": "https://gfdgd-xi.github.io/update-program/data/UpdateInformation.json"
|
||||
}
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"Package": "spark-uengine-runner",
|
||||
"Update": true,
|
||||
"Version": "1.4.2",
|
||||
"Version": "1.5.1",
|
||||
"Url": "https://gfdgd-xi.github.io/update-program/data/UpdateInformation.json"
|
||||
|
||||
}
|
||||
@@ -148,7 +148,7 @@ done
|
||||
exit 0'''.format(apkPackageName)
|
||||
desktopFile = '''[Desktop Entry]
|
||||
Categories=Other;
|
||||
Exec=/usr/bin/uengine-launch.sh --action=android.intent.action.MAIN --package={} --component={}
|
||||
Exec=uengine launch --action=android.intent.action.MAIN --package={} --component={}
|
||||
Icon=/usr/share/uengine/icons/{}.png
|
||||
Terminal=false
|
||||
Type=Application
|
||||
@@ -187,6 +187,7 @@ def DisabledAndEnbled(choose):
|
||||
userChoose = {True: tk.DISABLED, False: tk.NORMAL}
|
||||
a = userChoose[choose]
|
||||
combobox1.configure(state=a)
|
||||
check.configure(state=a)
|
||||
button2.configure(state=a)
|
||||
button3.configure(state=a)
|
||||
|
||||
@@ -204,6 +205,10 @@ def ReStartProgram():
|
||||
def get_home():
|
||||
return os.path.expanduser('~')
|
||||
|
||||
# 获取当前语言
|
||||
def get_now_lang()->"获取当前语言":
|
||||
return os.getenv('LANG')
|
||||
|
||||
# 获取用户桌面目录
|
||||
def get_desktop_path():
|
||||
for line in open(get_home() + "/.config/user-dirs.dirs"): # 以行来读取配置文件
|
||||
@@ -256,6 +261,7 @@ def GetApkActivityName(apkFilePath):
|
||||
return line
|
||||
|
||||
def GetApkPackageName(apkFilePath):
|
||||
# 提示:此函数有被为此程序适配而调整,如果需要最原始(无调整的)请使用主程序(此为附属组件)里的函数
|
||||
info = GetApkInformation(apkFilePath)
|
||||
for line in info.split('\n'):
|
||||
if "package:" in line:
|
||||
@@ -264,7 +270,10 @@ def GetApkPackageName(apkFilePath):
|
||||
line = line.replace("name=", "")
|
||||
line = line.replace("'", "")
|
||||
line = line.replace(" ", "")
|
||||
return line
|
||||
# 此较为特殊,因为需要判断用户是否要添加前缀
|
||||
if qianZhui.get() == True:
|
||||
return "uengine-dc-{}".format(line).lower()
|
||||
return line.lower()
|
||||
|
||||
def GetApkVersion(apkFilePath):
|
||||
info = GetApkInformation(apkFilePath)
|
||||
@@ -285,7 +294,7 @@ def BuildUengineDesktop(packageName, activityName, showName, iconPath, savePath)
|
||||
[Desktop Entry]
|
||||
Categories=app;
|
||||
Encoding=UTF-8
|
||||
Exec=/usr/bin/uengine-launch.sh --action=android.intent.action.MAIN --package={} --component={}
|
||||
Exec=/usr/bin/uengine launch.sh --action=android.intent.action.MAIN --package={} --component={}
|
||||
GenericName={}
|
||||
Icon={}
|
||||
MimeType=
|
||||
@@ -304,16 +313,16 @@ def GetApkChineseLabel(apkFilePath):
|
||||
line = line.replace("'", "")
|
||||
return line
|
||||
|
||||
def GetApkIconInApk(apkFilePath):
|
||||
info = GetApkInformation(apkFilePath)
|
||||
for line in info.split('\n'):
|
||||
if "application:" in line:
|
||||
line = line[line.index("icon='"): -1]
|
||||
line = line.replace("icon='", "")
|
||||
if "'" in line:
|
||||
line = line[0: line.index("'")]
|
||||
return line
|
||||
return line
|
||||
#def GetApkIconInApk(apkFilePath):
|
||||
# info = GetApkInformation(apkFilePath)
|
||||
# for line in info.split('\n'):
|
||||
# if "application:" in line:
|
||||
# line = line[line.index("icon='"): -1]
|
||||
# line = line.replace("icon='", "")
|
||||
# if "'" in line:
|
||||
# line = line[0: line.index("'")]
|
||||
# return line
|
||||
# return line
|
||||
|
||||
#合并两个函数到一起
|
||||
def SaveApkIcon(apkFilePath, iconSavePath)->"获取 apk 文件的图标":
|
||||
@@ -372,16 +381,20 @@ def get_home():
|
||||
# 程序信息
|
||||
###########################
|
||||
programPath = os.path.split(os.path.realpath(__file__))[0] # 返回 string
|
||||
lang = get_now_lang()
|
||||
langFile = json.loads(readtxt(programPath + "/Language.json"))
|
||||
if not lang in langFile.keys():
|
||||
lang = "en_US.UTF-8"
|
||||
information = json.loads(readtxt(programPath + "/information.json"))
|
||||
version = information["Version"]
|
||||
title = "UEngine APK 应用打包器 {}".format(version)
|
||||
title = "{} {}".format(langFile[lang]["Uengine Apk Builder"]["Title"], version)
|
||||
iconPath = "{}/icon.png".format(os.path.split(os.path.realpath(__file__))[0])
|
||||
|
||||
###########################
|
||||
# 加载配置
|
||||
###########################
|
||||
if not os.path.exists(get_home() + "/.config/uengine-runner"): # 如果没有配置文件夹
|
||||
os.mkdir(get_home() + "/.config/uengine-runner") # 创建配置文件夹
|
||||
os.makedirs(get_home() + "/.config/uengine-runner") # 创建配置文件夹
|
||||
if not os.path.exists(get_home() + "/.config/uengine-runner/FindApkBuildHistory.json"): # 如果没有配置文件
|
||||
write_txt(get_home() + "/.config/uengine-runner/FindApkBuildHistory.json", json.dumps({})) # 创建配置文件
|
||||
if not os.path.exists(get_home() + "/.config/uengine-runner/FindApkBuild.json"): # 如果没有配置文件
|
||||
@@ -396,34 +409,43 @@ findApkHistory = list(json.loads(readtxt(get_home() + "/.config/uengine-runner/F
|
||||
# 窗口创建
|
||||
###########################
|
||||
win = tk.Tk()
|
||||
|
||||
qianZhui = tk.BooleanVar()
|
||||
|
||||
window = ttk.Frame(win)
|
||||
frame2 = ttk.Frame(window)
|
||||
label1 = ttk.Label(window, text=langFile[lang]["Uengine Apk Builder"]["label1"])
|
||||
combobox1 = ttk.Combobox(window, width=100)
|
||||
button2 = ttk.Button(window, text=langFile[lang]["Uengine Apk Builder"]["button2"], command=FindApk)
|
||||
button3 = ttk.Button(frame2, text=langFile[lang]["Uengine Apk Builder"]["button3"], command=BuildDeb)
|
||||
check = ttk.Checkbutton(frame2, variable=qianZhui,text=langFile[lang]["Uengine Apk Builder"]["check"])
|
||||
textbox1 = tk.Text(window, width=100)
|
||||
menu = tk.Menu(window, background="white") # 设置菜单栏
|
||||
programmenu = tk.Menu(menu, tearoff=0, background="white") # 设置“程序”菜单栏
|
||||
|
||||
menu.add_cascade(label=langFile[lang]["Uengine Apk Builder"]["Menu"][0]["Name"], menu=programmenu)
|
||||
programmenu.add_command(label=langFile[lang]["Uengine Apk Builder"]["Menu"][0]["Menu"][0], command=window.quit) # 设置“退出程序”项
|
||||
# 设置控件
|
||||
combobox1['value'] = findApkHistory
|
||||
textbox1.configure(state=tk.DISABLED)
|
||||
textbox1.config(foreground='white', background='black')
|
||||
# 如果有参数
|
||||
if len(sys.argv) > 1:
|
||||
combobox1.set(sys.argv[1])
|
||||
# 设置窗口
|
||||
style = ttkthemes.ThemedStyle(win)
|
||||
style.set_theme("breeze")
|
||||
win.attributes('-alpha', 0.5)
|
||||
win.title(title)
|
||||
win.resizable(0, 0)
|
||||
win.iconphoto(False, tk.PhotoImage(file=iconPath))
|
||||
frame2 = ttk.Frame(window)
|
||||
label1 = ttk.Label(window, text="要打包的 apk 路径:")
|
||||
combobox1 = ttk.Combobox(window, width=100)
|
||||
button2 = ttk.Button(window, text="浏览", command=FindApk)
|
||||
button3 = ttk.Button(frame2, text="打包", command=BuildDeb)
|
||||
textbox1 = tk.Text(window, width=100)
|
||||
menu = tk.Menu(window, background="white") # 设置菜单栏
|
||||
programmenu = tk.Menu(menu, tearoff=0, background="white") # 设置“程序”菜单栏
|
||||
menu.add_cascade(label="程序", menu=programmenu)
|
||||
programmenu.add_command(label="退出程序", command=window.quit) # 设置“退出程序”项
|
||||
# 设置控件
|
||||
combobox1['value'] = findApkHistory
|
||||
textbox1.configure(state=tk.DISABLED)
|
||||
textbox1.config(foreground='white', background='black')
|
||||
#
|
||||
win.config(menu=menu) # 显示菜单栏
|
||||
label1.grid(row=2, column=0)
|
||||
combobox1.grid(row=2, column=1)
|
||||
#button1.grid(column=0, row=0)
|
||||
button2.grid(row=2, column=2)
|
||||
button3.grid(row=0, column=0)
|
||||
button3.grid(row=0, column=1)
|
||||
check.grid(row=0, column=0)
|
||||
frame2.grid(row=3, columnspa=3)
|
||||
textbox1.grid(row=4, columnspa=3)
|
||||
window.pack()
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
# 使用系统默认的 python3 运行
|
||||
###########################################################################################
|
||||
# 作者:gfdgd xi
|
||||
# 版本:1.4.2
|
||||
# 更新时间:2021年8月30日
|
||||
# 版本:1.4.3
|
||||
# 更新时间:2021年9月11日
|
||||
# 感谢:anbox、deepin 和 统信
|
||||
# 基于 Python3 的 tkinter 构建
|
||||
###########################################################################################
|
||||
@@ -11,6 +11,7 @@
|
||||
# 引入所需的库
|
||||
#################
|
||||
import os
|
||||
import threading
|
||||
import time
|
||||
import json
|
||||
import ttkthemes
|
||||
@@ -52,7 +53,16 @@ iconPath = "{}/icon.png".format(os.path.split(os.path.realpath(__file__))[0])
|
||||
desktop = "/opt/apps/uengine-runner/UengineAndroidProgramList.desktop"
|
||||
desktopName = "UengineAndroidProgramList.desktop"
|
||||
contribute = "\n".join(information["Contribute"])
|
||||
useProgram = '''1、UEngine:{}
|
||||
useProgram = ""
|
||||
threading.Thread(target=useProgram).start()
|
||||
|
||||
# add sub window
|
||||
#添加窗口开启关闭开关,防止重复开启
|
||||
windowflag = "close"
|
||||
|
||||
def UseProgram():
|
||||
global useProgram
|
||||
useProgram = '''1、UEngine:{}
|
||||
2、python3:{}
|
||||
3、tkinter:{}
|
||||
4、aapt:{}
|
||||
@@ -71,10 +81,6 @@ useProgram = '''1、UEngine:{}
|
||||
subprocess.getoutput("adb version"),
|
||||
subprocess.getoutput("deepin-terminal -v"))
|
||||
|
||||
# add sub window
|
||||
#添加窗口开启关闭开关,防止重复开启
|
||||
windowflag = "close"
|
||||
|
||||
def showhelp():
|
||||
|
||||
#define window and frame and button label
|
||||
@@ -127,6 +133,9 @@ def showhelp():
|
||||
def ChgAbout():
|
||||
HelpStr.set(about)
|
||||
def ChgDep():
|
||||
if useProgram == "":
|
||||
BtnZujian.configure(state=tk.DISABLED)
|
||||
return
|
||||
HelpStr.set(useProgram)
|
||||
def ChgCon():
|
||||
HelpStr.set(contribute)
|
||||
|
||||
24
uengine-runner-launch.sh
Executable file
@@ -0,0 +1,24 @@
|
||||
#!/bin/bash
|
||||
|
||||
# 忽略社区版检测
|
||||
|
||||
pkgRunCnt=`ps -ef |grep "uengine launch" |grep -v grep |grep "$pkg" |wc -l`
|
||||
if [ $pkgRunCnt -ge 1 ]; then
|
||||
#防止短时间内多次打开同一应用,如果应用正在启动中,此次忽略
|
||||
exit 0
|
||||
fi
|
||||
|
||||
#等Session服务启动完全
|
||||
wscont=0
|
||||
isReady=`busctl --user get-property org.anbox /org/anbox org.anbox.ApplicationManager Ready`
|
||||
if [ "$isReady" != "b true" ] ;then
|
||||
sleep 2
|
||||
fi
|
||||
while [ "$isReady" = "b false" -a $wscont -lt 10 ]
|
||||
do
|
||||
sleep 1
|
||||
isReady=`busctl --user get-property org.anbox /org/anbox org.anbox.ApplicationManager Ready`
|
||||
let wscont++
|
||||
done
|
||||
|
||||
uengine launch $*
|
||||
113
uengine-runner-update-bug
Executable file
@@ -0,0 +1,113 @@
|
||||
#!/usr/bin/env python3
|
||||
import os
|
||||
import json
|
||||
import base64
|
||||
import requests
|
||||
import ttkthemes
|
||||
import traceback
|
||||
import webbrowser
|
||||
import tkinter as tk
|
||||
import tkinter.ttk as ttk
|
||||
import tkinter.messagebox as messagebox
|
||||
import urllib.parse as parse
|
||||
|
||||
# 读取文本文档
|
||||
def readtxt(path: "路径")->"读取文本文档":
|
||||
f = open(path, "r") # 设置文件对象
|
||||
str = f.read() # 获取内容
|
||||
f.close() # 关闭文本对象
|
||||
return str # 返回结果
|
||||
|
||||
def Update(name, stars, contact, things, version):
|
||||
# post 内容
|
||||
data = {
|
||||
"Name": name,
|
||||
"Starts": stars,
|
||||
"Contact": contact,
|
||||
"Things": things,
|
||||
"Version": version
|
||||
}
|
||||
try:
|
||||
messagebox.showinfo(message=requests.post(parse.unquote(base64.b64decode("aHR0cCUzQS8vZ2ZkZ2R4aS5xaWNwLnZpcC91ZW5naW5lL2J1Zy91cGxvYWQucGhw").decode("utf-8")), data=data).text)
|
||||
except:
|
||||
traceback.print_exc()
|
||||
messagebox.showerror(title="错误", message="服务器疑似出现错误,可以进行以下尝试:①多尝试几次;②使用其他反馈途径\n错误信息:{}".format(traceback.format_exc()))
|
||||
|
||||
def UpdateButtonClick():
|
||||
#判断是否为空
|
||||
if nameThings.get() == "" or starValue.get() == "" or contactThings.get() == "" or updateThings.get(1.0, "end").replace(" ", "").replace("\n", "") == "":
|
||||
messagebox.showerror(title="错误", message="反馈信息未填写完整!")
|
||||
return
|
||||
Update(name=nameThings.get(), stars=starValue.get(), contact=contactThings.get(), things=updateThings.get(1.0, "end"), version=version)
|
||||
|
||||
def OpenGiteeIssues():
|
||||
webbrowser.open_new_tab("https://gitee.com/gfdgd-xi/uengine-runner/issues")
|
||||
|
||||
def OpenGithubIssues():
|
||||
webbrowser.open_new_tab("https://github.com/gfdgd-xi/uengine-runner/issues")
|
||||
|
||||
###########################
|
||||
# 程序信息
|
||||
###########################
|
||||
iconPath = "{}/icon.png".format(os.path.split(os.path.realpath(__file__))[0])
|
||||
programPath = os.path.split(os.path.realpath(__file__))[0] # 返回 string
|
||||
information = json.loads(readtxt(programPath + "/information.json"))
|
||||
version = information["Version"]
|
||||
|
||||
###########################
|
||||
# 窗口创建
|
||||
###########################
|
||||
window = tk.Tk()
|
||||
win = ttk.Frame()
|
||||
|
||||
starValue = tk.StringVar()
|
||||
starValue.set("5分")
|
||||
|
||||
name = ttk.Label(win, text="你的昵称:")
|
||||
nameThings = ttk.Entry(win, width=25)
|
||||
|
||||
contact = ttk.Label(win, text="联系方式:")
|
||||
contactThings = ttk.Entry(win, width=25)
|
||||
|
||||
star = ttk.Label(win, text="评分:")
|
||||
starMenu = ttk.OptionMenu(win, starValue, "5分", "5分", "4分", "3分", "2分", "1分")
|
||||
|
||||
updateThingsTips = ttk.Label(win, text="反馈内容(支持 Markdown 格式):")
|
||||
updateThings = tk.Text(win)
|
||||
|
||||
otherUpload = ttk.Frame(win)
|
||||
# 所属内容
|
||||
tips = ttk.Label(otherUpload, text="如果无法正常反馈,可以用其他方式反馈:")
|
||||
giteeButton = ttk.Button(otherUpload, text="Gitee Issues", command=OpenGiteeIssues)
|
||||
githubButton = ttk.Button(otherUpload, text="Github Issues", command=OpenGithubIssues)
|
||||
|
||||
updateButton = ttk.Button(win, text="提交", command=UpdateButtonClick)
|
||||
|
||||
# 设置窗口
|
||||
style = ttkthemes.ThemedStyle(window)
|
||||
style.set_theme("breeze")
|
||||
window.title("UEngine 运行器 {} 问题/建议反馈".format(version))
|
||||
window.resizable(0, 0)
|
||||
window.iconphoto(False, tk.PhotoImage(file=iconPath))
|
||||
|
||||
tips.grid(row=0, column=0)
|
||||
giteeButton.grid(row=0, column=1)
|
||||
githubButton.grid(row=0, column=2)
|
||||
|
||||
name.grid(row=0, column=0)
|
||||
nameThings.grid(row=0, column=1)
|
||||
|
||||
contact.grid(row=0, column=2)
|
||||
contactThings.grid(row=0, column=3)
|
||||
|
||||
star.grid(row=0, column=4)
|
||||
starMenu.grid(row=0, column=5)
|
||||
|
||||
updateThingsTips.grid(row=1, column=0, columnspan=2)
|
||||
updateThings.grid(row=2, column=0, columnspan=6)
|
||||
|
||||
otherUpload.grid(row=3, column=0, columnspan=4)
|
||||
updateButton.grid(row=3, column=5)
|
||||
|
||||
win.pack(expand="yes", fill="both")
|
||||
window.mainloop()
|
||||
153
uengine_logo.svg
Normal file
@@ -0,0 +1,153 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<svg width="256px" height="256px" viewBox="0 0 256 256" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<title>APPS_安卓容器_bonund256pt</title>
|
||||
<defs>
|
||||
<filter x="-12.5%" y="-12.5%" width="125.0%" height="125.0%" filterUnits="objectBoundingBox" id="filter-1">
|
||||
<feOffset dx="0" dy="4" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset>
|
||||
<feGaussianBlur stdDeviation="6" in="shadowOffsetOuter1" result="shadowBlurOuter1"></feGaussianBlur>
|
||||
<feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.197982681 0" type="matrix" in="shadowBlurOuter1" result="shadowMatrixOuter1"></feColorMatrix>
|
||||
<feMerge>
|
||||
<feMergeNode in="shadowMatrixOuter1"></feMergeNode>
|
||||
<feMergeNode in="SourceGraphic"></feMergeNode>
|
||||
</feMerge>
|
||||
</filter>
|
||||
<linearGradient x1="58.6019309%" y1="88.1513471%" x2="68.1110327%" y2="11.6551043%" id="linearGradient-2">
|
||||
<stop stop-color="#02DA67" offset="0%"></stop>
|
||||
<stop stop-color="#8DF6D6" offset="100%"></stop>
|
||||
</linearGradient>
|
||||
<path d="M178.25009,95.8175981 C203.764636,95.8175981 224.183124,74.193939 224.183124,47.5198036 C224.183124,20.8456682 203.116891,-0.0263983843 178.25009,0.00161822517 C153.698836,-0.149640967 132.579574,20.8119281 132.579574,47.4860635 C132.579574,74.1601989 152.735544,95.8175981 178.25009,95.8175981 Z" id="path-3"></path>
|
||||
<filter x="-8.7%" y="-8.3%" width="117.5%" height="116.7%" filterUnits="objectBoundingBox" id="filter-4">
|
||||
<feGaussianBlur stdDeviation="6" in="SourceAlpha" result="shadowBlurInner1"></feGaussianBlur>
|
||||
<feOffset dx="0" dy="4" in="shadowBlurInner1" result="shadowOffsetInner1"></feOffset>
|
||||
<feComposite in="shadowOffsetInner1" in2="SourceAlpha" operator="arithmetic" k2="-1" k3="1" result="shadowInnerInner1"></feComposite>
|
||||
<feColorMatrix values="0 0 0 0 0.503096532 0 0 0 0 0.974696063 0 0 0 0 0.762013922 0 0 0 1 0" type="matrix" in="shadowInnerInner1"></feColorMatrix>
|
||||
</filter>
|
||||
<linearGradient x1="63.5172866%" y1="83.8734541%" x2="28.478366%" y2="6.65286784%" id="linearGradient-5">
|
||||
<stop stop-color="#4796FE" offset="0%"></stop>
|
||||
<stop stop-color="#44D9FF" offset="100%"></stop>
|
||||
</linearGradient>
|
||||
<ellipse id="path-6" cx="75.4782609" cy="64.0914576" rx="40.4347826" ry="42.2724698"></ellipse>
|
||||
<filter x="-7.4%" y="-7.1%" width="114.8%" height="114.2%" filterUnits="objectBoundingBox" id="filter-7">
|
||||
<feGaussianBlur stdDeviation="6" in="SourceAlpha" result="shadowBlurInner1"></feGaussianBlur>
|
||||
<feOffset dx="0" dy="0" in="shadowBlurInner1" result="shadowOffsetInner1"></feOffset>
|
||||
<feComposite in="shadowOffsetInner1" in2="SourceAlpha" operator="arithmetic" k2="-1" k3="1" result="shadowInnerInner1"></feComposite>
|
||||
<feColorMatrix values="0 0 0 0 0.658848459 0 0 0 0 0.76869955 0 0 0 0 0.994393611 0 0 0 1 0" type="matrix" in="shadowInnerInner1"></feColorMatrix>
|
||||
</filter>
|
||||
<linearGradient x1="50%" y1="31.0023874%" x2="50%" y2="95.9937487%" id="linearGradient-8">
|
||||
<stop stop-color="#D0FF52" offset="0%"></stop>
|
||||
<stop stop-color="#75EF07" offset="100%"></stop>
|
||||
</linearGradient>
|
||||
<path d="M173.78741,23.8356193 C174.592173,22.5497756 176.286945,22.1597832 177.572789,22.9645469 C178.97904,23.8446691 179.464805,25.6626835 178.684957,27.1269214 L178.684957,27.1269214 L167.998548,47.191447 C186.416883,60.0725236 198.886549,83.3414384 199.457775,110.056847 L199.478261,111.975079 C172.083327,116.233637 151.498347,118.362915 137.72332,118.362915 C122.744723,118.362915 100.199269,116.233637 70.0869565,111.975079 C70.0869565,84.4580366 82.7086518,60.380247 101.56625,47.1917402 L90.8802608,27.1269214 C90.1004123,25.6626835 90.5861775,23.8446691 91.9924283,22.9645469 C93.278272,22.1597832 94.9730442,22.5497756 95.7778079,23.8356193 C95.8117323,23.8898235 95.8437535,23.9451959 95.873813,24.0016352 L106.548653,44.0451766 C115.080463,39.2096532 124.660045,36.497433 134.782609,36.497433 C144.904955,36.497433 154.484343,39.2095367 163.016015,44.0448652 L173.691404,24.0016352 C173.721464,23.9451959 173.753485,23.8898235 173.78741,23.8356193 Z" id="path-9"></path>
|
||||
<filter x="-32.5%" y="-31.3%" width="164.9%" height="187.7%" filterUnits="objectBoundingBox" id="filter-10">
|
||||
<feOffset dx="0" dy="12" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset>
|
||||
<feGaussianBlur stdDeviation="12" in="shadowOffsetOuter1" result="shadowBlurOuter1"></feGaussianBlur>
|
||||
<feColorMatrix values="0 0 0 0 0.565756196 0 0 0 0 0.617813774 0 0 0 0 0 0 0 0 0.5 0" type="matrix" in="shadowBlurOuter1"></feColorMatrix>
|
||||
</filter>
|
||||
<path d="M108.824477,66.2818224 C104.358174,66.2818224 100.73752,70.0670283 100.73752,74.7363163 C100.73752,79.4056044 104.358174,83.1908103 108.824477,83.1908103 C113.290779,83.1908103 116.911433,79.4056044 116.911433,74.7363163 C116.911433,70.0670283 113.290779,66.2818224 108.824477,66.2818224 Z" id="path-11"></path>
|
||||
<filter x="-24.7%" y="-23.7%" width="149.5%" height="147.3%" filterUnits="objectBoundingBox" id="filter-12">
|
||||
<feGaussianBlur stdDeviation="2" in="SourceAlpha" result="shadowBlurInner1"></feGaussianBlur>
|
||||
<feOffset dx="0" dy="4" in="shadowBlurInner1" result="shadowOffsetInner1"></feOffset>
|
||||
<feComposite in="shadowOffsetInner1" in2="SourceAlpha" operator="arithmetic" k2="-1" k3="1" result="shadowInnerInner1"></feComposite>
|
||||
<feColorMatrix values="0 0 0 0 0.311563901 0 0 0 0 0.401805933 0 0 0 0 0.0617868498 0 0 0 1 0" type="matrix" in="shadowInnerInner1"></feColorMatrix>
|
||||
</filter>
|
||||
<path d="M162.73752,66.2818224 C158.271217,66.2818224 154.650564,70.0670283 154.650564,74.7363163 C154.650564,79.4056044 158.271217,83.1908103 162.73752,83.1908103 C167.203823,83.1908103 170.824477,79.4056044 170.824477,74.7363163 C170.824477,70.0670283 167.203823,66.2818224 162.73752,66.2818224 Z" id="path-13"></path>
|
||||
<filter x="-24.7%" y="-23.7%" width="149.5%" height="147.3%" filterUnits="objectBoundingBox" id="filter-14">
|
||||
<feGaussianBlur stdDeviation="2" in="SourceAlpha" result="shadowBlurInner1"></feGaussianBlur>
|
||||
<feOffset dx="0" dy="4" in="shadowBlurInner1" result="shadowOffsetInner1"></feOffset>
|
||||
<feComposite in="shadowOffsetInner1" in2="SourceAlpha" operator="arithmetic" k2="-1" k3="1" result="shadowInnerInner1"></feComposite>
|
||||
<feColorMatrix values="0 0 0 0 0.311563901 0 0 0 0 0.401805933 0 0 0 0 0.0617868498 0 0 0 1 0" type="matrix" in="shadowInnerInner1"></feColorMatrix>
|
||||
</filter>
|
||||
<linearGradient x1="50%" y1="15.1929094%" x2="43.5077077%" y2="91.2786664%" id="linearGradient-15">
|
||||
<stop stop-color="#F59A36" offset="0%"></stop>
|
||||
<stop stop-color="#FCCB6D" offset="100%"></stop>
|
||||
</linearGradient>
|
||||
<linearGradient x1="49.9821781%" y1="101.237754%" x2="49.9425633%" y2="5.03998902%" id="linearGradient-16">
|
||||
<stop stop-color="#FFC87C" offset="0%"></stop>
|
||||
<stop stop-color="#FD7A49" offset="100%"></stop>
|
||||
</linearGradient>
|
||||
<linearGradient x1="42.3143683%" y1="18.131572%" x2="69.2971087%" y2="74.6901955%" id="linearGradient-17">
|
||||
<stop stop-color="#FFE066" offset="0%"></stop>
|
||||
<stop stop-color="#FED862" offset="67.0339918%"></stop>
|
||||
<stop stop-color="#FFC565" offset="100%"></stop>
|
||||
</linearGradient>
|
||||
<linearGradient x1="37.3123913%" y1="70.4187755%" x2="57.7534931%" y2="25.1271391%" id="linearGradient-18">
|
||||
<stop stop-color="#FBC758" offset="0%"></stop>
|
||||
<stop stop-color="#FCE188" offset="100%"></stop>
|
||||
</linearGradient>
|
||||
<polygon id="path-19" points="22.4854175 71.1352831 124 111.895386 108.52496 183.11999 -1.44464996e-12 131.484995"></polygon>
|
||||
<filter x="-3.2%" y="-3.6%" width="112.9%" height="114.3%" filterUnits="objectBoundingBox" id="filter-20">
|
||||
<feOffset dx="4" dy="4" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset>
|
||||
<feGaussianBlur stdDeviation="2" in="shadowOffsetOuter1" result="shadowBlurOuter1"></feGaussianBlur>
|
||||
<feColorMatrix values="0 0 0 0 0.925490196 0 0 0 0 0.556862745 0 0 0 0 0.0980392157 0 0 0 1 0" type="matrix" in="shadowBlurOuter1"></feColorMatrix>
|
||||
</filter>
|
||||
<linearGradient x1="38.069149%" y1="33.5367903%" x2="38.069149%" y2="98.1621294%" id="linearGradient-21">
|
||||
<stop stop-color="#FE606D" offset="0%"></stop>
|
||||
<stop stop-color="#FFA2A5" offset="100%"></stop>
|
||||
</linearGradient>
|
||||
<linearGradient x1="60.0817844%" y1="28.2456942%" x2="38.943371%" y2="75.9265148%" id="linearGradient-22">
|
||||
<stop stop-color="#FEDB63" offset="0%"></stop>
|
||||
<stop stop-color="#FEDD73" offset="100%"></stop>
|
||||
</linearGradient>
|
||||
<polygon id="path-23" points="139.297941 70.1779313 248 120.532936 229.699968 185.722682 124 144.005227"></polygon>
|
||||
<filter x="-9.7%" y="-10.4%" width="112.9%" height="113.8%" filterUnits="objectBoundingBox" id="filter-24">
|
||||
<feOffset dx="-4" dy="-4" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset>
|
||||
<feGaussianBlur stdDeviation="2" in="shadowOffsetOuter1" result="shadowBlurOuter1"></feGaussianBlur>
|
||||
<feColorMatrix values="0 0 0 0 0.99518353 0 0 0 0 0.657959601 0 0 0 0 0.222035984 0 0 0 0.663358248 0" type="matrix" in="shadowBlurOuter1"></feColorMatrix>
|
||||
</filter>
|
||||
<linearGradient x1="1.3884147%" y1="42.2427784%" x2="97.6287521%" y2="58.3575504%" id="linearGradient-25">
|
||||
<stop stop-color="#FBDF84" offset="0%"></stop>
|
||||
<stop stop-color="#FEF6DF" offset="20.1427895%"></stop>
|
||||
<stop stop-color="#FFF8E2" offset="75.0762962%"></stop>
|
||||
<stop stop-color="#FBDF84" offset="100%"></stop>
|
||||
</linearGradient>
|
||||
<linearGradient x1="0%" y1="57.7627211%" x2="100%" y2="42.7948807%" id="linearGradient-26">
|
||||
<stop stop-color="#FDDD72" offset="0%"></stop>
|
||||
<stop stop-color="#FEF6DF" offset="20.1427895%"></stop>
|
||||
<stop stop-color="#FFF8E2" offset="75.0762962%"></stop>
|
||||
<stop stop-color="#FEDD71" offset="100%"></stop>
|
||||
</linearGradient>
|
||||
</defs>
|
||||
<g id="APPS_安卓容器_bonund256pt" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
||||
<g id="编组-3备份-3" filter="url(#filter-1)" transform="translate(4.000000, 4.000000)">
|
||||
<polygon id="路径-4" fill="#9F6B00" points="22.4854175 71.1352831 124 39.1781202 124 127.971838 42.4959276 162.72722"></polygon>
|
||||
<polygon id="路径-4" fill="#A16B00" transform="translate(176.849984, 103.805249) scale(-1, 1) translate(-176.849984, -103.805249) " points="124 70.2467832 229.699968 39.246972 229.699968 126.857126 143.556296 168.36355"></polygon>
|
||||
<g id="椭圆形">
|
||||
<use fill="url(#linearGradient-2)" fill-rule="evenodd" xlink:href="#path-3"></use>
|
||||
<use fill="black" fill-opacity="1" filter="url(#filter-4)" xlink:href="#path-3"></use>
|
||||
</g>
|
||||
<g id="椭圆形备份">
|
||||
<use fill="url(#linearGradient-5)" fill-rule="evenodd" xlink:href="#path-6"></use>
|
||||
<use fill="black" fill-opacity="1" filter="url(#filter-7)" xlink:href="#path-6"></use>
|
||||
</g>
|
||||
<g id="编组-2" transform="translate(125.653236, 69.872713) rotate(-9.000000) translate(-125.653236, -69.872713) translate(72.939312, 36.054737)"></g>
|
||||
<g id="形状结合备份-3">
|
||||
<use fill="black" fill-opacity="1" filter="url(#filter-10)" xlink:href="#path-9"></use>
|
||||
<use fill="url(#linearGradient-8)" fill-rule="evenodd" xlink:href="#path-9"></use>
|
||||
</g>
|
||||
<g id="路径">
|
||||
<use fill="#5B8C06" fill-rule="evenodd" xlink:href="#path-11"></use>
|
||||
<use fill="black" fill-opacity="1" filter="url(#filter-12)" xlink:href="#path-11"></use>
|
||||
</g>
|
||||
<g id="路径备份">
|
||||
<use fill="#5B8C06" fill-rule="evenodd" xlink:href="#path-13"></use>
|
||||
<use fill="black" fill-opacity="1" filter="url(#filter-14)" xlink:href="#path-13"></use>
|
||||
</g>
|
||||
<polygon id="路径-4备份" fill="url(#linearGradient-15)" transform="translate(71.995299, 162.885973) scale(-1, 1) translate(-71.995299, -162.885973) " points="20.4301769 118.218419 124 77.7719458 124 192.941695 19.9905981 248"></polygon>
|
||||
<line x1="123.560421" y1="245.912586" x2="124" y2="114.029217" id="路径-7备份" stroke="url(#linearGradient-16)" stroke-width="2.6125" stroke-linecap="round"></line>
|
||||
<polygon id="路径-4备份" fill="url(#linearGradient-17)" points="124 114.029217 231.198465 75.4450395 231.198465 193.553624 124 248"></polygon>
|
||||
<g id="路径-11">
|
||||
<use fill="black" fill-opacity="1" filter="url(#filter-20)" xlink:href="#path-19"></use>
|
||||
<use fill="url(#linearGradient-18)" fill-rule="evenodd" xlink:href="#path-19"></use>
|
||||
</g>
|
||||
<polygon id="路径-3" fill="url(#linearGradient-21)" points="177.791264 92.5327965 178.598476 220.244869 195.622586 211.671682 196.169593 85.4467628"></polygon>
|
||||
<g id="路径-11备份" transform="translate(186.000000, 127.950307) scale(1, -1) translate(-186.000000, -127.950307) ">
|
||||
<use fill="black" fill-opacity="1" filter="url(#filter-24)" xlink:href="#path-23"></use>
|
||||
<use fill="url(#linearGradient-22)" fill-rule="evenodd" xlink:href="#path-23"></use>
|
||||
</g>
|
||||
<path d="M34.8824439,168.349874 L62.2463189,168.831259 C63.6537673,168.856018 64.7885425,169.99145 64.8124889,171.398912 L64.8191082,171.787962 C64.843653,173.230597 63.6940637,174.419981 62.2514286,174.444526 C62.2212993,174.445039 62.1911633,174.44503 62.1610343,174.4445 L34.7971594,173.963116 C33.389711,173.938356 32.2549357,172.802925 32.2309893,171.395463 L32.2243701,171.006413 C32.1998253,169.563778 33.3494146,168.374393 34.7920497,168.349848 C34.822179,168.349336 34.8523149,168.349344 34.8824439,168.349874 Z" id="矩形" fill="#F4E5C3" transform="translate(48.521739, 171.397187) rotate(23.000000) translate(-48.521739, -171.397187) "></path>
|
||||
<path d="M35.6935587,176.218338 L46.7821941,176.425811 C48.1873409,176.452102 49.3199011,177.585307 49.3453919,178.990469 L49.3523188,179.372312 C49.3784889,180.814919 48.2302402,182.005597 46.7876337,182.031767 C46.7555504,182.032349 46.7234591,182.03234 46.6913762,182.03174 L35.6027408,181.824267 C34.197594,181.797976 33.0650338,180.664771 33.039543,179.259609 L33.0326161,178.877766 C33.006446,177.435159 34.1546947,176.24448 35.5973013,176.21831 C35.6293845,176.217728 35.6614758,176.217738 35.6935587,176.218338 Z" id="矩形备份" fill="#F3DA7B" transform="translate(41.192467, 179.125039) rotate(25.000000) translate(-41.192467, -179.125039) "></path>
|
||||
<path d="M22.4854175,71.9306494 L123.120842,113.074543 L22.4854175,71.9306494 Z" id="路径-7" stroke="url(#linearGradient-25)" stroke-width="2.6125" stroke-linecap="round"></path>
|
||||
<line x1="125.563916" y1="112.565642" x2="228.738156" y2="71.9125793" id="路径-7备份-2" stroke="url(#linearGradient-26)" stroke-width="2.6125" stroke-linecap="round"></line>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 15 KiB |