基本完工
This commit is contained in:
parent
3f9aa55d8d
commit
a6baf834c7
|
@ -38,6 +38,14 @@ sudo apt upgrade
|
|||
|
||||
|
||||
### 更新内容
|
||||
#### V1.6.2(2022年06月21日,中考假期+即将期末考试)
|
||||
**※1、优化了 UEngine 运行器的英语翻译**
|
||||
**※2、新增加了可以打开或关闭第三方应用安装的功能(使用此功能后在UEngine里可以使用默认的APK安装程序安装应用,此操作需要使用程序的Adb补丁)**
|
||||
**※3、新增加了 UEngine 的 Ubuntu 安装程序**
|
||||
**※4、双包合一,只保留了UOS打包标准,可以从旧标准无缝升级(推荐使用本程序的升级程序进行升级)
|
||||
5、修复了本程序在 Ubuntu 上安装和卸载报错而无法继续的问题
|
||||
6、优化帮助/关于窗口在高分辨率电脑上显示不全的问题
|
||||
|
||||
#### V1.6.1(2022年05月21日,521)
|
||||
**※1、修复了打包 deb 包在 APK 的包名有大写时无法启动的问题**
|
||||
**※2、提供新版本的 UEngine Root 镜像**
|
||||
|
|
Binary file not shown.
|
@ -28,6 +28,7 @@
|
|||
"※3、新增加了 UEngine 的 Ubuntu 安装程序",
|
||||
"※4、双包合一,只保留了UOS打包标准,可以从旧标准无缝升级(推荐使用本程序的升级程序进行升级)",
|
||||
"5、修复了本程序在 Ubuntu 上安装和卸载报错而无法继续的问题",
|
||||
"6、优化帮助/关于窗口在高分辨率电脑上显示不全的问题",
|
||||
"V1.6.1:",
|
||||
"※1、修复了打包 deb 包在 APK 的包名有大写时无法启动的问题",
|
||||
"※2、提供新版本的 UEngine Root 镜像",
|
||||
|
@ -164,6 +165,6 @@
|
|||
"柚子<https://gitee.com/Limexb>",
|
||||
"为什么您不喜欢熊出没和阿布呢<https://weibo.com/u/7755040136>",
|
||||
"星空露光<https://gitee.com/Cynorkyle>",
|
||||
"shenmo"
|
||||
"shenmo<jifengshenmo@outlook.com>"
|
||||
]
|
||||
}
|
2
main.py
2
main.py
|
@ -1351,7 +1351,7 @@ if not os.path.exists("/usr/bin/uengine"):
|
|||
sys.exit(0)
|
||||
# 非 Deepin/UOS 用户
|
||||
else:
|
||||
if messagebox.askyesno(title="提示", message="您的电脑没有安装 UEngine,是否安装 UEngine 以便更好的使用\n这里将会使用 shenmo 提供的脚本进行安装\n安装完后重新启动该程序即可"):
|
||||
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)
|
||||
# 重新显示窗口
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
Package: com.gitee.uengine.runner.spark
|
||||
Source: com.gitee.uengine.runner.spark
|
||||
Replaces: spark-uengine-runner
|
||||
Version: 1.6.2Alpha2
|
||||
Version: 1.6.2
|
||||
Architecture: all
|
||||
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>
|
||||
|
@ -9,4 +9,10 @@ Depends: deepin-elf-verify (>= 0.0.16.7-1), python3, python3-tk, python3-pip, aa
|
|||
Priority: optional
|
||||
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、优化帮助/关于窗口在高分辨率电脑上显示不全的问题
|
||||
|
|
|
@ -6,19 +6,20 @@ python3 -m pip install --upgrade pyautogui -i http://mirrors.aliyun.com/pypi/si
|
|||
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
|
||||
# 刷新图标缓存
|
||||
# 因为 Ubuntu 的问题,省略
|
||||
# gtk-update-icon-cache /usr/share/icons/bloom
|
||||
gtk-update-icon-cache /usr/share/icons/bloom | true
|
||||
# 向服务器返回安装数加1(不显示内容且忽略错误)
|
||||
curl http://120.25.153.144/uengine-runner/Install.php?Version=1.6.2 -s > /dev/null | true
|
|
@ -11,6 +11,7 @@ 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/
|
||||
# 刷新图标缓存
|
||||
# 因为 Ubuntu 的问题,省略
|
||||
# gtk-update-icon-cache /usr/share/icons/bloom
|
||||
gtk-update-icon-cache /usr/share/icons/bloom | true
|
|
@ -2,7 +2,7 @@
|
|||
Categories=System;
|
||||
Comment=UEngine 程序菜单
|
||||
Encoding=UTF-8
|
||||
Exec=/usr/bin/uengine-runner-launch.sh
|
||||
Exec=/usr/bin/uengine-runner-applist-launch.sh
|
||||
Icon=/opt/apps/com.gitee.uengine.runner.spark/files/menu.svg
|
||||
MimeType=
|
||||
Name=UEngine App List
|
||||
|
|
|
@ -298,7 +298,7 @@ class UEngine:
|
|||
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.org/gfdgd-xi/uengine-runner/releases/download/U1.2.15/uengine-android-image_1.2.15_amd64.deb' && pkexec bash '/tmp/uengine-runner/install.sh'")
|
||||
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")
|
||||
|
@ -319,6 +319,12 @@ class UEngine:
|
|||
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")
|
||||
|
@ -327,6 +333,12 @@ class Adb:
|
|||
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
|
||||
|
@ -350,7 +362,11 @@ class UengineRunner:
|
|||
|
||||
if __name__ == "__main__":
|
||||
print("本 API 不支持直接运行,请通过引入的方式使用此 API")
|
||||
quit()
|
||||
#adb = Adb("192.168.250.2:5555")
|
||||
#print(adb.boolAndroidInstallOtherAppSetting())
|
||||
|
||||
#quit()
|
||||
|
||||
if not ROOT.GetRoot():
|
||||
print("请获取 ROOT 权限以便更好的使用该 API")
|
||||
pass
|
||||
#print("请获取 ROOT 权限以便更好的使用该 API")
|
Binary file not shown.
|
@ -28,6 +28,7 @@
|
|||
"※3、新增加了 UEngine 的 Ubuntu 安装程序",
|
||||
"※4、双包合一,只保留了UOS打包标准,可以从旧标准无缝升级(推荐使用本程序的升级程序进行升级)",
|
||||
"5、修复了本程序在 Ubuntu 上安装和卸载报错而无法继续的问题",
|
||||
"6、优化帮助/关于窗口在高分辨率电脑上显示不全的问题",
|
||||
"V1.6.1:",
|
||||
"※1、修复了打包 deb 包在 APK 的包名有大写时无法启动的问题",
|
||||
"※2、提供新版本的 UEngine Root 镜像",
|
||||
|
@ -164,6 +165,6 @@
|
|||
"柚子<https://gitee.com/Limexb>",
|
||||
"为什么您不喜欢熊出没和阿布呢<https://weibo.com/u/7755040136>",
|
||||
"星空露光<https://gitee.com/Cynorkyle>",
|
||||
"shenmo"
|
||||
"shenmo<jifengshenmo@outlook.com>"
|
||||
]
|
||||
}
|
|
@ -28,6 +28,7 @@ cp /tmp/uengine/run_daemon.sh $HOME/uengine-launch
|
|||
cp /tmp/uengine/launch_uengine.sh $HOME/uengine-launch
|
||||
cd /tmp/uengine
|
||||
/tmp/uengine/install.sh
|
||||
sudo apt install -y libkf5globalaccel5 libqt5multimedia5 libqt5sensors5 libegl1-mesa-dev
|
||||
echo "重启后在$HOME/uengine-launch执行launch_uengine.sh即可打开uengine守护进程。随后即可安装和使用安卓应用"
|
||||
echo "你需要在每次启动安卓应用之前打开这个脚本。打开后可安全关闭"
|
||||
echo "按回车重启"
|
||||
|
|
|
@ -1351,7 +1351,7 @@ if not os.path.exists("/usr/bin/uengine"):
|
|||
sys.exit(0)
|
||||
# 非 Deepin/UOS 用户
|
||||
else:
|
||||
if messagebox.askyesno(title="提示", message="您的电脑没有安装 UEngine,是否安装 UEngine 以便更好的使用\n这里将会使用 shenmo 提供的脚本进行安装\n安装完后重新启动该程序即可"):
|
||||
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)
|
||||
# 重新显示窗口
|
||||
|
|
|
@ -16,8 +16,8 @@ else
|
|||
deepin-terminal -C "pkexec apt install uengine"
|
||||
fi
|
||||
else
|
||||
echo "非 Deepin/UOS 系统,使用 shenmo 提供的脚本安装"
|
||||
zenity --question --text="您还未安装 UEngine,是否现在安装?\n将会使用 shenmo 提供的脚本进行安装" --no-wrap
|
||||
echo "非 Deepin/UOS 系统,使用 shenmo 提供的脚本安装\n暂未保证此安装脚本一定安装成功"
|
||||
zenity --question --text="您还未安装 UEngine,是否现在安装?\n将会使用 shenmo 提供的脚本进行安装\n暂未保证此安装脚本一定安装成功" --no-wrap
|
||||
if [[ $? = 0 ]]; then
|
||||
deepin-terminal -C "bash /opt/apps/com.gitee.uengine.runner.spark/files/uengine-installer"
|
||||
fi
|
||||
|
|
|
@ -3,8 +3,8 @@ Depends: com.gitee.uengine.runner.spark(>=1.6.2Alpha1)
|
|||
Architecture: all
|
||||
Priority: optional
|
||||
Section: oldlibs
|
||||
Version: 1.6.2Alpha2
|
||||
Version: 1.6.2
|
||||
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>
|
||||
Conflicts: spark-uengine-apk-builder
|
||||
Homepage: [https://gitee.com/gfdgd-xi/uengine-runner, https://github.com/gfdgd-xi/uengine-runner]
|
||||
Description: UEngine 运行器,此包只做升级过渡使用
|
||||
Description: UEngine 运行器,此包只做升级过渡使用,无实质内容
|
||||
|
|
Loading…
Reference in New Issue