Compare commits

..

39 Commits
1.5.2 ... 1.6.2

Author SHA1 Message Date
c3800a2514 加ubuntu安装包 2022-06-21 18:28:50 +08:00
6b42f7eef6 改README 2022-06-21 18:18:35 +08:00
a6baf834c7 基本完工 2022-06-21 10:24:27 +08:00
3f9aa55d8d 即将打包 2022-06-21 10:01:24 +08:00
9660c8fb72 制作平滑升级包ing…… 2022-06-20 22:29:10 +08:00
acaa13e8ae 新增启动脚本 2022-06-20 09:22:23 +08:00
176025a3c5 更新开源许可证 2022-06-20 00:03:25 +00:00
8fb872d8ec 初步打包调试deb 2022-06-19 21:46:58 +08:00
79674c1c2f 小改deb脚本 2022-06-19 21:20:28 +08:00
b7f01d0ff6 更新了UEngine的Ubuntu安装程序 2022-06-19 21:04:16 +08:00
c030ab2c16 初步的未知来源安装开启功能完成 2022-06-19 14:03:40 +08:00
8747f69065 先立flag 2022-06-19 08:48:38 +08:00
b851b12a62 又加了一点点翻译 2022-06-18 23:01:23 +08:00
da0db9b0fb 没更新什么 2022-06-15 21:56:01 +08:00
22d1f1ab87 修改语言配置文件 2022-06-12 22:25:02 +08:00
4a5d060c43 API有误 2022-05-22 20:34:12 +08:00
d5b37e3951 更新README 2022-05-22 08:04:17 +08:00
ed2155b83e 1.6.1更新+API更新 2022-05-21 18:11:11 +08:00
05d977030c 添加忘记了的开发者名单以及添加了部分函数 2022-05-21 12:37:08 +08:00
c77bbceeb2 添加函数(包括打包deb的函数) 2022-05-21 12:06:17 +08:00
7f36a1ff3c 加了一点函数 2022-05-16 22:21:59 +08:00
d68f42c368 添加了API函数以及文档 2022-05-15 21:54:04 +08:00
c9a3db2f37 首次添加 API 接口 2022-05-15 20:14:02 +08:00
677ff4c16b 首次添加 API 接口 2022-05-15 20:13:18 +08:00
65eaf17d85 目前包没问题 2022-02-18 13:21:23 +08:00
72cf1e0881 修复巨大bug 2022-02-15 21:56:32 +08:00
c53ad469e5 deb包有一点小问题 2022-02-12 22:21:12 +08:00
34e4d83104 更新一下README 2022-02-12 22:15:17 +08:00
5b85af521e 完成1.6.0 2022-02-12 22:03:40 +08:00
158e99c3c4 即将完成! 2022-02-12 21:55:33 +08:00
5e31ca90c5 完善帮助文档 2022-02-11 19:25:47 +08:00
35fc896aaa 即将完成1.6.0 2022-02-11 16:38:03 +08:00
9510660321 新增程序彩蛋、更新窗口<初步>(昨天忘记上传了) 2022-02-09 11:50:23 +08:00
282bb35444 改一下README的老旧部分 2022-02-07 22:43:23 +08:00
bb813fc866 新增评分功能 2022-02-07 22:35:15 +08:00
d081862a4a 添加图标 2022-02-06 10:33:53 +08:00
09857468f7 1.5.3完成 2021-12-12 12:33:21 +08:00
2abc67e426 初步完成1.5.3 2021-12-12 11:28:22 +08:00
c4ab276ab5 更新 README 2021-11-28 20:47:52 +08:00
244 changed files with 8216 additions and 2028 deletions

1
.idea/vcs.xml generated
View File

@@ -2,5 +2,6 @@
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$" vcs="Git" />
<mapping directory="$PROJECT_DIR$/Internet/random-questions/Question" vcs="Git" />
</component>
</project>

Binary file not shown.

After

Width:  |  Height:  |  Size: 99 KiB

BIN
1/我好命苦.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 513 KiB

BIN
1/气死我了.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 870 KiB

BIN
Help/1-1-1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

BIN
Help/1-1-2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

BIN
Help/1-1-3.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

BIN
Help/1-1-4.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB

BIN
Help/1-1-5.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

BIN
Help/1-2-1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 74 KiB

BIN
Help/1-2-2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

BIN
Help/1-3-1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

BIN
Help/1-4-1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

BIN
Help/1-5-1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 56 KiB

BIN
Help/1-5-2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.2 KiB

BIN
Help/1-6-1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 70 KiB

BIN
Help/1-6-2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

BIN
Help/1-6-3.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB

BIN
Help/1-7-1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

BIN
Help/1-8-1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 75 KiB

BIN
Help/1-9-1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB

BIN
Help/1-9-2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

BIN
Help/1-9-3.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

BIN
Help/1-9-4.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 115 KiB

BIN
Help/1-9-5.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB

BIN
Help/1-9-6.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.3 KiB

BIN
Help/1-9-7.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

165
Help/index.html Normal file
View File

@@ -0,0 +1,165 @@
<!doctype html>
<html>
<head>
<meta charset='UTF-8'><meta name='viewport' content='width=device-width initial-scale=1'>
<title>index</title>
</head>
<body><h1 id='uengine-运行器帮助'>UEngine 运行器帮助</h1>
<hr />
<h2 id='帮助简述'>帮助简述</h2>
<blockquote><p>安装APK点浏览按钮选中需要安装的APK然后点安装按钮<br/>卸载APK在卸载APK下面的输入框内输入需要卸载的APK包名点卸载按钮如果无法获取包名可以通过浏览APK文件程序自动获取包名进行卸载。<br/>保存APK图标在安装APK下面的输入框浏览或输入APK的路径然后点击“保存图标”按钮选择保存位置即可<br/>重置删除UEngine数据点击菜单栏的“UEngine”的“清空UEngine数据”输入密码重启即可<br/>注意如果任何安卓一遍打不开多打开几遍应该就可以重新加载UEngine配置了<br/>打开UEngine应用列表打开系统已安装的应用列表安卓界面<br/><strong>提示:</strong> <br/><strong>※1、近期升级的 UEngine 安装时会自动把要安装的 apk 删除,如果这个 apk 文件非常重要请拷贝一个备份版并安装这个备份版</strong> <br/><strong>2、需要你有使用 root 权限的能力;</strong><br/><strong>3、需要安装 UEngine 才能使用;</strong><br/><strong>4、提取 apk 图标的 apk 路径以“安装 apk”那栏为准;</strong><br/><strong>5、如果想要使用adb连接UEngine或其他手机请使用 1.2.0 以前的版本。如需连接UEngine请安装adb补丁</strong> </p>
</blockquote>
<hr />
<h2 id='详细帮助'>详细帮助</h2>
<h3 id='如何安装自己的-apk'>如何安装自己的 Apk</h3>
<p><em>请保证您已经把要安装的Apk下载到电脑本地并保证Apk完整且有权限</em></p>
<h4 id='方法一-1'>方法一</h4>
<ol start='' >
<li>打开 UEngine 运行器 <br/><img src="1-1-1.png" referrerpolicy="no-referrer"> </li>
<li>点击浏览按钮找到想要安装的Apk<br/><img src="1-1-2.png" referrerpolicy="no-referrer"> </li>
<li>点击安装按钮,输入密码
<img src="1-1-3.png" referrerpolicy="no-referrer"> </li>
<li>提示“操作完成”,在启动器找到新安装的图标启动即可<br/><img src="1-1-4.png" referrerpolicy="no-referrer"><br/><img src="1-1-5.png" referrerpolicy="no-referrer"> </li>
</ol>
<h4 id='方法二-1'>方法二</h4>
<ol start='' >
<li>打开要安装的Apk所在目录右击=&gt;打开方式=&gt;安装或卸载 APKUEngine 运行器)<br/><img src="1-2-1.png" referrerpolicy="no-referrer"> </li>
<li>点击安装按钮,输入密码<br/><img src="1-1-3.png" referrerpolicy="no-referrer"> </li>
<li>提示“操作完成”,在启动器找到新安装的图标启动即可<br/><img src="1-1-4.png" referrerpolicy="no-referrer"><br/><img src="1-2-2.png" referrerpolicy="no-referrer"> </li>
</ol>
<h3 id='卸载apk'>卸载Apk</h3>
<h4 id='方法一-2'>方法一</h4>
<ol start='' >
<li>打开 UEngine 运行器 <br/><img src="1-1-1.png" referrerpolicy="no-referrer"> </li>
<li>点击浏览按钮找到想要卸载的Apk<br/><img src="1-1-2.png" referrerpolicy="no-referrer"> </li>
<li>点击卸载按钮,输入密码<br/><img src="1-1-3.png" referrerpolicy="no-referrer"> </li>
<li>提示“操作完成”,卸载完成 <br/><img src="1-1-4.png" referrerpolicy="no-referrer"> </li>
</ol>
<h4 id='方法二-2'>方法二</h4>
<ol start='' >
<li>打开要安装的Apk所在目录右击=&gt;打开方式=&gt;安装或卸载 APKUEngine 运行器)<br/><img src="1-2-1.png" referrerpolicy="no-referrer"> </li>
<li>点击卸载按钮,输入密码<br/><img src="1-1-3.png" referrerpolicy="no-referrer"> </li>
<li>提示“操作完成”,卸载完成<br/><img src="1-1-4.png" referrerpolicy="no-referrer"> </li>
</ol>
<h3 id='查询apk信息'>查询Apk信息</h3>
<ol start='' >
<li>打开 UEngine 运行器 <br/><img src="1-1-1.png" referrerpolicy="no-referrer"> </li>
<li>点击“Apk 信息” 按钮即可查询Apk信息</li>
</ol>
<p> <img src="1-3-1.png" referrerpolicy="no-referrer"></p>
<h3 id='查看程序评分'>查看程序评分</h3>
<ol start='' >
<li>打开 UEngine 运行器 <br/><img src="1-1-1.png" referrerpolicy="no-referrer"> </li>
<li>点击“Apk 信息” 按钮即可查询Apk信息
<img src="1-3-1.png" referrerpolicy="no-referrer"></li>
<li>点击“查看程序评分情况”即可查看其他用户对程序的评分</li>
</ol>
<p> <img src="1-4-1.png" referrerpolicy="no-referrer"></p>
<h3 id='上传用户评分'>上传用户评分</h3>
<ol start='' >
<li>打开 UEngine 运行器 </li>
</ol>
<p> <img src="1-1-1.png" referrerpolicy="no-referrer"> </p>
<ol start='2' >
<li>点击“Apk 信息” 按钮即可查询Apk信息</li>
</ol>
<p> <img src="1-3-1.png" referrerpolicy="no-referrer"></p>
<ol start='3' >
<li>点击“上传程序评分情况”,按照要求进行评分</li>
</ol>
<p> <img src="1-5-1.png" referrerpolicy="no-referrer"></p>
<ol start='4' >
<li>如果提示“提交成功!感谢您的提交”就代表评分成功</li>
</ol>
<p> <img src="1-5-2.png" referrerpolicy="no-referrer"></p>
<h3 id='更新程序'>更新程序</h3>
<ol start='' >
<li>打开 UEngine 运行器 </li>
</ol>
<p> <img src="1-1-1.png" referrerpolicy="no-referrer"></p>
<ol start='2' >
<li>点击“关于”=&gt;“检查更新”,打开更新窗口</li>
</ol>
<p> <img src="1-6-1.png" referrerpolicy="no-referrer"></p>
<ol start='3' >
<li><strong>保证您的电脑没有运行其它Python应用以及本程序所有工作都已经完成</strong>再点击“更新更新过程中会关闭所有Python应用包括这个应用输入密码以进行更新</li>
</ol>
<p> <img src="1-6-2.png" referrerpolicy="no-referrer"></p>
<ol start='4' >
<li>提示“更新完毕!”后重新启动 UEngine 运行器就更新完毕了</li>
</ol>
<p> <img src="1-6-3.png" referrerpolicy="no-referrer"></p>
<h3 id='保存图标'>保存图标</h3>
<ol start='' >
<li>打开 UEngine 运行器 </li>
</ol>
<p> <img src="1-1-1.png" referrerpolicy="no-referrer"></p>
<ol start='2' >
<li>选择要保存图标的Apk点击“保存图标”按钮选择要保存的位置即可</li>
</ol>
<p> <img src="1-7-1.png" referrerpolicy="no-referrer"></p>
<h3 id='打开已安装的程序列表'>打开已安装的程序列表</h3>
<h4 id='方法一-3'>方法一</h4>
<p>打开启动器=&gt;UEngine 程序菜单 即可</p>
<h4 id='方法二-3'>方法二</h4>
<ol start='' >
<li>打开 UEngine 运行器 <br/><img src="1-1-1.png" referrerpolicy="no-referrer"></li>
<li>点击“打开 UEngine 应用列表”即可</li>
</ol>
<p> <img src="1-8-1.png" referrerpolicy="no-referrer"></p>
<h3 id='将-apk-打包成可以无需本应用即可安装的-deb-包'>将 Apk 打包成可以无需本应用即可安装的 deb 包</h3>
<h4 id='打开-uengine-打包器的三种方法'>打开 UEngine 打包器的三种方法</h4>
<h5 id='方法一-4'>方法一</h5>
<p>启动器=&gt;UEngine 应用打包器</p>
<h5 id='方法二-4'>方法二</h5>
<p>打开要打包的 Apk 所在目录,右击=&gt;“打开方式”=&gt;“打包 debUEngine 运行器)”(接下来可以略过步骤一)</p>
<p><img src="1-9-1.png" referrerpolicy="no-referrer"></p>
<h5 id='方式三'>方式三</h5>
<p>打开 UEngine 运行器点击菜单栏的“UEngine”=&gt;“UEngine 应用打包”</p>
<p><img src="1-9-2.png" referrerpolicy="no-referrer"></p>
<h4 id='打包-deb'>打包 deb</h4>
<ol start='' >
<li>打开“UEngine Apk 应用打包器”点击“浏览按钮”选择apk</li>
</ol>
<p> <img src="1-9-3.png" referrerpolicy="no-referrer"></p>
<ol start='2' >
<li>根据实际情况勾选选项,然后点击“打包”进行打包</li>
</ol>
<p> <img src="1-9-4.png" referrerpolicy="no-referrer"></p>
<ol start='3' >
<li>当提示“打包完成”时,打包完成,可以在桌面(一般是<code>/home/XXX/Desktop</code>)找到您打包的 deb 包,可以双击安装</li>
</ol>
<p> <img src="1-9-5.png" referrerpolicy="no-referrer"></p>
<p> <img src="1-9-6.png" referrerpolicy="no-referrer"></p>
<p> <img src="1-9-7.png" referrerpolicy="no-referrer"></p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> ©2021-2022</p>
</body>
</html>

193
Help/index.md Normal file
View File

