初步打包调试deb

This commit is contained in:
2022-06-19 21:46:58 +08:00
parent 79674c1c2f
commit 8fb872d8ec
100 changed files with 175 additions and 4527 deletions

View File

@@ -1,8 +1,10 @@
Package: com.gitee.uengine.runner.spark
Replaces: spark-uengine-runner
Breaks: spark-uengine-runner
Source: com.gitee.uengine.runner.spark
Version: 1.6.1
Version: 1.6.2Alpha1
Architecture: all
Maintainer: gfdgd xi <3025613752@qq.com>, actionchen<917981399@qq.com>, 柚子<https://gitee.com/Limexb>, 为什么您不喜欢熊出没和阿布呢<https://weibo.com/u/7755040136>, 星空露光<https://gitee.com/Cynorkyle>
Maintainer: gfdgd xi <3025613752@qq.com>, actionchen<917981399@qq.com>, 柚子<https://gitee.com/Limexb>, 为什么您不喜欢熊出没和阿布呢<https://weibo.com/u/7755040136>, 星空露光<https://gitee.com/Cynorkyle>, shenmo
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, fonts-noto-cjk, python3-numpy, python3-matplotlib, wget, inotify-tools, aria2
Section: utils
Priority: optional

View File

@@ -13,6 +13,32 @@
"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": "程序",
@@ -105,7 +131,10 @@
"构建 UEngine 带最高权限的镜像到用户主目录",
"安装默认的 UEngine 镜像"
]
}
},
"在 Ubuntu 上安装 UEngine",
"启动/禁用UEngine安装的安卓程序程序更新",
"在 Ubuntu 上安装 UEngine"
]
},
{
@@ -150,6 +179,32 @@
"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",
@@ -242,16 +297,19 @@
"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",
"About This Program",
"Upload Problem And Advice",
"ABout This Program",
"Update This Program",
"More Help"
]
}

View File

@@ -4,7 +4,7 @@
"https://gitee.com/gfdgd-xi/uengine-runner",
"https://github.com/gfdgd-xi/uengine-runner"
],
"Version": "1.6.1",
"Version": "1.6.2 Alpha",
"System": "Linuxdeepin/UOS",
"Tips": [
"更多可见https://gitee.com/gfdgd-xi/uengine-runner/wikis",
@@ -22,6 +22,11 @@
"5、如果想要使用adb连接UEngine或其他手机请使用 1.2.0 以前的版本。如需连接UEngine请安装adb补丁"
],
"Update": [
"V1.6.2",
"※1、优化了 UEngine 运行器的英语翻译",
"※2、新增加了可以打开或关闭第三方应用安装的功能使用此功能后在UEngine里可以使用默认的APK安装程序安装应用此操作需要使用程序的Adb补丁",
"※3、新增加了 UEngine 的 Ubuntu 安装程序",
"4、修复了本程序在 Ubuntu 上安装和卸载报错无法继续的问题",
"V1.6.1",
"※1、修复了打包 deb 包在 APK 的包名有大写时无法启动的问题",
"※2、提供新版本的 UEngine Root 镜像",
@@ -157,6 +162,7 @@
"actionchen<917981399@qq.com>",
"柚子<https://gitee.com/Limexb>",
"为什么您不喜欢熊出没和阿布呢<https://weibo.com/u/7755040136>",
"星空露光<https://gitee.com/Cynorkyle>"
"星空露光<https://gitee.com/Cynorkyle>",
"shenmo"
]
}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,35 @@
#/bin/bash
is_tar_checked="0"
rm -rf /tmp/uengine
until [ "$is_tar_checked" = "1" ];do
echo "请拖入uengine.tar.xz并回车确认,可在 https://cowtransfer.com/s/44656ada129e42 下载获取。"
read tar_path
tar_path=`echo "$tar_path" | sed $'s/\'//g'`
echo "路径为 $tar_path"
tar_md5sum=`md5sum $tar_path`
tar_md5sum=`echo ${tar_md5sum%%/*}`
if [ "$tar_md5sum" = "b8429c4d8bfd507b9dc4547e0b71c962" ];then
is_tar_checked="1"
else
echo $tar_md5sum
echo "md5完整性检查失败请检查是否是这个文件"
sleep 3
reset
fi
done
echo "完整性检查通过开始部署。部署过程会需要root权限完成后会要求重启。请注意不要在安装过程中安装或卸载其他软件"
cd /tmp
tar -xf "$tar_path"
mkdir -p $HOME/uengine
mkdir -p $HOME/uengine-launch
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
echo "重启后在$HOME/uengine-launch执行launch_uengine.sh即可打开uengine守护进程。随后即可安装和使用安卓应用"
echo "你需要在每次启动安卓应用之前打开这个脚本。打开后可安全关闭"
echo "按回车重启"
read
reboot

View File

@@ -1,7 +1,7 @@
#!/usr/bin/env python3
#########################################
# 版本1.4.2
# 更新时间2021年08月30
# 版本1.6.2
# 更新时间2022年06月19
#########################################
import os
import sys
@@ -43,7 +43,6 @@ if os.geteuid() != 0:
window = tk.Tk()
style = ttkthemes.ThemedStyle(window)
style.set_theme("breeze")
window.overrideredirect(1)
window.withdraw()
try:
if sys.argv[1] == "1" and messagebox.askokcancel(title="提示", message="你确定要删除吗?"):