@@ -0,0 +1,193 @@
# UEngine 运行器帮助
---
## 帮助简述
> 安装APK点浏览按钮选中需要安装的APK然后点安装按钮
> 卸载APK在卸载APK下面的输入框内输入需要卸载的APK包名点卸载按钮如果无法获取包名可以通过浏览APK文件程序自动获取包名进行卸载。
> 保存APK图标在安装APK下面的输入框浏览或输入APK的路径然后点击“保存图标”按钮选择保存位置即可
> 重置删除UEngine数据点击菜单栏的“UEngine”的“清空UEngine数据”输入密码重启即可
> 注意如果任何安卓一遍打不开多打开几遍应该就可以重新加载UEngine配置了
> 打开UEngine应用列表打开系统已安装的应用列表安卓界面
> **提示:**
> **※1、近期升级的 UEngine 安装时会自动把要安装的 apk 删除,如果这个 apk 文件非常重要请拷贝一个备份版并安装这个备份版**
> **2、需要你有使用 root 权限的能力;**
> **3、需要安装 UEngine 才能使用;**
> **4、提取 apk 图标的 apk 路径以“安装 apk”那栏为准;**
> **5、如果想要使用adb连接UEngine或其他手机请使用 1.2.0 以前的版本。如需连接UEngine请安装adb补丁**
---
## 详细帮助
### 如何安装自己的 Apk
*请保证您已经把要安装的Apk下载到电脑本地并保证Apk完整且有权限*
#### 方法一
1. 打开 UEngine 运行器
![](1-1-1.png)
2. 点击浏览按钮找到想要安装的Apk
![](1-1-2.png)
3. 点击安装按钮,输入密码
![](1-1-3.png)
4. 提示“操作完成”,在启动器找到新安装的图标启动即可
![](1-1-4.png)
![](1-1-5.png)
#### 方法二
1. 打开要安装的Apk所在目录右击=>打开方式=>安装或卸载 APKUEngine 运行器)
![](1-2-1.png)
2. 点击安装按钮,输入密码
![](1-1-3.png)
3. 提示“操作完成”,在启动器找到新安装的图标启动即可
![](1-1-4.png)
![](1-2-2.png)
### 卸载Apk
#### 方法一
1. 打开 UEngine 运行器
![](1-1-1.png)
2. 点击浏览按钮找到想要卸载的Apk
![](1-1-2.png)
3. 点击卸载按钮,输入密码
![](1-1-3.png)
4. 提示“操作完成”,卸载完成
![](1-1-4.png)
#### 方法二
1. 打开要安装的Apk所在目录右击=>打开方式=>安装或卸载 APKUEngine 运行器)
![](1-2-1.png)
2. 点击卸载按钮,输入密码
![](1-1-3.png)
3. 提示“操作完成”,卸载完成
![](1-1-4.png)
### 查询Apk信息
1. 打开 UEngine 运行器
![](1-1-1.png)
2. 点击“Apk 信息” 按钮即可查询Apk信息
![](1-3-1.png)
### 查看程序评分
1. 打开 UEngine 运行器
![](1-1-1.png)
2. 点击“Apk 信息” 按钮即可查询Apk信息
![](1-3-1.png)
3. 点击“查看程序评分情况”即可查看其他用户对程序的评分
![](1-4-1.png)
### 上传用户评分
1. 打开 UEngine 运行器
![](1-1-1.png)
2. 点击“Apk 信息” 按钮即可查询Apk信息
![](1-3-1.png)
3. 点击“上传程序评分情况”,按照要求进行评分
![](1-5-1.png)
4. 如果提示“提交成功!感谢您的提交”就代表评分成功
![](1-5-2.png)
### 更新程序
1. 打开 UEngine 运行器
![](1-1-1.png)
2. 点击“关于”=>“检查更新”,打开更新窗口
![](1-6-1.png)
3. **保证您的电脑没有运行其它Python应用以及本程序所有工作都已经完成**再点击“更新更新过程中会关闭所有Python应用包括这个应用输入密码以进行更新
![](1-6-2.png)
4. 提示“更新完毕!”后重新启动 UEngine 运行器就更新完毕了
![](1-6-3.png)
### 保存图标
1. 打开 UEngine 运行器
![](1-1-1.png)
2. 选择要保存图标的Apk点击“保存图标”按钮选择要保存的位置即可
![](1-7-1.png)
### 打开已安装的程序列表
#### 方法一
打开启动器=>UEngine 程序菜单 即可
#### 方法二
1. 打开 UEngine 运行器
![](1-1-1.png)
2. 点击“打开 UEngine 应用列表”即可
![](1-8-1.png)
### 将 Apk 打包成可以无需本应用即可安装的 deb 包
#### 打开 UEngine 打包器的三种方法
##### 方法一
启动器=>UEngine 应用打包器
##### 方法二
打开要打包的 Apk 所在目录,右击=>“打开方式”=>“打包 debUEngine 运行器)”(接下来可以略过步骤一)
![](1-9-1.png)
##### 方式三
打开 UEngine 运行器点击菜单栏的“UEngine”=>“UEngine 应用打包”
![](1-9-2.png)
#### 打包 deb
1. 打开“UEngine Apk 应用打包器”点击“浏览按钮”选择apk
![](1-9-3.png)
2. 根据实际情况勾选选项,然后点击“打包”进行打包
![](1-9-4.png)
3. 当提示“打包完成”时,打包完成,可以在桌面(一般是`/home/XXX/Desktop`)找到您打包的 deb 包,可以双击安装
![](1-9-5.png)
![](1-9-6.png)
![](1-9-7.png)
©2021-2022

1047
LICENSE

File diff suppressed because it is too large Load Diff

View File

@@ -13,12 +13,39 @@
"Btngeticon": "保存图标",
"BtnSaveApk": "保存Apk",
"BtnApkInformation": "Apk 信息",
"Error": {
"InstallError": "信息没有填写完整,无法继续安装 APK",
"UninstallError": "信息没有填写完整,无法继续卸载 APK",
"BackApkError": "无法还原安装包\n提示新版UEngine安装后会自动删除安装包备份的Apk在/tmp/uengine-runner/bak.apk电脑重启后就会丢失",
"ChooseApkError": "你没有选择 apk 文件",
"SaveApkIconError": "本程序不支持保存该 apk 的图标",
"PathError": "路径不存在,请重试!",
"SettingReadError": "读取设置错误!无法打开设置窗口!",
"SettingSaveError": "保存设置错误!",
"ConnectServerError": "无法连接服务器!",
"ConnectServerStarError": "无法连接服务器!无法进行评分!",
"ApkFileError": "该应用安装包异常,无法查询相关数据!",
"InputDataError": "你输入的数值不正确!"
},
"Information": {
"Title": "提示",
"CompleteInformation": "完成"
},
"Answer": {
"Title": "提示",
"AllowOrDisallowUpdateAndroidAppAnswer": [
"你确定要启用 UEngine 可以安装以及使用默认的更新程序升级应用?(即允许未知来源)",
"你确定要禁用 UEngine 可以安装以及使用默认的更新程序升级应用?(即禁止未知来源)"
],
"UseAdbPackageAnswer": "你没有安装 adb 补丁,必须安装才能继续。是否安装?"
},
"Menu": [
{
"Name": "程序",
"Menu": [
"清空软件历史记录",
"退出程序"
"退出程序",
"程序设置"
]
},
{
@@ -104,7 +131,10 @@
"构建 UEngine 带最高权限的镜像到用户主目录",
"安装默认的 UEngine 镜像"
]
}
},
"在 Ubuntu 上安装 UEngine",
"启动/禁用UEngine安装的安卓程序程序更新",
"在 Ubuntu 上安装 UEngine"
]
},
{
@@ -112,7 +142,9 @@
"Menu": [
"程序官网",
"关于",
"反馈程序问题和建议"
"反馈程序问题和建议",
"检查更新",
"更多帮助"
]
}
]
@@ -147,12 +179,39 @@
"Btngeticon": "Save Apk Icon",
"BtnSaveApk": "Saving Installed App Apk",
"BtnApkInformation": "Apk Information",
"Error": {
"InstallError": "You don't input the APK file path, Can't install Android program by now.",
"UninstallError": "You don't input the APK file path or android program package name, Can't uninstall Android program by now.",
"BackApkError": "Can't recover the apk\nTips: Newer UEngine will delete the APK installing file when finish install, recover apk is in \"tmp/uengine-runner/bak.apk\", but it will be lose when you restart your computer.",
"ChooseApkError": "You don't choose any APK file.",
"SaveApkIconError": "This APK file isn't allow to save the icon file.",
"PathError": "Path not found, please try again",
"SettingReadError": "Read user setting error! Can't to continue to set!",
"SettingSaveError": "Setting can't save",
"ConnectServerError": "Can't connect the cloud server!",
"ConnectServerStarError": "Can't connect the cloud server! So can't give star for the app!",
"ApkFileError": "This apk file is error and can't find any data about the apk file!",
"InputDataError": "Your input error data!"
},
"Information": {
"Title": "Tips",
"CompleteInformation": "Complete!"
},
"Answer": {
"Title": "Tips",
"AllowOrDisallowUpdateAndroidAppAnswer": [
"Are you sure to allow UEngine to install or update other android program? (Allow )(即允许未知来源)",
"Are you sure to disallow UEngine to install or update other android program? (Allow )(即允许未知来源)"
],
"UseAdbPackageAnswer": "You don't install adb package with UEngine, you must install, and after install you can connect to set.\nDo you want to install?"
},
"Menu": [
{
"Name": "Program",
"Menu": [
"Clean Program History",
"Exit The Program"
"Exit The Program",
"Program Setting"
]
},
{
@@ -238,15 +297,20 @@
"Build An UEngine Image With Root User In Your Home Path",
"Install Defult UEngine Image"
]
}
},
"Install UEngine On Ubuntu",
"Allow/Disallow UEngine To Install Or Update Other Android Program",
"Install UEngine On Ubuntu"
]
},
{
"Name": "About",
"Menu": [
"Program WebSize",
"Program Help",
"Upload Problem And Advice"
"About This Program",
"Upload Problem And Advice",
"Update This Program",
"More Help"
]
}
]

141
README.md
View File

@@ -1,12 +1,100 @@
# uengine 运行器 1.5.1
# UEngine 运行器 1.6.1
### 介绍
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;新版本Deepin/UOS发布后可以在应用商店安装部分官方已适配的安卓应用对爱好者来说不能自己安装APK软件包始终差点意思本程序可以为Deepin/UOS上的UEngine安卓运行环境安装自定义APK软件包并能发送安装的APK包启动菜单到桌面或系统菜单。
![1.5.2](https://storage.deepin.org/thread/202111281607295590_截图_选择区域_20211128160706.png)
测试平台UOS 家庭版deepin 20.2.2,UOS 专业版 1040
(自己美术功底太差,图标直接用 anbox 的了)
![image.png](https://storage.deepin.org/thread/202206211816301171_image.png)
测试平台UOS 家庭版 21.1deepin 20.6,UOS 专业版 1040
## 安装前必读
+ **UEngine 安装时会自动把要安装的 apk 删除**,如果这个 apk 文件非常重要请**拷贝一个备份版并安装这个备份版或者在程序设置里面选择“备份APK包然后在安装后自动拷贝原先目录”选项**
![image.png](https://storage.deepin.org/thread/202205211808393526_image.png)
## 如何升级至最新版本
### 一、使用星火应用商店更新到最新版本
**1、打开星火应用商店并打开到对应的界面点击“升级”**
![image.png](https://storage.deepin.org/thread/202205220755222083_image.png)
**2、然后安装**
![image.png](https://storage.deepin.org/thread/202205220756248090_image.png)
**3、结束**
### 二、通过源更新(需要添加星火应用商店源)
输入以下命令即可:
```bash
sudo apt update
sudo apt upgrade
```
![image.png](https://storage.deepin.org/thread/202205220758088497_image.png)
### 三、使用程序自带的更新程序更新
**1、打开 UEngine 运行器然后点击“关于”=>“检查更新”点击“更新更新过程中会关闭所有Python应用包括这个应用”**
![image.png](https://storage.deepin.org/thread/202205220759382269_image.png)
**2、输入密码进行更新**
![image.png](https://storage.deepin.org/thread/202205220801175784_image.png)
**3、提示更新完毕即可**
![image.png](https://storage.deepin.org/thread/202205220801513371_image.png)
### 更新内容
#### V1.6.22022年06月21日中考假期+即将期末考试)
**※1、优化了 UEngine 运行器的英语翻译**
**※2、新增加了可以打开或关闭第三方应用安装的功能使用此功能后在UEngine里可以使用默认的APK安装程序安装应用此操作需要使用程序的Adb补丁**
**※3、新增加了 UEngine 的 Ubuntu 安装程序**
**※4、双包合一只保留了UOS打包标准可以从旧标准无缝升级推荐使用本程序的升级程序进行升级**
5、修复了本程序在 Ubuntu 上安装和卸载报错而无法继续的问题
6、优化帮助/关于窗口在高分辨率电脑上显示不全的问题
![image.png](https://storage.deepin.org/thread/202206211816301171_image.png)
#### V1.6.12022年05月21日521
**※1、修复了打包 deb 包在 APK 的包名有大写时无法启动的问题**
**※2、提供新版本的 UEngine Root 镜像**
**※3、更新了 UEngine Root 的下载地址**
**※4、修复了本程序的“UEngine 键盘映射”无法启动的问题**
5、把构建 UEngine Root 镜像修改为多线程下载wget=>aria2
6、提供了 UEngine 运行器的 API可以从项目地址中获取
7、补上遗漏的项目参与者“星空露光”新加参与者
![截图_选择区域_20220521175308.png](https://storage.deepin.org/thread/202205211806261045_截图_选择区域_20220521175308.png)
![截图_选择区域_20220521175238.png](https://storage.deepin.org/thread/202205211806269003_截图_选择区域_20220521175238.png)
![截图_选择区域_20220521175156.png](https://storage.deepin.org/thread/202205211806255140_截图_选择区域_20220521175156.png)
![截图_tk_20220521175128.png](https://storage.deepin.org/thread/202205211806252353_截图_tk_20220521175128.png)
![截图_选择区域_20220521175342.png](https://storage.deepin.org/thread/202205211806254882_截图_选择区域_20220521175342.png)
#### V1.6.0(开学版,开学前一天完成)
**※1、更换了新的图标已完成感谢[@星空露光](https://gitee.com/Cynorkyle)**
**※2、支持程序的评分和查看分数详情的功能**
**※3、修复了在安装奇奇怪怪的安装包如格式、标识不正确的时的快捷方式图标为空以及快捷方式文本的变化**
**※4、添加更新功能可以自行升级到最新版本**
**※5、新增程序帮助**
6、新填彩蛋在“关于”=>“关于”显示的窗口双击“关于”开启)
7、修复了“UEngine 打包器”前缀选项勾选设置不生效的问题
8、修复了“UEngine 打包器” 打包的安装包版本号带 V 无法打包的情况
![1.6.0](https://storage.deepin.org/thread/202202122214208076_截图_选择区域_20220212221349.png)
#### V1.5.32021-12-12DDUC11版
##### 更新内容
**※1、修复了在 UOS 家庭版安装 apk 文件安装包信息为 None 的问题**
**※2、“添加/删除 UEngine 图标”窗口的写入按钮在目录**`~/.local/share/icons/hicolor/256x256/apps`**不存在时点击无反应参考报错1.5.3-1**
**※3、修复了“UEngine APK 应用打包器”打包的deb包的.desktop文件的**`Icon`**和**`Exec`**字段有误的问题以及使用“使用前缀uengine-dc”前缀的问题**
4、“UEngine APK 应用打包器”支持打包完后自动删除临时目录
5、“UEngine APK 应用打包器”以及“添加/删除 UEngine 图标”支持在运行出现错误时显示报错
##### 报错:
*1.5.3-1*
```bash
Exception in Tkinter callback
Traceback (most recent call last):
File "/usr/lib/python3.7/tkinter/__init__.py", line 1705, in __call__
return self.func(*args)
File "/home/gfdgd_xi/Desktop/uengine-runner/main.py", line 865, in SaveDesktopLink
shutil.copy(programPath + "/defult.png", iconSavePath)
File "/usr/lib/python3.7/shutil.py", line 245, in copy
copyfile(src, dst, follow_symlinks=follow_symlinks)
File "/usr/lib/python3.7/shutil.py", line 121, in copyfile
with open(dst, 'wb') as fdst:
FileNotFoundError: [Errno 2] No such file or directory: '/home/gfdgd_xi/.local/share/icons/hicolor/256x256/apps/com.miHoYo.cloudgames.ys.png'
```
##### 截图
![1.5.3](https://storage.deepin.org/thread/202112121231595786_截图_选择区域_20211212123106.png)
#### V1.5.22021-11-28
**※1、支持安装和构建带 Root 的 UEngine 的镜像**
2、更新了反馈链接
@@ -123,8 +211,16 @@
1. 安装所需依赖
```bash
sudo apt install python3 python3-tk git python3-pip aapt uengine
python3 -m pip install ttkthemes
sudo apt install python3 python3-tk python3-pip aapt uengine
sudo apt install python3-setuptools deepin-terminal curl python3-pil
sudo apt install python3-pil.imagetk python3-requests adb
sudo apt install translate-shell python3-xlib fonts-noto-cjk
sudo apt install python3-numpy python3-matplotlib wget inotify-tools aria2
python3 -m pip install --upgrade pip -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com
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 easygui -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com
```
2. 下载本程序
@@ -136,20 +232,8 @@ git clone https://gitee.com/gfdgd-xi/uengine-runner.git
3. 运行本程序
```bash
sudo mkdir /opt/apps/uengine-runner
sudo cp uengine-runner /opt/apps/uengine-runner -rv
sudo cp getxmlimg.py /opt/apps/uengine-runner -rv
sudo cp icon.png /opt/apps/uengine-runner -rv
chmod 777 /opt/apps/uengine-runner/main.py
sudo cp /opt/apps/uengine-runner/main.py /usr/bin/uengine-runner
./main.py
```
4. 卸载本程序
```bash
sudo rm /usr/bin/uengine-runner -v
sudo rm /opt/apps/uengine-runner/ -rfv
pip3 uninstall ttkthemes
chmod 777 uengine-runner/main.py
./uengine-runner/main.py
```
### 使用说明
@@ -162,14 +246,10 @@ pip3 uninstall ttkthemes
提 issue 最好,当然有些问题自己无法解决,请大佬 push 一下
如果出现故障,尝试终端运行,如果是可以自行解决的问题,就**自行解决**,如果可以就**提 issues 并提供解决方案**,不行就**提 isscue 并提供程序和终端报错以及程序版本**
### 下载量
这里只统计蓝奏云的下载量,链接(每周更新一次):
[https://kdocs.cn/l/smrvazWGuKcY](https://kdocs.cn/l/smrvazWGuKcY)
### 已知问题
<p align="center"><img src='https://bbs.deepin.org/assets/image/raccoon/[sad].gif'></p>
![Error](https://storage.deepin.org/thread/202108101105396531_截图___tk__messagebox_20210810110449.png)
![Error](https://storage.deepin.org/thread/202108101105396531_截图___tk__messagebox_20210810110449.png)
部分 app 无法读取出图片,已知:
| 程序 | 下载链接 |
| :-: | :-: |
@@ -191,15 +271,20 @@ pip3 uninstall ttkthemes
| :-: | :-: |
| gfdgd xi | 3025613752@qq.com |
| actionchen | 917981399@qq.com |
| 柚子 | https://gitee.com/Limexb |
| 星空露光 | https://gitee.com/Cynorkyle |
| 为什么您不喜欢熊出没和阿布呢 | https://weibo.com/u/7755040136 |
### 相关项目
| 项目名称 | 项目地址 |
| :-: | :-:|
| uengine-installer | https://gitee.com/Maicss/uengine-installer |
| uengine APK 打包器 | https://gitee.com/gfdgd-xi/uengine-apk-builder |
| UEngine APK 打包器 | https://gitee.com/gfdgd-xi/uengine-apk-builder |
| Root UEngine | https://gitee.com/Limexb/root-uengine |
### 附测试生成图标无问题列表:
**至于能不能用就不测试了,这暂时不是重点**
**至于能不能用就不测试了,这暂时不是重点**
**现在新加了评分功能,就看大家的评分了!**
| 程序 | 下载链接 |
|:-:|:-:|
| QQ 全家桶完整版、极速版、Android Pad 版) | https://im.qq.com |
@@ -221,4 +306,4 @@ pip3 uninstall ttkthemes
| WPS Office For Android | https://www.wps.cn/ |
| 钉钉 for android | https://page.dingtalk.com/wow/dingtalk/act/download?spm=a3140.8196062.0.0.6f4c5c3dWBhYUM |
### ©2021-2021
### ©2021-2022

View File

@@ -3,7 +3,7 @@ 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/uengine-runner/icon.png
Icon=/opt/apps/uengine-runner/menu.svg
MimeType=
Name=UEngine 程序菜单
StartupWMClass=UEngine 程序菜单

14
UpdateApkProgram.py Normal file
View File

@@ -0,0 +1,14 @@
import ttkthemes
import tkinter as tk
import tkinter.ttk as ttk
window = tk.Tk()
win = tk.Frame(window)
chooseFrame = ttk.Frame(win)
fiveStar = ttk.Radiobutton(chooseFrame, text="五星(正常安装、运行、卸载且无任何问题)")
fourStar = ttk.Radiobutton(chooseFrame, text="四星(正常安装、运行、卸载,但在运行时有小问题)")
threeStar = ttk.Radiobutton(chooseFrame, text="三星(正常安装、运行、卸载,但运行时体验不佳,很多功能有问题)")
twoStar = ttk.Radiobutton(chooseFrame, text="二星(正常安装、卸载,但运行难以使用甚至完全无法运行)")
oneStar = ttk.Radiobutton(chooseFrame, text="一星(无法正常安装、运行、卸载)")
window.mainloop()

2
api-test.py Normal file
View File

@@ -0,0 +1,2 @@
import api
xxx = api.APK()

109
api/README.md Normal file
View File

@@ -0,0 +1,109 @@
# API 介绍
# 必知
1. 此 API 只支持可以运行 UEngine 的 Linux 上Windows 上无法使用
2. 部分函数需要 root 权限
3. 这是 UEngine 运行器的函数重构,所以一些 UEngine 运行器上没有的 bug 可能在这个 API 里有
## ProgramInformation
用于获取一些程序信息,详细如下(未特殊表明的是变量,否则是函数):
| 变量/函数名 | 变量/函数介绍 |
|:-:|:-:|
| programPath | 获取程序所在路径 |
| version | API 版本 |
| updateTime | 更新时间 |
| websize | 程序官网 |
| home | 用户 home用户文件目录 |
| developer | 参与的开发者列表 |
| language | 当前语言 |
| DesktopPath() | (函数)用户桌面目录 |
## Check
用于检查 API 所需的东西是否完整,详细如下:
| 函数名 | 函数介绍 |
|:-:|:-:|
| CheckDepend() | 检查 API 所需的依赖是否完整 |
## ROOT
用于检查 ROOT 方面问题,详细如下:
| 函数名 | 函数介绍 |
|:-:|:-:|
| GetRoot() | 检查程序/API是否以 ROOT 权限运行 |
## APK
这是面向对象的写法,所以应用方式也不一样:
```python
import api
xxx = api.APK("APK 所在路径")
```
具体函数介绍:
| 函数名 | 函数介绍 |
|:-:|:-:|
| xxx.install() | 安装这个 APK 包(需要 Root |
| xxx.uninstall()| 卸载这个 APK 包(需要 Root |
| xxx.information()| 获取从 aapt 获取到的 APK 信息 |
| xxx.activityName() | 获取 APK 的 Activity 信息 |
| xxx.packageName() | 获取 APK 包名 |
| xxx.chineseLabel() | 获取 APK 中文名称 |
| xxx.saveApkIcon("图标保存路径") | 保存 APK 的图标到指定路径 |
| xxx.version() | 获取 APK 版本号 |
| xxx.saveDesktopFile("图标保存路径", "快捷方式保存路径") | 保存支持 UEngine 启动的 APK 快捷方式 |
| xxx.run() | 运行该应用(需要保证已经安装) |
| xxx.buildDeb("deb 包保存路径", qianZhui) | 打包为 deb 包“qianZhui”是布尔值可略True代表有前缀为“uengine-dc”False代表没有前缀 |
## UEngine
用于对 UEngine 进行一点点操控,详细如下:
| 函数名 | 函数介绍 |
|:-:|:-:|
| UengineAppManager() | 显示 UEngine 安装应用程序管理器 |
| OpenApp("应用包名", "应用Activity") | 运行指定的应用(需要保证程序已经安装) |
| UengineDataClean() | 清空 UEngine 数据(需要 Root |
| RemoveUengineCheck() | 删除 UEngine 的检查脚本(需要 Root |
| CPUCheck() | 检查 CPU 是否支持运行 UEngine |
| BuildUengineRootImage() | 构建 UEngine 的 Root 镜像 |
| OpenUengineRootData() | 打开 UEngine 数据目录 |
| InstallRootUengineImage() | 安装已经被 Root 过的 UEngine 镜像(需要 Root |
| Services | 用于操控 UEngine 服务的类,见下(需要 Root |
| InternetBridge | 用于操控 UEngine 网络桥接的类,见下(需要 Root |
### Services
关于 UEngine 的服务控制:
| 函数名 | 函数介绍 |
|:-:|:-:|
| Services.Open() | 打开 UEngine 服务(需要 Root |
| Services.Close() | 关闭 UEngine 服务(需要 Root |
| Services.Restart() | 重启 UEngine 服务(需要 Root |
### InternetBridge
关于 UEngine 的网络桥接控制:
| 函数名 | 函数介绍 |
|:-:|:-:|
| InternetBridge.Open() | 打开 UEngine 网络桥接(需要 Root |
| InternetBridge.Close() | 关闭 UEngine 网络桥接(需要 Root |
| InternetBridge.Restart() | 重启 UEngine 网络桥接(需要 Root |
| InternetBridge.Reload() | 重新加载 UEngine 网络桥接(需要 Root |
| InternetBridge.ForceReload() | 强制加载 UEngine 网络桥接(需要 Root |
## Adb
用于对 Adb 的部分操控
| 函数名 | 函数介绍 |
|:-:|:-:|
| Services | 用于操控 Adb 服务的类,见下 |
### Service
关于 Adb 的服务控制:
| 函数名 | 函数介绍 |
|:-:|:-:|
| Services.Open() | 打开 Adb 服务 |
| Services.Close() | 关闭 Adb 服务 |
| Services.Kill() | 杀死 Adb 进程 |
## File
关于文件的读取和写入,这是面向对象的写法,所以应用方式也不一样:
```python
import api
xxx = api.File("文件所在路径")
```
| 函数名 | 函数介绍 |
|:-:|:-:|
| xxx.read() | 读取这个文件 |
| xxx.write("写入内容") | 写入这个文件 |
## UengineRunner
用于 UEngine 运行器的部分操控(请保证安装了 UEngine 运行器)
| 函数名 | 函数介绍 |
|:-:|:-:|
| CleanHistory() | 清理 UEngine 运行器的历史记录 |

371
api/__init__.py Normal file
View File

@@ -0,0 +1,371 @@
import os
import random
import shutil
import zipfile
import traceback
import subprocess
from getxmlimg import getsavexml
class ProgramInformation:
programPath = os.path.split(os.path.realpath(__file__))[0] # 返回 string
version = "1.6.0Alpha2"
updateTime = "2022年05月21日"
websize = ["https://gitee.com/gfdgd-xi/uengine-runner", "https://github.com/gfdgd-xi/uengine-runner"]
home = os.path.expanduser('~')
developer = ["gfdgd xi<3025613752@qq.com>", "为什么您不喜欢熊出没和阿布呢<https://weibo.com/u/7755040136>", "星空露光<https://gitee.com/Cynorkyle>", "actionchen<917981399@qq.com>", "柚子<https://gitee.com/Limexb>"]
lang = os.getenv('LANG')
# 获取用户桌面目录
def DesktopPath() -> "获取用户桌面目录":
for line in open(get_home() + "/.config/user-dirs.dirs"): # 以行来读取配置文件
desktop_index = line.find("XDG_DESKTOP_DIR=\"") # 寻找是否有对应项,有返回 0没有返回 -1
if desktop_index != -1: # 如果有对应项
break # 结束循环
if desktop_index == -1: # 如果是提前结束,值一定≠-1如果是没有提前结束值一定-1
return -1
else:
get = line[17:-2] # 截取桌面目录路径
get_index = get.find("$HOME") # 寻找是否有对应的项,需要替换内容
if get != -1: # 如果有
get = get.replace("$HOME", get_home()) # 则把其替换为用户目录(~)
return get # 返回目录
# 判断程序以正确方式运行
class Check:
def CheckDepend():
depend = ["/usr/bin/uengine", "UEngine", "/usr/bin/adb", "adb", "/usr/bin/uengine-session-launch-helper", "UEngine", "/usr/bin/aapt", "aapt"]
for i in range(0, len(depend), 2):
if not os.path.exists(depend[i]):
print("依赖{}不存在".format(depend[i + 1]))
class ROOT:
def GetRoot():
return os.geteuid() == 0
class APK:
def __init__(self, apkPath):
self.apkPath = apkPath
def install(self):
os.system("pkexec /usr/bin/uengine-session-launch-helper -- uengine install --apk='{}'".format(self.apkPath))
def uninstall(self):
os.system("pkexec /usr/bin/uengine-session-launch-helper -- uengine uninstall --pkg='{}'".format(self.packageName()))
def information(self):
return subprocess.getoutput("aapt dump badging '{}'".format(self.apkPath))
def activityName(self):
info = self.information()
for line in info.split('\n'):
if "launchable-activity" in line:
line = line[0: line.index("label='")]
line = line.replace("launchable-activity: ", "")
line = line.replace("'", "")
line = line.replace(" ", "")
line = line.replace("name=", "")
line = line.replace("label=", "")
line = line.replace("icon=", "")
return line
# 获取 apk 包名
def packageName(self):
info = self.information()
for line in info.split('\n'):
if "package:" in line:
line = line[0: line.index("versionCode='")]
line = line.replace("package:", "")
line = line.replace("name=", "")
line = line.replace("'", "")
line = line.replace(" ", "")
return line
# 获取软件的中文名称
def chineseLabel(self) -> "获取软件的中文名称":
info = self.information()
for line in info.split('\n'):
if "application-label:" in line:
line = line.replace("application-label:", "")
line = line.replace("'", "")
return line
# 保存apk图标
def saveApkIcon(self, iconSavePath) -> "保存 apk 文件的图标":
try:
if os.path.exists(iconSavePath):
os.remove(iconSavePath)
info = self.information()
for line in info.split('\n'):
if "application:" in line:
xmlpath = line.split(":")[-1].split()[-1].split("=")[-1].replace("'", "")
if xmlpath.endswith('.xml'):
xmlsave = getsavexml()
print(xmlpath)
xmlsave.savexml(self.apkPath, xmlpath, iconSavePath)
return
else:
zip = zipfile.ZipFile(self.apkPath)
iconData = zip.read(xmlpath)
with open(iconSavePath, 'w+b') as saveIconFile:
saveIconFile.write(iconData)
return
print("None Icon! Show defult icon")
shutil.copy(ProgramInformation.programPath + "/defult.png", iconSavePath)
except:
traceback.print_exc()
print("Error, show defult icon")
shutil.copy(ProgramInformation.programPath + "/defult.png", iconSavePath)
def version(self):
info = self.information()
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
def saveDesktopFile(self, desktopPath, iconPath):
showName = self.chineseLabel()
if showName == "" or showName == None:
showName = "未知应用"
self.saveApkIcon(iconPath)
things = '''[Desktop Entry]
Categories=app;
Encoding=UTF-8
Exec=uengine launch --action=android.intent.action.MAIN --package={} --component={}
GenericName={}
Icon={}
MimeType=
Name={}
StartupWMClass={}
Terminal=false
Type=Application
'''.format(self.packageName(), self.activityName(), showName, iconPath, showName, showName)
File(desktopPath).write(things)
def run(self):
UEngine.OpenApp(self.packageName(), self.activityName())
def buildDeb(self, savePath, qianZhui = True):
tempPath = "/tmp/uengine-apk-builder-{}".format(int(random.randint(0, 1024)))
#RunCommandShow("echo '======================================New===================================='")
#RunCommandShow("echo '创建目录'")
os.makedirs("{}/DEBIAN".format(tempPath))
os.makedirs("{}/usr/share/applications".format(tempPath))
os.makedirs("{}/usr/share/uengine/apk".format(tempPath))
os.makedirs("{}/usr/share/uengine/icons".format(tempPath))
apkPackageName = self.packageName()
if qianZhui:
apkPackageNameNew = "uengine-dc-" + self.packageName().lower()
else:
apkPackageNameNew = self.packageName().lower()
apkPackageVersion = self.version()
if apkPackageVersion[0].upper() == "V":
package = list(apkPackageVersion)
package.pop(0)
apkPackageVersion = "".join(package)
apkChineseLabel = self.chineseLabel()
apkActivityName = self.activityName()
iconSavePath = "{}/usr/share/uengine/icons/{}.png".format(tempPath, apkPackageNameNew)
debControl = '''Package: {}
Version: {}
Architecture: all
Maintainer: {}
Depends: deepin-elf-verify (>= 0.0.16.7-1), uengine (>= 1.0.1)
Section: utils
Priority: optional
Description: {}\n'''.format(apkPackageNameNew, apkPackageVersion, apkChineseLabel, apkChineseLabel)
debPostinst = '''#!/bin/sh
APK_DIR="/usr/share/uengine/apk"
APK_NAME="{}"
APK_PATH="$APK_DIR/$APK_NAME"
DESKTOP_FILE="{}"
if [ -f $APK_PATH ]; then
echo "Installing $APK_NAME"
else
echo "ERROR: $APK_NAME does not exist."
exit 0
fi
session_manager=`ps -ef | grep "uengine session-manager" | grep -v grep`
if test -z "$session_manager"; then
echo "ERROR: app install failed(session-manager is not running)."
sess_dir="/usr/share/uengine/session_install"
if [ ! -d $sess_dir ]; then
mkdir $sess_dir
chmod 777 $sess_dir
fi
apk_name=${{APK_PATH##*/}}
fileName="$sess_dir/$apk_name"
echo $DESKTOP_FILE > $fileName
abistr=""
if test -n "$abistr"; then
abi=`echo $abistr |awk -F \= '{{print $2}}'`
echo $abi >> $fileName
fi
chmod 766 $fileName
fi
/usr/bin/uengine-session-launch-helper -- uengine install --apk="$APK_PATH"
exit 0'''.format(apkPackageNameNew + ".apk", "/usr/share/applications/{}.desktop".format(apkPackageNameNew))
debPrerm = '''#!/bin/sh
APP_NAME="{}"
DESKTOP_FILE="{}"
session_manager=`ps -ef | grep "uengine session-manager" | grep -v grep`
if test -z "$session_manager"; then
echo "ERROR: app uninstall failed(session-manager is not running)."
sess_dir="/usr/share/uengine/session_uninstall"
if [ ! -d $sess_dir ]; then
mkdir $sess_dir
chmod 777 $sess_dir
fi
fileName="$sess_dir/$APP_NAME"
echo $DESKTOP_FILE > $fileName
chmod 766 $fileName
fi
echo "Uninstalling $APP_NAME"
/usr/bin/uengine-session-launch-helper -- uengine uninstall --pkg="$APP_NAME"
exit 0'''.format(apkPackageName, "/usr/share/applications/{}.desktop".format(apkPackageNameNew))
desktopFile = '''[Desktop Entry]
Categories=Other;
Exec=uengine launch --action=android.intent.action.MAIN --package={} --component={}
Icon=/usr/share/uengine/icons/{}.png
Terminal=false
Type=Application
GenericName={}
Name={}
'''
# RunCommandShow("echo '{}' > '{}/DEBIAN/control'".format(debControl, tempPath))
#RunCommandShow("echo 正在写入文件:'{}/DEBIAN/control'".format(tempPath))
File("{}/DEBIAN/control".format(tempPath)).write(debControl)
#RunCommandShow("echo 正在写入文件:'{}/DEBIAN/postinst'".format(tempPath))
File("{}/DEBIAN/postinst".format(tempPath)).write(debPostinst)
#RunCommandShow("echo 正在写入文件:'{}/DEBIAN/prerm'".format(tempPath))
File("{}/DEBIAN/prerm".format(tempPath)).write(debPrerm)
#RunCommandShow("echo 正在写入文件:'/usr/share/applications/{}.desktop'".format(apkPackageNameNew))
# write_txt("{}/usr/share/applications/{}.desktop".format(tempPath, apkPackageNameNew), desktopFile)
self.saveDesktopFile("{}/usr/share/applications/{}.desktop".format(tempPath, apkPackageNameNew),
"{}/usr/share/uengine/icons/{}.png".format(tempPath, apkPackageNameNew))
#BuildUengineDesktop(apkPackageName, apkActivityName, apkChineseLabel,
# "/usr/share/uengine/icons/{}.png".format(apkPackageNameNew),
# "{}/usr/share/applications/{}.desktop".format(tempPath, apkPackageNameNew))
#RunCommandShow("echo '复制文件'")
#RunCommandShow("echo '写入 APK 软件图标'")
#SaveApkIcon(apkPath, iconSavePath)
self.saveApkIcon(iconSavePath)
#RunCommandShow("echo '复制 APK 文件'")
shutil.copy(self.apkPath, "{}/usr/share/uengine/apk/{}.apk".format(tempPath, apkPackageNameNew))
#RunCommandShow("cp -rv '{}' '{}/usr/share/uengine/apk/{}.apk'".format(apkPath, tempPath, apkPackageNameNew))
#RunCommandShow("echo '正在设置文件权限……'")
os.system("chmod 0775 -vR '{}/DEBIAN/postinst'".format(tempPath))
os.system("chmod 0775 -vR '{}/DEBIAN/prerm'".format(tempPath))
#RunCommandShow("echo '打包 deb 到桌面……'")
os.system(
"dpkg -b '{}' '{}'".format(tempPath, savePath))
#RunCommandShow("echo '正在删除临时目录……'")
#shutil.rmtree(tempPath)
#RunCommandShow("rm -rfv '{}'".format(tempPath))
#RunCommandShow("echo '完成!'")
#findApkHistory.append(apkPath)
#combobox1['value'] = findApkHistory
#write_txt(get_home() + "/.config/uengine-runner/FindApkBuildHistory.json",
# str(json.dumps(ListToDictionary(findApkHistory)))) # 将历史记录的数组转换为字典并写入
#messagebox.showinfo(title="提示", message="打包完成")
#DisabledAndEnbled(False)
class UEngine:
def UengineAppManager():
os.system("uengine launch --package=org.anbox.appmgr --component=org.anbox.appmgr.AppViewActivity")
def OpenApp(appPackage, appActivity):
os.system("uengine launch --package={} --component={}".format(appPackage, appActivity))
# 清空 uengine 数据
def UengineDataClean() -> "清空 uengine 数据":
shutil.rmtree("{}/.local/share/applications/uengine/".format(ProgramInformation.home))
shutil.rmtree("/data/uengine")
def RemoveUengineCheck():
os.remove("/usr/share/uengine/uengine-check-runnable.sh")
def CPUCheck():
return subprocess.getoutput("uengine check-features")
def BuildUengineRootImage():
os.system(ProgramInformation.programPath + "/root-uengine.sh")
def OpenUengineRootData():
os.system("xdg-open /data/uengine/data/data")
def InstallRootUengineImage():
if not os.path.exists:
os.mkdir("/tmp/uengine-runner")
File("/tmp/uengine-runner/install.sh").write("sudo dpkg -i /tmp/uengine-runner/u*.deb\nsudo apt install -f")
os.system("wget -P '/tmp/uengine-runner' 'https://hub.fastgit.xyz/gfdgd-xi/uengine-runner/releases/download/U1.2.15/uengine-android-image_1.2.15_amd64.deb' && pkexec bash '/tmp/uengine-runner/install.sh'")
class Services:
def Open():
os.system("pkexec systemctl enable uengine-container uengine-session && systemctl start uengine-container uengine-session")
def Close():
os.system("pkexec systemctl disable uengine-container uengine-session")
def Restart():
os.system("pkexec systemctl restart uengine*")
class InternetBridge:
def Open():
os.system("pkexec uengine-bridge.sh start")
def Close():
os.system("pkexec uengine-bridge.sh stop")
def Restart():
os.system("pkexec uengine-bridge.sh restart")
def Reload():
os.system("pkexec uengine-bridge.sh reload")
def ForceReload():
os.system("pkexec uengine-bridge.sh force-reload")
class Adb:
def __init__(self, ip=""):
self.ip = ip
def connect(self):
os.system(f"adb connect {self.ip}")
class Service:
def Open():
os.system("adb start-server")
def Close():
os.system("adb kill-server")
def Kill():
os.system("killall adb")
def boolAndroidInstallOtherAppSetting(self):
return subprocess.getoutput(f"adb -s {self.ip} shell settings get secure install_non_market_apps").replace(" ", "") == "1"
def setAndroidInstallOtherAppSetting(self, op: bool):
os.system(f"adb -s {self.ip} shell settings put secure install_non_market_apps {int(op)}")
class File:
def __init__(self, filePath):
self.filePath = filePath
def read(self):
f = open(self.filePath, "r") # 设置文件对象
str = f.read() # 获取内容
f.close() # 关闭文本对象
return str # 返回结果
def write(self, things) -> "写入文本文档":
TxtDir = os.path.dirname(self.filePath)
print(TxtDir)
if not os.path.exists(TxtDir):
os.makedirs(TxtDir, exist_ok=True)
file = open(self.filePath, 'w', encoding='UTF-8') # 设置文件对象
file.write(things) # 写入文本
file.close() # 关闭文本对象
class UengineRunner:
def CleanHistory():
shutil.rmtree(ProgramInformation.home + "/.config/uengine-runner")
if __name__ == "__main__":
print("本 API 不支持直接运行,请通过引入的方式使用此 API")
adb = Adb("192.168.250.2:5555")
print(adb.boolAndroidInstallOtherAppSetting())
quit()
if not ROOT.GetRoot():
print("请获取 ROOT 权限以便更好的使用该 API")

Binary file not shown.

Binary file not shown.

BIN
api/defult.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

View File

@@ -5,7 +5,7 @@
mkdir -p ~/temp
cd ~/temp
echo "正在下载supersu"
wget -P ~/temp http://supersuroot.org/downloads/SuperSU-v2.82-201705271822.zip
aria2c -x 16 -s 16 -d ~/temp http://supersuroot.org/downloads/SuperSU-v2.82-201705271822.zip
cd ..
mkdir -p ~/temp/work/dabao/extract/DEBIAN
echo "正在解压supersu"

View File

@@ -1,10 +0,0 @@
Package: spark-uengine-runner
Version: 1.5.2
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-setuptools, deepin-terminal, curl, python3-pil, python3-pil.imagetk, python3-requests, adb, translate-shell, python3-xlib
Description: UEngine Runner for deepin and UOS

View File

@@ -1,10 +0,0 @@
#!/bin/sh
# 安装所需库
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://120.25.153.144/uengine-runner/Install.php?Version=1.5.2 -s > /dev/null | true

View File

@@ -1,3 +0,0 @@
#!/bin/sh
# 刷新图标缓存
gtk-update-icon-cache /usr/share/icons/bloom

View File

@@ -1,373 +0,0 @@
Mozilla Public License Version 2.0
==================================
1. Definitions
--------------
1.1. "Contributor"
means each individual or legal entity that creates, contributes to
the creation of, or owns Covered Software.
1.2. "Contributor Version"
means the combination of the Contributions of others (if any) used
by a Contributor and that particular Contributor's Contribution.
1.3. "Contribution"
means Covered Software of a particular Contributor.
1.4. "Covered Software"
means Source Code Form to which the initial Contributor has attached
the notice in Exhibit A, the Executable Form of such Source Code
Form, and Modifications of such Source Code Form, in each case
including portions thereof.
1.5. "Incompatible With Secondary Licenses"
means
(a) that the initial Contributor has attached the notice described
in Exhibit B to the Covered Software; or
(b) that the Covered Software was made available under the terms of
version 1.1 or earlier of the License, but not also under the
terms of a Secondary License.
1.6. "Executable Form"
means any form of the work other than Source Code Form.
1.7. "Larger Work"
means a work that combines Covered Software with other material, in
a separate file or files, that is not Covered Software.
1.8. "License"
means this document.
1.9. "Licensable"
means having the right to grant, to the maximum extent possible,
whether at the time of the initial grant or subsequently, any and
all of the rights conveyed by this License.
1.10. "Modifications"
means any of the following:
(a) any file in Source Code Form that results from an addition to,
deletion from, or modification of the contents of Covered
Software; or
(b) any new file in Source Code Form that contains any Covered
Software.
1.11. "Patent Claims" of a Contributor
means any patent claim(s), including without limitation, method,
process, and apparatus claims, in any patent Licensable by such
Contributor that would be infringed, but for the grant of the
License, by the making, using, selling, offering for sale, having
made, import, or transfer of either its Contributions or its
Contributor Version.
1.12. "Secondary License"
means either the GNU General Public License, Version 2.0, the GNU
Lesser General Public License, Version 2.1, the GNU Affero General
Public License, Version 3.0, or any later versions of those
licenses.
1.13. "Source Code Form"
means the form of the work preferred for making modifications.
1.14. "You" (or "Your")
means an individual or a legal entity exercising rights under this
License. For legal entities, "You" includes any entity that
controls, is controlled by, or is under common control with You. For
purposes of this definition, "control" means (a) the power, direct
or indirect, to cause the direction or management of such entity,
whether by contract or otherwise, or (b) ownership of more than
fifty percent (50%) of the outstanding shares or beneficial
ownership of such entity.
2. License Grants and Conditions
--------------------------------
2.1. Grants
Each Contributor hereby grants You a world-wide, royalty-free,
non-exclusive license:
(a) under intellectual property rights (other than patent or trademark)
Licensable by such Contributor to use, reproduce, make available,
modify, display, perform, distribute, and otherwise exploit its
Contributions, either on an unmodified basis, with Modifications, or
as part of a Larger Work; and
(b) under Patent Claims of such Contributor to make, use, sell, offer
for sale, have made, import, and otherwise transfer either its
Contributions or its Contributor Version.
2.2. Effective Date
The licenses granted in Section 2.1 with respect to any Contribution
become effective for each Contribution on the date the Contributor first
distributes such Contribution.
2.3. Limitations on Grant Scope
The licenses granted in this Section 2 are the only rights granted under
this License. No additional rights or licenses will be implied from the
distribution or licensing of Covered Software under this License.
Notwithstanding Section 2.1(b) above, no patent license is granted by a
Contributor:
(a) for any code that a Contributor has removed from Covered Software;
or
(b) for infringements caused by: (i) Your and any other third party's
modifications of Covered Software, or (ii) the combination of its
Contributions with other software (except as part of its Contributor
Version); or
(c) under Patent Claims infringed by Covered Software in the absence of
its Contributions.
This License does not grant any rights in the trademarks, service marks,
or logos of any Contributor (except as may be necessary to comply with
the notice requirements in Section 3.4).
2.4. Subsequent Licenses
No Contributor makes additional grants as a result of Your choice to
distribute the Covered Software under a subsequent version of this
License (see Section 10.2) or under the terms of a Secondary License (if
permitted under the terms of Section 3.3).
2.5. Representation
Each Contributor represents that the Contributor believes its
Contributions are its original creation(s) or it has sufficient rights
to grant the rights to its Contributions conveyed by this License.
2.6. Fair Use
This License is not intended to limit any rights You have under
applicable copyright doctrines of fair use, fair dealing, or other
equivalents.
2.7. Conditions
Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted
in Section 2.1.
3. Responsibilities
-------------------
3.1. Distribution of Source Form
All distribution of Covered Software in Source Code Form, including any
Modifications that You create or to which You contribute, must be under
the terms of this License. You must inform recipients that the Source
Code Form of the Covered Software is governed by the terms of this
License, and how they can obtain a copy of this License. You may not
attempt to alter or restrict the recipients' rights in the Source Code
Form.
3.2. Distribution of Executable Form
If You distribute Covered Software in Executable Form then:
(a) such Covered Software must also be made available in Source Code
Form, as described in Section 3.1, and You must inform recipients of
the Executable Form how they can obtain a copy of such Source Code
Form by reasonable means in a timely manner, at a charge no more
than the cost of distribution to the recipient; and
(b) You may distribute such Executable Form under the terms of this
License, or sublicense it under different terms, provided that the
license for the Executable Form does not attempt to limit or alter
the recipients' rights in the Source Code Form under this License.
3.3. Distribution of a Larger Work
You may create and distribute a Larger Work under terms of Your choice,
provided that You also comply with the requirements of this License for
the Covered Software. If the Larger Work is a combination of Covered
Software with a work governed by one or more Secondary Licenses, and the
Covered Software is not Incompatible With Secondary Licenses, this
License permits You to additionally distribute such Covered Software
under the terms of such Secondary License(s), so that the recipient of
the Larger Work may, at their option, further distribute the Covered
Software under the terms of either this License or such Secondary
License(s).
3.4. Notices
You may not remove or alter the substance of any license notices
(including copyright notices, patent notices, disclaimers of warranty,
or limitations of liability) contained within the Source Code Form of
the Covered Software, except that You may alter any license notices to
the extent required to remedy known factual inaccuracies.
3.5. Application of Additional Terms
You may choose to offer, and to charge a fee for, warranty, support,
indemnity or liability obligations to one or more recipients of Covered
Software. However, You may do so only on Your own behalf, and not on
behalf of any Contributor. You must make it absolutely clear that any
such warranty, support, indemnity, or liability obligation is offered by
You alone, and You hereby agree to indemnify every Contributor for any
liability incurred by such Contributor as a result of warranty, support,
indemnity or liability terms You offer. You may include additional
disclaimers of warranty and limitations of liability specific to any
jurisdiction.
4. Inability to Comply Due to Statute or Regulation
---------------------------------------------------
If it is impossible for You to comply with any of the terms of this
License with respect to some or all of the Covered Software due to
statute, judicial order, or regulation then You must: (a) comply with
the terms of this License to the maximum extent possible; and (b)
describe the limitations and the code they affect. Such description must
be placed in a text file included with all distributions of the Covered
Software under this License. Except to the extent prohibited by statute
or regulation, such description must be sufficiently detailed for a
recipient of ordinary skill to be able to understand it.
5. Termination
--------------
5.1. The rights granted under this License will terminate automatically
if You fail to comply with any of its terms. However, if You become
compliant, then the rights granted under this License from a particular
Contributor are reinstated (a) provisionally, unless and until such
Contributor explicitly and finally terminates Your grants, and (b) on an
ongoing basis, if such Contributor fails to notify You of the
non-compliance by some reasonable means prior to 60 days after You have
come back into compliance. Moreover, Your grants from a particular
Contributor are reinstated on an ongoing basis if such Contributor
notifies You of the non-compliance by some reasonable means, this is the
first time You have received notice of non-compliance with this License
from such Contributor, and You become compliant prior to 30 days after
Your receipt of the notice.
5.2. If You initiate litigation against any entity by asserting a patent
infringement claim (excluding declaratory judgment actions,
counter-claims, and cross-claims) alleging that a Contributor Version
directly or indirectly infringes any patent, then the rights granted to
You by any and all Contributors for the Covered Software under Section
2.1 of this License shall terminate.
5.3. In the event of termination under Sections 5.1 or 5.2 above, all
end user license agreements (excluding distributors and resellers) which
have been validly granted by You or Your distributors under this License
prior to termination shall survive termination.
************************************************************************
* *
* 6. Disclaimer of Warranty *
* ------------------------- *
* *
* Covered Software is provided under this License on an "as is" *
* basis, without warranty of any kind, either expressed, implied, or *
* statutory, including, without limitation, warranties that the *
* Covered Software is free of defects, merchantable, fit for a *
* particular purpose or non-infringing. The entire risk as to the *
* quality and performance of the Covered Software is with You. *
* Should any Covered Software prove defective in any respect, You *
* (not any Contributor) assume the cost of any necessary servicing, *
* repair, or correction. This disclaimer of warranty constitutes an *
* essential part of this License. No use of any Covered Software is *
* authorized under this License except under this disclaimer. *
* *
************************************************************************
************************************************************************
* *
* 7. Limitation of Liability *
* -------------------------- *
* *
* Under no circumstances and under no legal theory, whether tort *
* (including negligence), contract, or otherwise, shall any *
* Contributor, or anyone who distributes Covered Software as *
* permitted above, be liable to You for any direct, indirect, *
* special, incidental, or consequential damages of any character *
* including, without limitation, damages for lost profits, loss of *
* goodwill, work stoppage, computer failure or malfunction, or any *
* and all other commercial damages or losses, even if such party *
* shall have been informed of the possibility of such damages. This *
* limitation of liability shall not apply to liability for death or *
* personal injury resulting from such party's negligence to the *
* extent applicable law prohibits such limitation. Some *
* jurisdictions do not allow the exclusion or limitation of *
* incidental or consequential damages, so this exclusion and *
* limitation may not apply to You. *
* *
************************************************************************
8. Litigation
-------------
Any litigation relating to this License may be brought only in the
courts of a jurisdiction where the defendant maintains its principal
place of business and such litigation shall be governed by laws of that
jurisdiction, without reference to its conflict-of-law provisions.
Nothing in this Section shall prevent a party's ability to bring
cross-claims or counter-claims.
9. Miscellaneous
----------------
This License represents the complete agreement concerning the subject
matter hereof. If any provision of this License is held to be
unenforceable, such provision shall be reformed only to the extent
necessary to make it enforceable. Any law or regulation which provides
that the language of a contract shall be construed against the drafter
shall not be used to construe this License against a Contributor.
10. Versions of the License
---------------------------
10.1. New Versions
Mozilla Foundation is the license steward. Except as provided in Section
10.3, no one other than the license steward has the right to modify or
publish new versions of this License. Each version will be given a
distinguishing version number.
10.2. Effect of New Versions
You may distribute the Covered Software under the terms of the version
of the License under which You originally received the Covered Software,
or under the terms of any subsequent version published by the license
steward.
10.3. Modified Versions
If you create software not governed by this License, and you want to
create a new license for such software, you may create and use a
modified version of this License if you rename the license and remove
any references to the name of the license steward (except to note that
such modified license differs from this License).
10.4. Distributing Source Code Form that is Incompatible With Secondary
Licenses
If You choose to distribute Source Code Form that is Incompatible With
Secondary Licenses under the terms of this version of the License, the
notice described in Exhibit B of this License must be attached.
Exhibit A - Source Code Form License Notice
-------------------------------------------
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at http://mozilla.org/MPL/2.0/.
If it is not possible or desirable to put the notice in a particular
file, then You may include the notice in a location (such as a LICENSE
file in a relevant directory) where a recipient would be likely to look
for such a notice.
You may add additional accurate notices of copyright ownership.
Exhibit B - "Incompatible With Secondary Licenses" Notice
---------------------------------------------------------
This Source Code Form is "Incompatible With Secondary Licenses", as
defined by the Mozilla Public License, v. 2.0.

View File

@@ -1,11 +0,0 @@
[Desktop Entry]
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/uengine-runner/icon.png
MimeType=
Name=UEngine 程序菜单
StartupWMClass=UEngine 程序菜单
Terminal=false
Type=Application

View File

@@ -1,6 +0,0 @@
{
"Package": "com.gitee.uengine.runner.spark",
"Update": true,
"Version": "1.5.1",
"Url": "https://gfdgd-xi.github.io/update-program/data/UpdateInformation.json"
}

View File

@@ -1,7 +0,0 @@
{
"Package": "spark-uengine-runner",
"Update": true,
"Version": "1.5.1",
"Url": "https://gfdgd-xi.github.io/update-program/data/UpdateInformation.json"
}

View File

@@ -1,16 +0,0 @@
[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

View File

@@ -1 +0,0 @@
/opt/apps/uengine-runner/uengine-apk-builder

View File

@@ -1 +0,0 @@
/opt/apps/uengine-runner/uengine-app-install

View File

@@ -1 +0,0 @@
/opt/apps/uengine-runner/uengine-app-uninstall

View File

@@ -1 +0,0 @@
/opt/apps/uengine-runner/uengine-clean

View File

@@ -1 +0,0 @@
/opt/apps/uengine-runner/uengine-keyboard

View File

@@ -1 +0,0 @@
/opt/apps/uengine-runner/root-uengine.sh

View File

@@ -1 +0,0 @@
/opt/apps/uengine-runner/uengine-runner

View File

@@ -1 +0,0 @@
/opt/apps/uengine-runner/uengine-runner-about

View File

@@ -1 +0,0 @@
/opt/apps/uengine-runner/uengine-runner-launch.sh

View File

@@ -1 +0,0 @@
/opt/apps/uengine-runner/uengine-runner-update-bug

View File

@@ -1 +0,0 @@
/opt/apps/uengine-runner/uengine-useadb

View File

@@ -1,13 +0,0 @@
[Desktop Entry]
Categories=System;
Comment=UEngine App List
Comment[zh]=UEngine 程序菜单
Encoding=UTF-8
Exec=/usr/bin/uengine launch --package=org.anbox.appmgr --component=org.anbox.appmgr.AppViewActivity
Icon=/opt/apps/uengine-runner/icon.png
MimeType=
Name=UEngine App List
Name[zh]=UEngine 程序菜单
StartupWMClass=UEngine 程序菜单
Terminal=false
Type=Application

View File

@@ -1,153 +0,0 @@
<?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>

Before

Width:  |  Height:  |  Size: 15 KiB

BIN
builer.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

25
builer.svg Executable file

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

Binary file not shown.

View File

Before

Width:  |  Height:  |  Size: 312 KiB

After

Width:  |  Height:  |  Size: 312 KiB

BIN
defult.png Executable file → Normal file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 312 KiB

After

Width:  |  Height:  |  Size: 35 KiB

25
defult.svg Executable file

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 15 KiB

View File

@@ -0,0 +1,10 @@
#!/bin/bash
file="/data/uengine/data/data/data/com.tencent.mm/shared_prefs/"
inotifywait -mq -e modify $file | while read event
do
if [[ "$event" == *notify_sync_pref.xml ]];then
notify-send -i '/home/tensor/Documents/notify/mm.jpg' ‘主银’ ‘你有微信消息哦~~’
fi
done

BIN
icon.png Executable file → Normal file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 36 KiB

View File

@@ -1,33 +1,60 @@
{
"Package": "com.gitee.uengine.runner.spark",
"Url": [
"https://gitee.com/gfdgd-xi/uengine-runner",
"https://github.com/gfdgd-xi/uengine-runner"
],
"Version": "1.5.2",
"Version": "1.6.2",
"System": "Linuxdeepin/UOS",
"Tips": [
"更多可见https://gitee.com/gfdgd-xi/uengine-runner/wikis",
"",
"安装APK点浏览按钮选中需要安装的APK然后点安装按钮",
"",
"卸载APK在卸载APK下面的输入框内输入需要卸载的APK包名点卸载按钮如果无法获取包名可以通过浏览APK文件程序自动获取包名进行卸载。",
"",
"保存APK图标在安装APK下面的输入框浏览或输入APK的路径然后点击“保存图标”按钮选择保存位置即可",
"",
"重置删除UEngine数据点击菜单栏的“UEngine”的“清空UEngine数据”输入密码重启即可",
" 注意如果任何安卓一遍打不开多打开几遍应该就可以重新加载UEngine配置了",
"",
"打开UEngine应用列表打开系统已安装的应用列表安卓界面",
"",
"提示:",
"1、需要你有使用 root 权限的能力;",
"2、需要安装 UEngine 才能使用",
"3、提取 apk 图标的 apk 路径以“安装 apk”那栏为准;",
"4、如果想要使用adb连接UEngine或其他手机请使用 1.2.0 以前的版本。如需连接UEngine请安装adb补丁"
"1、近期升级的 UEngine 安装时会自动把要安装的 apk 删除,如果这个 apk 文件非常重要请拷贝一个备份版并安装这个备份版",
"2、需要你有使用 root 权限的能力",
"3、需要安装 UEngine 才能使用;",
"4、提取 apk 图标的 apk 路径以“安装 apk”那栏为准;",
"5、如果想要使用adb连接UEngine或其他手机请使用 1.2.0 以前的版本。如需连接UEngine请安装adb补丁"
],
"Update": [
"V1.6.2",
"※1、优化了 UEngine 运行器的英语翻译",
"※2、新增加了可以打开或关闭第三方应用安装的功能使用此功能后在UEngine里可以使用默认的APK安装程序安装应用此操作需要使用程序的Adb补丁",
"※3、新增加了 UEngine 的 Ubuntu 安装程序",
"※4、双包合一只保留了UOS打包标准可以从旧标准无缝升级推荐使用本程序的升级程序进行升级",
"5、修复了本程序在 Ubuntu 上安装和卸载报错而无法继续的问题",
"6、优化帮助/关于窗口在高分辨率电脑上显示不全的问题",
"V1.6.1",
"※1、修复了打包 deb 包在 APK 的包名有大写时无法启动的问题",
"※2、提供新版本的 UEngine Root 镜像",
"※3、更新了 UEngine Root 的下载地址",
"※4、修复了本程序的“UEngine 键盘映射”无法启动的问题",
"5、把构建 UEngine Root 镜像修改为多线程下载wget=>aria2",
"6、提供了 UEngine 运行器的 API可以从项目地址中获取",
"7、补上遗漏的项目参与者“星空露光”新加项目参与者“为什么您不喜欢熊出没和阿布呢”",
"V1.6.0",
"※1、更换了新的图标",
"※2、支持程序的评分和查看分数详情的功能如果炸了我的服务器这个就作废了",
"※3、修复了在安装奇奇怪怪的安装包如格式、标识不正确的时的快捷方式图标为空以及快捷方式文本的变化",
"※4、添加更新功能可以自行升级到最新版本如果炸了我的服务器这个就作废了",
"※5、新增程序帮助",
"6、新填彩蛋在“关于”=>“关于”显示的窗口双击“关于”开启)(如果炸了我的服务器,这个就作废了)",
"7、修复了“UEngine 打包器”前缀选项勾选设置不生效的问题",
"",
"V1.5.3",
"※1、修复了在 UOS 家庭版安装 apk 文件安装包信息为 None 的问题",
"※2、“添加/删除 UEngine 图标”窗口的写入按钮在目录~/.local/share/icons/hicolor/256x256/apps不存在时点击无反应参考报错",
"※3、修复了“UEngine APK应用打包器”打包的deb包的.desktop文件的Icon和Exec字段有误的问题以及使用“使用前缀uengine-dc”前缀的问题",
"4、“UEngine APK应用打包器”支持打包完后自动删除临时目录",
"5、“UEngine APK应用打包器”以及“添加/删除UEngine图标”支持在运行出现错误时显示报错",
"",
"V1.5.2",
"※1、支持安装和构建带 RootUEngine 的镜像",
"※1、支持安装和构建带RootUEngine的镜像",
"2、更新了反馈链接",
"",
"V1.5.1",
@@ -132,6 +159,12 @@
"……"
],
"Time": "2021年08月30日",
"Contribute": ["gfdgd xi<3025613752@qq.com>",
"actionchen<917981399@qq.com>"]
"Contribute": [
"gfdgd xi<3025613752@qq.com>",
"actionchen<917981399@qq.com>",
"柚子<https://gitee.com/Limexb>",
"为什么您不喜欢熊出没和阿布呢<https://weibo.com/u/7755040136>",
"星空露光<https://gitee.com/Cynorkyle>",
"shenmo<jifengshenmo@outlook.com>"
]
}

388
main.py
View File

@@ -2,16 +2,17 @@
# 使用系统默认的 python3 运行
###########################################################################################
# 作者gfdgd xi<3025613752@qq.com>
# 版本1.5.1
# 更新时间2021年10月05日国庆了)
# 版本1.6.2
# 更新时间2022年6月20日要期末考试了)
# 感谢anbox、deepin 和 UOS
# 基于 Python3 的 tkinter 构建
# 更新gfdgd xi<3025613752@qq.com>、actionchen<917981399@qq.com>
# 更新gfdgd xi<3025613752@qq.com>、actionchen<917981399@qq.com>、为什么您不喜欢熊出没和阿布呢
###########################################################################################
#################
# 引入所需的库
#################
import os
import api
import sys
import time
import json
@@ -19,9 +20,16 @@ import shutil
import zipfile
import traceback
import threading
import easygui
import ttkthemes
import webbrowser
import subprocess
import matplotlib
import requests
import numpy
import matplotlib.figure
import matplotlib.pylab
import matplotlib.font_manager
import PIL.Image as Image
import PIL.ImageTk as ImageTk
import tkinter as tk
@@ -31,14 +39,16 @@ import tkinter.filedialog as filedialog
import tkinter.simpledialog as simpledialog
from getxmlimg import getsavexml
win = tk.Tk() # 创建窗口
# 卸载程序
def UninstallProgram(package: "apk 包名")->"卸载程序":
try:
global fineUninstallApkHistory
global fineUninstallApkHistory
Return = GetCommandReturn("pkexec /usr/bin/uengine-session-launch-helper -- uengine uninstall --pkg='{}'".format(package))
if os.path.exists("{}/.local/share/applications/{}.desktop".format(get_home(), package)):
os.remove("{}/.local/share/applications/{}.desktop".format(get_home(), package))
print(Return)
if os.path.exists("{}/.local/share/applications/uengine/{}.desktop".format(get_home(), package)):
os.remove("{}/.local/share/applications/uengine/{}.desktop".format(get_home(), package))
if os.path.exists("{}/{}.desktop".format(get_desktop_path(), package)):
os.remove("{}/{}.desktop".format(get_desktop_path(), package))
findApkHistory.append(ComboInstallPath.get())
@@ -52,26 +62,18 @@ def UninstallProgram(package: "apk 包名")->"卸载程序":
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 ButtonClick8():
if ComboInstallPath.get() is "":
messagebox.showerror(title="提示", message="信息没有填写完整,无法继续卸载 APK")
messagebox.showerror(title="提示", message=langFile[lang]["Main"]["MainWindow"]["Error"]["UninstallError"])
return
DisabledAndEnbled(True)
if os.path.exists(ComboInstallPath.get()):
path = GetApkPackageName(ComboInstallPath.get())
else:
path = ComboInstallPath.get()
print(path)
threading.Thread(target=UninstallProgram, args=[path]).start()
# 浏览窗口
@@ -91,7 +93,7 @@ def FindApk()->"浏览窗口":
# 安装按钮事件
def Button3Install():
if ComboInstallPath.get() is "" or not os.path.exists(ComboInstallPath.get()):
messagebox.showerror(title="提示", message="信息没有填写完整或错误,无法继续安装 APK")
messagebox.showerror(title="提示", message=langFile[lang]["Main"]["MainWindow"]["Error"]["InstallError"])
return
DisabledAndEnbled(True)
threading.Thread(target=InstallApk, args=(ComboInstallPath.get(),)).start()
@@ -99,27 +101,45 @@ def Button3Install():
# 安装应用
def InstallApk(path: "apk 路径", quit: "是否静默安装" = False):
try:
if not os.path.exists("/tmp/uengine-runner"):
os.makedirs("/tmp/uengine-runner")
if not os.path.exists("{}/.local/share/applications/uengine/".format(get_home())):
print("Mkdir")
os.makedirs("{}/.local/share/applications/uengine/".format(get_home()))
# 读取设置
setting = json.loads(readtxt(get_home() + "/.config/uengine-runner/setting.json"))
# 安装应用
print("start install apk")
global findApkHistory
commandReturn = GetCommandReturn("pkexec /usr/bin/uengine-session-launch-helper -- uengine install --apk='{}'".format(path))
print(commandReturn)
print("start install apk12")
iconSavePath = "{}/.local/share/icons/hicolor/256x256/apps/{}.png".format(get_home(), GetApkPackageName(path))
tempstr1 = iconSavePath
print("start install apk1")
iconSaveDir = os.path.dirname(iconSavePath)
if not os.path.exists(iconSaveDir):
os.makedirs(iconSaveDir,exist_ok=True)
os.makedirs(iconSaveDir,exist_ok=True)
SaveApkIcon(path, iconSavePath)
try:
if setting["SaveApk"]:
shutil.copy(path, "/tmp/uengine-runner/bak.apk")
except:
if not messagebox.askyesno(title="错误", message="无法备份安装包,是否不备份安装包继续安装?\n提示新版UEngine安装后会自动删除安装包"):
DisabledAndEnbled(False)
return
setting["SaveApk"] = False
print("start install apk2")
BuildUengineDesktop(GetApkPackageName(path), GetApkActivityName(path), GetApkChineseLabel(path), iconSavePath,
"{}/{}.desktop".format(get_desktop_path(), GetApkPackageName(path)))
print("start install apk3")
BuildUengineDesktop(GetApkPackageName(path), GetApkActivityName(path), GetApkChineseLabel(path), iconSavePath,
"{}/.local/share/applications/uengine/{}.desktop".format(get_home(), GetApkPackageName(path)))
commandReturn = GetCommandReturn("pkexec /usr/bin/uengine-session-launch-helper -- uengine install --apk='{}'".format(path))
print(commandReturn)
try:
if setting["SaveApk"]:
shutil.copy("/tmp/uengine-runner/bak.apk", path)
except:
messagebox.showerror(title="错误", message=langFile[lang]["Main"]["MainWindow"]["Error"]["BackApkError"])
print("\nprint install complete")
if quit:
print(commandReturn)
@@ -313,7 +333,13 @@ def InstallRootUengineImage():
if not os.path.exists:
os.mkdir("/tmp/uengine-runner")
write_txt("/tmp/uengine-runner/install.sh", "sudo dpkg -i /tmp/uengine-runner/u*.deb\nsudo apt install -f")
threading.Thread(target=os.system, args=["deepin-terminal -C \"wget -P '/tmp/uengine-runner' 'https://hub.fastgit.org/gfdgd-xi/uengine-runner/releases/download/U1.1.14/uengine-android-image_1.1.14_amd64.deb' && pkexec bash '/tmp/uengine-runner/install.sh'\""]).start()
threading.Thread(target=os.system, args=["deepin-terminal -C \"wget -P '/tmp/uengine-runner' 'https://hub.fastgit.xyz/gfdgd-xi/uengine-runner/releases/download/U1.2.15/uengine-android-image_1.2.15_amd64.deb' && pkexec bash '/tmp/uengine-runner/install.sh'\""]).start()
def UengineUbuntuInstall():
threading.Thread(target=os.system, args=["deepin-terminal -C \"bash '{}'\"".format(programPath + "/uengine-installer")]).start()
def UbuntuInstallUengine():
threading.Thread(target=os.system, args=["deepin-terminal -C \"bash '{}'\"".format(programPath + "/uengine-installer")]).start()
def BuildRootUengineImage():
threading.Thread(target=os.system, args=["deepin-terminal -C \"bash '{}'\"".format(programPath + "/root-uengine.sh")]).start()
@@ -323,6 +349,8 @@ def ReinstallUengineImage():
# 生成 uengine 启动文件到桌面
def BuildUengineDesktop(packageName: "软件包名", activityName: "activity", showName: "显示名称", iconPath: "程序图标所在目录", savePath:".desktop 文件保存路径")->"生成 uengine 启动文件到桌面":
if showName == "" or showName == None:
showName = "未知应用"
things = '''[Desktop Entry]
Categories=app;
Encoding=UTF-8
@@ -349,6 +377,8 @@ def GetApkChineseLabel(apkFilePath)->"获取软件的中文名称":
# 保存apk图标
def SaveApkIcon(apkFilePath, iconSavePath)->"保存 apk 文件的图标":
try:
if os.path.exists(iconSavePath):
os.remove(iconSavePath)
info = GetApkInformation(apkFilePath)
for line in info.split('\n'):
if "application:" in line:
@@ -357,11 +387,15 @@ def SaveApkIcon(apkFilePath, iconSavePath)->"保存 apk 文件的图标":
xmlsave = getsavexml()
print(xmlpath)
xmlsave.savexml(apkFilePath,xmlpath,iconSavePath)
return
else:
zip = zipfile.ZipFile(apkFilePath)
iconData = zip.read(xmlpath)
with open(iconSavePath, 'w+b') as saveIconFile:
saveIconFile.write(iconData)
return
print("None Icon! Show defult icon")
shutil.copy(programPath + "/defult.png", iconSavePath)
except:
traceback.print_exc()
print("Error, show defult icon")
@@ -381,7 +415,7 @@ def KeyboardToMouse():
def SaveIconToOtherPath():
apkPath = ComboInstallPath.get()
if apkPath == "":
messagebox.showerror(title="错误", message="你没有选择 apk 文件")
messagebox.showerror(title="错误", message=langFile[lang]["Main"]["MainWindow"]["Error"]["ChooseApkError"])
return
path = filedialog.asksaveasfilename(title="保存图标", filetypes=[("PNG 图片", "*.png"), ("所有文件", "*.*")], initialdir=json.loads(readtxt(get_home() + "/.config/uengine-runner/SaveApkIcon.json"))["path"])
if not path == "":
@@ -389,7 +423,7 @@ def SaveIconToOtherPath():
SaveApkIcon(apkPath, path)
except:
traceback.print_exc()
messagebox.showerror(title="错误", message="本程序不支持保存该 apk 的图标")
messagebox.showerror(title="错误", message=langFile[lang]["Main"]["MainWindow"]["Error"]["SaveApkIconError"])
return
write_txt(get_home() + "/.config/uengine-runner/SaveApkIcon.json", json.dumps({"path": os.path.dirname(path)})) # 写入配置文件
findApkHistory.append(ComboInstallPath.get())
@@ -497,7 +531,7 @@ def SaveInstallUengineApp():
return
if os.path.exists("/data/uengine/data/data/app/{}-1".format(result)):
break
messagebox.showerror(title="错误", message="路径不存在,请重试!")
messagebox.showerror(title="错误", message=langFile[lang]["Main"]["MainWindow"]["Error"]["PathError"])
path = filedialog.asksaveasfilename(title="保存apk", filetypes=[("APK 文件", "*.apk"), ("所有文件", "*.*")], initialdir=json.loads(readtxt(get_home() + "/.config/uengine-runner/SaveApk.json"))["path"])
if path == "" or path == ():
return
@@ -627,14 +661,122 @@ def GetApkVersion(apkFilePath):
line = line.replace(" ", "")
return line
def VersionCheck(version1, version2):
return version1 == version2
def ShowHelp():
webbrowser.open_new_tab(programPath + "/Help/index.html")
def AllowOrDisallowUpdateAndroidApp():
if not os.path.exists("/data/uengine/data/data/misc/adb/adb_keys"):
if not messagebox.askyesno(title=langFile[lang]["Main"]["MainWindow"]["Answer"]["Title"], message=langFile[lang]["Main"]["MainWindow"]["Answer"]["UseAdbPackageAnswer"]):
return
os.system("pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY {}/uengine-useadb 0 '{}'".format(programPath,"{}/.android/adbkey.pub".format(get_home()))) # 写入配
adb = api.Adb("192.168.250.2:5555")
adb.Service.Close()
adb.connect()
if messagebox.askyesno(title=langFile[lang]["Main"]["MainWindow"]["Answer"]["Title"], message=langFile[lang]["Main"]["MainWindow"]["Answer"]["AllowOrDisallowUpdateAndroidAppAnswer"][int(adb.boolAndroidInstallOtherAppSetting())]):
adb.setAndroidInstallOtherAppSetting(not adb.boolAndroidInstallOtherAppSetting())
messagebox.showinfo(title=langFile[lang]["Main"]["MainWindow"]["Information"]["Title"], message=langFile[lang]["Main"]["MainWindow"]["Answer"]["CompleteInformation"])
class SettingWindow():
saveApkOption = tk.IntVar()
def ShowWindow():
setting = tk.Toplevel()
setting.resizable(0, 0)
setting.iconphoto(False, tk.PhotoImage(file=iconPath))
setting.title("设置 UEngine 运行器" + version)
saveApkFrame = ttk.LabelFrame(setting, text="Apk 安装设置")
try:
data = json.loads(readtxt(get_home() + "/.config/uengine-runner/setting.json"))
except:
messagebox.showerror(title="错误", message=langFile[lang]["Main"]["MainWindow"]["Error"]["SettingReadError"])
setting.destroy()
SettingWindow.saveApkOption = tk.IntVar()
SettingWindow.saveApkOption.set(int(data["SaveApk"]))
ttk.Radiobutton(saveApkFrame, text="不备份Apk包直接安装", value=0, variable=SettingWindow.saveApkOption).pack(anchor=tk.W)
ttk.Radiobutton(saveApkFrame, text="备份Apk包然后在安装后自动拷贝原先目录", value=1, variable=SettingWindow.saveApkOption).pack(anchor=tk.W)
controlFrame = ttk.Frame(setting)
ttk.Button(controlFrame, text="取消", command=setting.destroy).grid(row=0, column=0)
ttk.Button(controlFrame, text="保存", command=SettingWindow.SaveSetting).grid(row=0, column=1)
saveApkFrame.pack()
controlFrame.pack(anchor=tk.E)
def SaveSetting():
try:
write_txt(get_home() + "/.config/uengine-runner/setting.json", json.dumps({"SaveApk": bool(SettingWindow.saveApkOption.get())}))
except:
traceback.print_exc()
messagebox.showerror(title="错误", message=langFile[lang]["Main"]["MainWindow"]["Error"]["SettingSaveError"])
return
messagebox.showinfo(title="提示", message="设置保存完毕!")
class UpdateWindow():
data = {}
def ShowWindow():
update = tk.Toplevel()
update.title("检查更新")
update.resizable(0, 0)
update.iconphoto(False, tk.PhotoImage(file=iconPath))
versionLabel = ttk.Label(update, text="当前版本:{}\n最新版本:未知\n更新内容:".format(version))
updateText = tk.Text(update)
controlFrame = ttk.Frame(update)
ok = ttk.Button(controlFrame, text="更新更新过程中会关闭所有Python应用包括这个应用", command=UpdateWindow.Update)
cancel = ttk.Button(controlFrame, text="取消", command=update.destroy)
try:
UpdateWindow.data = json.loads(requests.get("http://120.25.153.144/uengine-runner/update.json").text)
versionLabel = ttk.Label(update, text="当前版本:{}\n最新版本:{}\n更新内容:".format(version, UpdateWindow.data["Version"]))
if UpdateWindow.data["Version"] == version:
updateText.insert("0.0", "此为最新版本,无需更新")
ok.configure(state=tk.DISABLED)
else:
updateText.insert("0.0", UpdateWindow.data["New"].replace("\\n", "\n"))
except:
traceback.print_exc()
messagebox.showerror(title="错误", message=langFile[lang]["Main"]["MainWindow"]["Error"]["ConnectServerError"])
updateText.configure(state=tk.DISABLED)
versionLabel.pack(anchor=tk.W)
updateText.pack()
controlFrame.pack(anchor=tk.E)
cancel.grid(row=0, column=0)
ok.grid(row=0, column=1)
update.mainloop()
def Update():
if not os.path.exists("/tmp/uengine-runner/update"):
os.makedirs("/tmp/uengine-runner/update")
try:
write_txt("/tmp/uengine-runner/update.sh", """#!/bin/bash
echo 删除多余的安装包
rm -rfv /tmp/uengine-runner/update/*
echo 关闭“UEngine 运行器”以及其它“Python 应用”
killall python3
echo 下载安装包
wget -P /tmp/uengine-runner/update {}
echo 安装安装包
dpkg -i /tmp/uengine-runner/update/*.deb
echo 修复依赖关系
apt install -f -y
notify-send -i uengine "更新完毕!"
zenity --info --text=\"更新完毕!\" --ellipsize
""".format(UpdateWindow.data["Url"][int(information["Package"] == "com.gitee.uengine.runner.spark")], iconPath))
except:
traceback.print_exc()
easygui.textbox(title="错误", msg="更新出现错误,无法继续更新!", text=traceback.format_exc())
os.system("deepin-terminal -e pkexec bash /tmp/uengine-runner/update.sh")
image = None
class ApkInformation():
def ShowWindows():
global fullInformation
global path
global tab1
path = ComboInstallPath.get()
package = GetApkPackageName(path)
if package == None or package == "":
messagebox.showerror(title="错误", message=langFile[lang]["Main"]["MainWindow"]["Error"]["ApkFileError"])
return
message = tk.Toplevel()
message.title("{}“的Apk信息".format(GetApkChineseLabel(path)))
message.iconphoto(False, tk.PhotoImage(file=iconPath))
tab = ttk.Notebook(message)
@@ -662,17 +804,65 @@ class ApkInformation():
# 获取图标
SaveApkIcon(path, "/tmp/uengine-runner-android-app-icon.png")
# 读取图标
global image
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()
ttk.Label(tab1, image=ImageTk.PhotoImage(Image.open("/tmp/uengine-runner-android-app-icon.png"))).pack()
else:
ttk.Label(tab1, image=ImageTk.PhotoImage(image.resize((256, 256), Image.ANTIALIAS))).pack()
ttk.Label(tab1, image=ImageTk.PhotoImage(Image.open("/tmp/uengine-runner-android-app-icon.png").resize((256, 256), Image.ANTIALIAS))).pack()
image.close()
info = '''包名:{}
中文名:{}
Activity{}
版本:{}'''.format(GetApkPackageName(path), GetApkChineseLabel(path), GetApkActivityName(path), GetApkVersion(path))
ttk.Label(tab1, text=info).pack()
ttk.Button(tab1, text="查看程序评分情况", command=ApkInformation.ShowMap).pack()
ttk.Button(tab1, text="上传程序评分情况", command=ApkInformation.UpdateMark).pack()
def UpdateMark():
#message = tk.Toplevel()
#message.iconphoto(False, tk.PhotoImage(file=iconPath))
choose = easygui.indexbox(title="选择评分", choices=["含有不良信息", "0分", "1分", "2分", "3分", "4分", "5分", "取消"], msg="""选择应用“{}”的使用评分。建议参考如下规范进行评分:
含有不良信息(-1分含有违法违规信息如果有就不要选择其它选项了
0星完全无法使用连安装都有问题
1星完全无法使用但是能正常安装
2星可以打开但只能使用一点点功能
3星勉强能使用运行也不大流畅
4星大部分功能正常运行流畅可能会有点小卡
5星完全正常且非常流畅没有任何功能和性能问题就和直接在手机上用一样
""".format(GetApkChineseLabel(path)))
print(choose)
if choose == None or choose == 7:
return
try:
messagebox.showinfo(title="提示", message=requests.post("http://120.25.153.144/uengine-runner/app/check/add.php", {"Package": GetApkPackageName(path), "Type": choose}).text)
except:
messagebox.showerror(title="错误", message=langFile[lang]["Main"]["MainWindow"]["Error"]["ConnectServerStarError"])
def ShowMap():
package = GetApkPackageName(path)
if package == None or package == "":
messagebox.showerror(title="错误", message=langFile[lang]["Main"]["MainWindow"]["Error"]["ApkFileError"])
return
try:
data = json.loads(requests.get("http://120.25.153.144/uengine-runner/app/check/" + package +"/data.json").text)
print(data)
except:
messagebox.showinfo(title="错误", message="此程序暂时没有评分,欢迎您贡献第一个评分!")
return
index = numpy.arange(len(data))
print(index)
chinese = GetApkChineseLabel(path)
fig = matplotlib.pylab.figure()
fig.canvas.set_window_title("" + chinese + "”的用户评分(数据只供参考)")
fonts = matplotlib.font_manager.FontProperties(fname='/usr/share/fonts/opentype/noto/NotoSansCJK-Regular.ttc') # 用于支持中文显示需要依赖fonts-noto-cjk
matplotlib.pylab.barh(index, data)
matplotlib.pylab.yticks(index, ["不良信息", "0分", "1分", "2分", "3分", "4分", "5分"], fontproperties=fonts)
matplotlib.pylab.xlabel("用户评分数", fontproperties=fonts)
matplotlib.pylab.ylabel("等级", fontproperties=fonts)
matplotlib.pylab.title("" + chinese + "”的用户评分(数据只供参考)", fontproperties=fonts)
matplotlib.pylab.show()
class AdbChangeUengineDisplaySize():
def ShowWindows():
@@ -680,6 +870,7 @@ class AdbChangeUengineDisplaySize():
global displayY
global displaySize
message = tk.Toplevel()
message.iconphoto(False, tk.PhotoImage(file=iconPath))
messageFrame = ttk.Frame(message)
displaySize = tk.StringVar()
@@ -729,7 +920,7 @@ class AdbChangeUengineDisplaySize():
int(displayX.get())
int(displayY.get())
except:
messagebox.showerror(title="错误", message="你输入的数值不正确!")
messagebox.showerror(title="错误", message=langFile[lang]["Main"]["MainWindow"]["Error"]["InputDataError"])
return
os.system("adb -s '192.168.250.2:5555' shell wm size {}x{}".format(displayX.get(), displayY.get()))
AdbChangeUengineDisplaySize.GetUengineDisplaySize()
@@ -818,6 +1009,7 @@ class AddNewUengineDesktopLink():
global activityName
global packageName
message = tk.Toplevel()
message.iconphoto(False, tk.PhotoImage(file=iconPath))
tipsLabel = ttk.Label(message, text=AddNewUengineDesktopLink.addTips)
packageName = ttk.Combobox(message, width=30)
@@ -857,31 +1049,42 @@ class AddNewUengineDesktopLink():
# 添加快捷方式
def SaveDesktopLink():
if os.path.exists("{}/.local/share/applications/uengine/{}.desktop".format(get_home(), packageName.get())):
if not messagebox.askokcancel(title="提示", message="文件已存在,确定要覆盖吗?"):
return
global activityName
iconSavePath = "{}/.local/share/icons/hicolor/256x256/apps/{}.png".format(get_home(), packageName.get())
shutil.copy(programPath + "/defult.png", iconSavePath)
BuildUengineDesktop(packageName.get(), activityName, packageName.get(), iconSavePath,
"{}/.local/share/applications/uengine/{}.desktop".format(get_home(), packageName.get()))
BuildUengineDesktop(packageName.get(), activityName, packageName.get(), iconSavePath,
"{}/{}.desktop".format(get_desktop_path(), packageName.get()))
AddNewUengineDesktopLink.SaveHistory()
messagebox.showinfo(title="提示", message="创建完毕!")
try:
if os.path.exists("{}/.local/share/applications/uengine/{}.desktop".format(get_home(), packageName.get())):
if not messagebox.askokcancel(title="提示", message="文件已存在,确定要覆盖吗?"):
return
if not os.path.exists("{}/.local/share/icons/hicolor/256x256/apps/".format(get_home())):
os.makedirs("{}/.local/share/icons/hicolor/256x256/apps/".format(get_home()))
global activityName
iconSavePath = "{}/.local/share/icons/hicolor/256x256/apps/{}.png".format(get_home(), packageName.get())
shutil.copy(programPath + "/defult.png", iconSavePath)
BuildUengineDesktop(packageName.get(), activityName, packageName.get(), iconSavePath,
"{}/.local/share/applications/uengine/{}.desktop".format(get_home(), packageName.get()))
BuildUengineDesktop(packageName.get(), activityName, packageName.get(), iconSavePath,
"{}/{}.desktop".format(get_desktop_path(), packageName.get()))
AddNewUengineDesktopLink.SaveHistory()
messagebox.showinfo(title="提示", message="创建完毕!")
except:
traceback.print_exc()
messagebox.showerror(title="错误", message=traceback.format_exc())
# 删除快捷方式
def DelDesktopLink():
global packageName
if not os.path.exists("{}/.local/share/applications/uengine/{}.desktop".format(get_home(), packageName.get())):
messagebox.showerror(title="错误", message="此包名对应的 UEngine 桌面快捷方式不存在!")
return
if not messagebox.askyesno(title="提示", message="你确定要删除吗?删除后将无法恢复!"):
return
try:
os.remove("{}/.local/share/applications/uengine/{}.desktop".format(get_home(), packageName.get()))
AddNewUengineDesktopLink.SaveHistory()
messagebox.showinfo(title="提示", message="已删除")
global packageName
if not os.path.exists("{}/.local/share/applications/uengine/{}.desktop".format(get_home(), packageName.get())):
messagebox.showerror(title="错误", message="此包名对应的 UEngine 桌面快捷方式不存在!")
return
if not messagebox.askyesno(title="提示", message="你确定要删除吗?删除后将无法恢复!"):
return
try:
os.remove("{}/.local/share/applications/uengine/{}.desktop".format(get_home(), packageName.get()))
AddNewUengineDesktopLink.SaveHistory()
messagebox.showinfo(title="提示", message="已删除")
except:
traceback.print_exc()
messagebox.showerror(title="错误", message=traceback.format_exc())
except:
traceback.print_exc()
messagebox.showerror(title="错误", message=traceback.format_exc())
@@ -954,7 +1157,7 @@ Tk 版本 :{}
程序官网 {}
系统版本 :{}
系统版本 : {}
©2021-{}'''.format(version, goodRunSystem, tk.TkVersion, programUrl, SystemVersion, time.strftime("%Y"))
tips = "\n".join(information["Tips"])
@@ -962,7 +1165,7 @@ 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])
iconPath = "{}/runner.png".format(os.path.split(os.path.realpath(__file__))[0])
desktop = programPath + "/UengineAndroidProgramList.desktop"
desktopName = "UengineAndroidProgramList.desktop"
contribute = "\n".join(information["Contribute"])
@@ -994,6 +1197,24 @@ if not os.path.exists(get_home() + "/.config/uengine-runner/SaveApkIcon.json"):
write_txt(get_home() + "/.config/uengine-runner/SaveApkIcon.json", json.dumps({"path": "~"})) # 写入(创建)一个配置文件
if not os.path.exists(get_home() + "/.config/uengine-runner/SaveApk.json"): # 如果没有配置文件
write_txt(get_home() + "/.config/uengine-runner/SaveApk.json", json.dumps({"path": "~"})) # 写入(创建)一个配置文件
if not os.path.exists(get_home() + "/.config/uengine-runner/setting.json"):
choose = None
choose = easygui.indexbox(msg="""在使用本程序前请选择安装Apk包的设置以便更好的运行下列选项的详细介绍
不备份Apk包直接安装适用于Deepin旧版UEngine安装较快不受/tmp大小所限但Deepin23和UOS新版UEngine不推荐此选项因为安装后会自动删除Apk安装包
备份Apk包然后在安装后自动拷贝原先目录适用于Deepin23和UOS新版UEngine安装较慢受/tmp大小所限安装后不会丢失ApkDeepin旧版UEngine不推荐使用该选项
后期可以在程序主界面的菜单栏的“程序”=>“设置”里进行修改,
如果不知道正在使用的系统是什么版本可以打开系统设置查看。
""", title="设置", choices=["不备份Apk包直接安装", "备份Apk包然后在安装后自动拷贝原先目录"])
if choose == None:
root = tk.Tk()
root.withdraw()
messagebox.showinfo(title="提示", message="必须选择一个选项!否则无法进入程序!")
sys.exit()
write_txt(get_home() + "/.config/uengine-runner/setting.json", json.dumps({"SaveApk": int(choose)}))
###########################
# 设置变量
@@ -1022,12 +1243,14 @@ def showhelp():
screen_width = helpwindow.winfo_screenwidth()
screen_height = helpwindow.winfo_screenheight()
# calculate position x and y coordinates 假设主窗口大小固定 570x236像素 ,设置窗口位置为屏幕中心。
winwith=550
winhigh=700
x = (screen_width/2) - (winwith/2)
y = (screen_height/2) - (winhigh/2)
helpwindow.geometry("550x700"+"+{:.0f}+{:.0f}".format(x, y))
if not helpwindow.winfo_screenheight() > 1080:
helpwindow.geometry(f"{winwith}x{winhigh}"+"+{:.0f}+{:.0f}".format(x, y))
style = ttkthemes.ThemedStyle(helpwindow)
style.set_theme("breeze")
@@ -1043,7 +1266,7 @@ def showhelp():
HelpStr.set(tips)
LabText = ttk.Label(LabFrmText, textvariable=HelpStr,width=55)
LabText.config(wraplength=350)
def on_closing():
global windowflag
windowflag = "close"
@@ -1067,12 +1290,32 @@ def showhelp():
def ChgTips():
HelpStr.set(tips)
LabText.config(wraplength=350)
def Egg(event):
try:
lists = json.loads(requests.get("http://120.25.153.144/uengine-runner/VersionList.json").text)
data = []
for i in lists:
data.append(int(requests.get("http://120.25.153.144/uengine-runner/{}/data.txt".format(i)).text))
except:
messagebox.showerror(title="错误", message="服务器出错!数据获取失败!")
return
fig = matplotlib.pylab.figure()
fig.canvas.set_window_title("“UEngine 运行器”安装数(数据只供参考)")
matplotlib.pylab.plot(lists, data)
index = numpy.arange(len(lists))
fonts = matplotlib.font_manager.FontProperties(fname='/usr/share/fonts/opentype/noto/NotoSansCJK-Regular.ttc') # 用于支持中文显示需要依赖fonts-noto-cjk
matplotlib.pylab.xlabel("版本号", fontproperties=fonts)
matplotlib.pylab.ylabel("安装数", fontproperties=fonts)
matplotlib.pylab.title("“UEngine 运行器”安装数(数据只供参考)", fontproperties=fonts)
matplotlib.pylab.show()
BtnReadme = ttk.Button(FrmMenu, text="使用说明",width=14,command=ChgTips)
BtnLog = ttk.Button(FrmMenu, text="更新内容",width=14,command=ChgLog)
BtnZujian = ttk.Button(FrmMenu, text="程序依赖的组件",width=14,command=ChgDep)
BtnGongxian = ttk.Button(FrmMenu, text="有贡献的开发者",width=14,command=ChgCon)
BtnAbout = ttk.Button(FrmMenu, text="关于",width=14,command=ChgAbout)
BtnAbout.bind("<Double-Button-1>", Egg)
#layout
@@ -1093,11 +1336,31 @@ def showhelp():
#helpwindow.mainloop()
helpwindow.protocol("WM_DELETE_WINDOW", on_closing)
###########################
# 检查 UEngine 是否安装
###########################
if not os.path.exists("/usr/bin/uengine"):
# 不渲染窗口
style = ttkthemes.ThemedStyle(win)
style.set_theme("breeze")
win.withdraw()
# Deepin/UOS 用户
if "deepin" in SystemVersion.lower() or "uos" in SystemVersion.lower():
if messagebox.askyesno(title="提示", message="您的电脑没有安装 UEngine是否安装 UEngine 以便更好的使用\n安装完后重新启动该程序即可"):
os.system("deepin-terminal -C \"pkexec apt install uengine\"")
sys.exit(0)
# 非 Deepin/UOS 用户
else:
if messagebox.askyesno(title="提示", message="您的电脑没有安装 UEngine是否安装 UEngine 以便更好的使用\n这里将会使用 shenmo 提供的脚本进行安装\n安装完后重新启动该程序即可\n提示:无法保证此安装脚本安装的 UEngine 可以使用"):
os.system(f"deepin-terminal -C \"bash '{programPath}/uengine-installer'\"")
sys.exit(0)
# 重新显示窗口
win.wm_deiconify()
###########################
# 窗口创建
###########################
win = tk.Tk() # 创建窗口
# 设置窗口
style = ttkthemes.ThemedStyle(win)
@@ -1122,13 +1385,10 @@ win.geometry(""+"+{:.0f}+{:.0f}".format(x, y))
FrmInstall = ttk.Frame(window)
#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=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)
@@ -1156,6 +1416,7 @@ menu.add_cascade(label=langFile[lang]["Main"]["MainWindow"]["Menu"][2]["Name"],
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_command(label=langFile[lang]["Main"]["MainWindow"]["Menu"][0]["Menu"][2], command=SettingWindow.ShowWindow)
programmenu.add_separator() # 设置分界线
programmenu.add_command(label=langFile[lang]["Main"]["MainWindow"]["Menu"][0]["Menu"][1], command=window.quit) # 设置“退出程序”
@@ -1176,10 +1437,11 @@ adbServer.add_command(label=langFile[lang]["Main"]["MainWindow"]["Menu"][1]["Men
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=langFile[lang]["Main"]["MainWindow"]["Menu"][2]["Menu"][0], command=UengineSettingShow)
uengine.add_command(label=langFile[lang]["Main"]["MainWindow"]["Menu"][2]["Menu"][13], command=AllowOrDisallowUpdateAndroidApp)
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_command(label=langFile[lang]["Main"]["MainWindow"]["Menu"][2]["Menu"][12], command=UengineUbuntuInstall)
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)
@@ -1188,9 +1450,12 @@ uengine.add_cascade(label=langFile[lang]["Main"]["MainWindow"]["Menu"][2]["Menu"
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)
uengine.add_cascade(label=langFile[lang]["Main"]["MainWindow"]["Menu"][2]["Menu"][11]["Name"], menu=uengineRoot)
uengine.add_command(label=langFile[lang]["Main"]["MainWindow"]["Menu"][2]["Menu"][14], command=UbuntuInstallUengine)
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"][2], command=UengineRunnerBugUpload) # 设置“传bug”项
help.add_command(label=langFile[lang]["Main"]["MainWindow"]["Menu"][3]["Menu"][4], command=ShowHelp) # 设置“更多帮助”项
help.add_command(label=langFile[lang]["Main"]["MainWindow"]["Menu"][3]["Menu"][3], command=UpdateWindow.ShowWindow)
help.add_command(label=langFile[lang]["Main"]["MainWindow"]["Menu"][3]["Menu"][1], command=showhelp) # 设置“关于这个程序”项
uengineService.add_command(label=langFile[lang]["Main"]["MainWindow"]["Menu"][2]["Menu"][2]["Menu"][0], command=StartUengine)
@@ -1237,7 +1502,6 @@ uengineUseAdb.configure(activebackground="dodgerblue")
uengineData.configure(activebackground="dodgerblue")
# 设置控件
#ComboUninstallPath['value'] = fineUninstallApkHistory
ComboInstallPath['value'] = findApkHistory
try:
if sys.argv[1] == "-i":

BIN
menu.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 111 KiB

25
menu.svg Executable file

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 16 KiB

57
mount-disk-uengine.py Normal file
View File

@@ -0,0 +1,57 @@
import os
import psutil
import string
import ttkthemes
import tkinter as tk
import tkinter.ttk as ttk
import tkinter.messagebox as messagebox
class Program:
def GetRoot():
return os.geteuid() == 0
def MountDisk():
Disk.MountDisk(diskChoose.get(), "/data/uengine/安卓应用文件/media/" + name.get())
class Disk:
def MountDisk(disk, path):
if not os.path.exists(path):
os.makedirs(path)
os.system("mount \"{}\" \"{}\"".format(disk, path))
class File:
def DiskList():
diskList = []
partitions = psutil.disk_partitions()
for p in partitions:
if not "loop" in p.device and not "boot" in p.device and not p.device in diskList:
#print(p.device)
diskList.append(p.device)
#print(p.mountpoint)
return diskList
if __name__ == "__main__":
window = tk.Tk()
print(File.DiskList())
if not Program.GetRoot():
window.withdraw()
messagebox.showerror(title="错误", message="此程序必须在 root 下运行!")
quit()
if not os.path.exists("/data/uengine/安卓应用文件/media"):
os.makedirs("/data/uengine/安卓应用文件/media")
#window.withdraw()
#messagebox.showerror(title="错误", message="目录不存在,无法继续操作!")
#quit()
window.title("挂载磁盘")
diskList = File.DiskList()
diskChoose = tk.StringVar()
diskChoose.set(diskList[0])
weight = ttk.Frame(window)
ttk.Label(weight, text="挂载磁盘:").grid(row=0, column=0)
ttk.OptionMenu(weight, diskChoose, diskList[0], *diskList).grid(row=0, column=1)
ttk.Label(weight, text="挂载名称:").grid(row=1, column=0)
name = ttk.Entry(weight)
ttk.Button(weight, text="挂载", command=Program.MountDisk).grid(row=2, column=1)
name.grid(row=1, column=1)
weight.pack()
window.mainloop()

View File

@@ -1,11 +1,18 @@
Package: com.gitee.uengine.runner.spark
Source: com.gitee.uengine.runner.spark
Version: 1.5.2
Replaces: spark-uengine-runner
Version: 1.6.2
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, uengine, python3-setuptools, deepin-terminal, curl, python3-pil, python3-pil.imagetk, python3-requests, adb, translate-shell, python3-xlib
Section: utils
Maintainer: gfdgd xi <3025613752@qq.com>, actionchen<917981399@qq.com>, 柚子<https://gitee.com/Limexb>, 为什么您不喜欢熊出没和阿布呢<https://weibo.com/u/7755040136>, 星空露光<https://gitee.com/Cynorkyle>, shenmo<jifengshenmo@outlook.com>
Depends: deepin-elf-verify (>= 0.0.16.7-1), python3, python3-tk, python3-pip, aapt, python3-setuptools, deepin-terminal, curl, python3-pil, python3-pil.imagetk, python3-requests, adb, translate-shell, python3-xlib, fonts-noto-cjk, python3-numpy, python3-matplotlib, wget, inotify-tools, aria2, uengine
Priority: optional
Conflicts: spark-uengine-runner, spark-uengine-apk-builder
Conflicts: spark-uengine-apk-builder
Homepage: [https://gitee.com/gfdgd-xi/uengine-runner, https://github.com/gfdgd-xi/uengine-runner]
Description: UEngine Runner for deepin and UOS
Description: UEngine 运行器1.6.2 更新内容:
※1、优化了 UEngine 运行器的英语翻译
※2、新增加了可以打开或关闭第三方应用安装的功能使用此功能后在UEngine里可以使用默认的APK安装程序安装应用此操作需要使用程序的Adb补丁
※3、新增加了 UEngine 的 Ubuntu 安装程序
※4、双包合一只保留了UOS打包标准可以从旧标准无缝升级推荐使用本程序的升级程序进行升级
5、修复了本程序在 Ubuntu 上安装和卸载报错而无法继续的问题
6、优化帮助/关于窗口在高分辨率电脑上显示不全的问题

View File

@@ -1,22 +1,25 @@
#!/bin/sh
# 使用 pip 安装所需库
python3 -m pip install --upgrade pip -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com
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
python3 -m pip install --upgrade easygui -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-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
ln -s /opt/apps/com.gitee.uengine.runner.spark/files/root-uengine /usr/bin/uengine-root
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
ln -s /opt/apps/com.gitee.uengine.runner.spark/files/root-uengine /usr/bin/uengine-root
ln -s /opt/apps/com.gitee.uengine.runner.spark/files/uengine-runner-applist-launch.sh /usr/bin/uengine-runner-applist-launch.sh
# 刷新图标缓存
#gtk-update-icon-cache /usr/share/icons/bloom
# 因为 Ubuntu 的问题,省略
gtk-update-icon-cache /usr/share/icons/bloom | true
# 向服务器返回安装数加1不显示内容且忽略错误
curl http://120.25.153.144/uengine-runner/Install.php?Version=1.5.2 -s > /dev/null | true
curl http://120.25.153.144/uengine-runner/Install.php?Version=1.6.2 -s > /dev/null | true

View File

@@ -10,5 +10,8 @@ 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
rm -fv /usr/bin/uengine-root
rm -fv /opt/apps/com.gitee.uengine.runner.spark/files/
# 刷新图标缓存
gtk-update-icon-cache /usr/share/icons/bloom
# 因为 Ubuntu 的问题,省略
gtk-update-icon-cache /usr/share/icons/bloom | true

View File

@@ -2,8 +2,8 @@
Categories=System;
Comment=UEngine 程序菜单
Encoding=UTF-8
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
Exec=/usr/bin/uengine-runner-applist-launch.sh
Icon=/opt/apps/com.gitee.uengine.runner.spark/files/menu.svg
MimeType=
Name=UEngine App List
Name[zh]=UEngine 程序菜单

View File

@@ -4,7 +4,7 @@ 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
Icon=/opt/apps/com.gitee.uengine.runner.spark/files/builer.svg
Name=Build Apk To Deb(UEngine Runner)
Comment=Build Apk To Deb(UEngine Runner)
Comment[zh]=打包 debUEngine 运行器)

View File

@@ -4,7 +4,7 @@ Encoding=UTF-8
Categories=System;
Terminal=false
Exec=/usr/bin/uengine-runner -i %F
Icon=/opt/apps/com.gitee.uengine.runner.spark/files/icon.png
Icon=/opt/apps/com.gitee.uengine.runner.spark/files/runner.svg
Name=Install Or Uninstall APK(uengine runner)
Comment=Install Or Uninstall APK(UEngine runner)
Comment[zh]=安装/卸载 APKUEngine 运行器)

View File

@@ -4,7 +4,7 @@ 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
Icon=/opt/apps/com.gitee.uengine.runner.spark/files/builer.svg
Name=uengine Apk Builder
Comment=UEngine Apk Builder
Comment[zh]=UEngine 应用打包器

View File

@@ -4,7 +4,7 @@ Encoding=UTF-8
Categories=System;
Terminal=false
Exec=/usr/bin/uengine-runner
Icon=/opt/apps/com.gitee.uengine.runner.spark/files/icon.png
Icon=/opt/apps/com.gitee.uengine.runner.spark/files/runner.svg
Name=uengine Runner
Comment=UEngine Runner
Comment[zh]=UEngine 运行器

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 74 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 56 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 70 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Some files were not shown because too many files have changed in this diff Show More