forked from Autotest/uengine-runner
初步修复安装图标无法正常点击运行等问题
This commit is contained in:
parent
712f2d25cc
commit
34937827d9
|
@ -2,7 +2,7 @@
|
|||
Categories=System;
|
||||
Comment=UEngine 程序菜单
|
||||
Encoding=UTF-8
|
||||
Exec=/usr/bin/uengine-launch.sh --package=org.anbox.appmgr --component=org.anbox.appmgr.AppViewActivity
|
||||
Exec=/usr/bin/uengine launch.sh --package=org.anbox.appmgr --component=org.anbox.appmgr.AppViewActivity
|
||||
Icon=/opt/apps/uengine-runner/icon.png
|
||||
MimeType=
|
||||
Name=UEngine 程序菜单
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
Package: spark-uengine-runner
|
||||
Version: 1.5.0
|
||||
Version: 1.5.1
|
||||
Maintainer: gfdgd xi <3025613752@qq.com>, actionchen<917981399@qq.com>
|
||||
Homepage: [https://gitee.com/gfdgd-xi/uengine-runner, https://github.com/gfdgd-xi/uengine-runner]
|
||||
Architecture: all
|
||||
Priority: optional
|
||||
Conflicts: com.gitee.uengine.runner.spark, spark-uengine-apk-builder
|
||||
Depends: python3, python3-tk, python3-pip, aapt, uengine, python3-pil, python3-setuptools, deepin-terminal, curl
|
||||
Depends: python3, python3-tk, python3-pip, aapt, uengine, python3-pil, python3-setuptools, deepin-terminal, curl, python3-pil, python3-pil.imagetk
|
||||
Description: UEngine Runner for deepin and UOS
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
"Main": {
|
||||
"MainWindow": {
|
||||
"Title": "UEngine 运行器",
|
||||
"LabApkPath": "安装 APK:",
|
||||
"LabApkPath": "安装/卸载 APK:",
|
||||
"LabUninstallPath": "卸载 Apk:",
|
||||
"BtnFindApk": "浏览",
|
||||
"BtnInstall": "安装",
|
||||
|
@ -12,6 +12,7 @@
|
|||
"BtnUninstall": "卸载",
|
||||
"Btngeticon": "保存图标",
|
||||
"BtnSaveApk": "保存Apk",
|
||||
"BtnApkInformation": "Apk 信息",
|
||||
"Menu": [
|
||||
{
|
||||
"Name": "程序",
|
||||
|
@ -125,8 +126,7 @@
|
|||
"Main": {
|
||||
"MainWindow": {
|
||||
"Title": "UEngine Runner",
|
||||
"LabApkPath": "Install Apk:",
|
||||
"LabUninstallPath": "Uninstall Apk",
|
||||
"LabApkPath": "Install Or Uninstall Apk:",
|
||||
"BtnFindApk": "Find",
|
||||
"BtnInstall": "Install",
|
||||
"BtnShowUengineApp": "Open UEngine App List",
|
||||
|
@ -134,6 +134,7 @@
|
|||
"BtnUninstall": "Uninstall",
|
||||
"Btngeticon": "Save Apk Icon",
|
||||
"BtnSaveApk": "Saving Installed App Apk",
|
||||
"BtnApkInformation": "Apk Information",
|
||||
"Menu": [
|
||||
{
|
||||
"Name": "Program",
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
[Desktop Entry]
|
||||
Categories=System;
|
||||
Comment=uengine(anbox) 程序菜单
|
||||
Comment=UEngine 程序菜单
|
||||
Encoding=UTF-8
|
||||
Exec=/usr/bin/uengine-launch.sh --package=org.anbox.appmgr --component=org.anbox.appmgr.AppViewActivity
|
||||
Exec=/usr/bin/uengine launch --package=org.anbox.appmgr --component=org.anbox.appmgr.AppViewActivity
|
||||
Icon=/opt/apps/uengine-runner/icon.png
|
||||
MimeType=
|
||||
Name=uengine 程序菜单
|
||||
StartupWMClass=uengine 程序菜单
|
||||
Name=UEngine 程序菜单
|
||||
StartupWMClass=UEngine 程序菜单
|
||||
Terminal=false
|
||||
Type=Application
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
"https://gitee.com/gfdgd-xi/uengine-runner",
|
||||
"https://github.com/gfdgd-xi/uengine-runner"
|
||||
],
|
||||
"Version": "1.5.0",
|
||||
"Version": "1.5.1",
|
||||
"System": "Linux(deepin/UOS)",
|
||||
"Tips": [
|
||||
"更多可见:https://gitee.com/gfdgd-xi/uengine-runner/wikis",
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"Package": "spark-uengine-runner",
|
||||
"Update": true,
|
||||
"Version": "1.5.0",
|
||||
"Version": "1.5.1",
|
||||
"Url": "https://gfdgd-xi.github.io/update-program/data/UpdateInformation.json"
|
||||
|
||||
}
|
|
@ -148,7 +148,7 @@ done
|
|||
exit 0'''.format(apkPackageName)
|
||||
desktopFile = '''[Desktop Entry]
|
||||
Categories=Other;
|
||||
Exec=/usr/bin/uengine-launch.sh --action=android.intent.action.MAIN --package={} --component={}
|
||||
Exec=uengine launch --action=android.intent.action.MAIN --package={} --component={}
|
||||
Icon=/usr/share/uengine/icons/{}.png
|
||||
Terminal=false
|
||||
Type=Application
|
||||
|
@ -294,7 +294,7 @@ def BuildUengineDesktop(packageName, activityName, showName, iconPath, savePath)
|
|||
[Desktop Entry]
|
||||
Categories=app;
|
||||
Encoding=UTF-8
|
||||
Exec=/usr/bin/uengine-launch.sh --action=android.intent.action.MAIN --package={} --component={}
|
||||
Exec=/usr/bin/uengine launch.sh --action=android.intent.action.MAIN --package={} --component={}
|
||||
GenericName={}
|
||||
Icon={}
|
||||
MimeType=
|
||||
|
@ -313,16 +313,16 @@ def GetApkChineseLabel(apkFilePath):
|
|||
line = line.replace("'", "")
|
||||
return line
|
||||
|
||||
def GetApkIconInApk(apkFilePath):
|
||||
info = GetApkInformation(apkFilePath)
|
||||
for line in info.split('\n'):
|
||||
if "application:" in line:
|
||||
line = line[line.index("icon='"): -1]
|
||||
line = line.replace("icon='", "")
|
||||
if "'" in line:
|
||||
line = line[0: line.index("'")]
|
||||
return line
|
||||
return line
|
||||
#def GetApkIconInApk(apkFilePath):
|
||||
# info = GetApkInformation(apkFilePath)
|
||||
# for line in info.split('\n'):
|
||||
# if "application:" in line:
|
||||
# line = line[line.index("icon='"): -1]
|
||||
# line = line.replace("icon='", "")
|
||||
# if "'" in line:
|
||||
# line = line[0: line.index("'")]
|
||||
# return line
|
||||
# return line
|
||||
|
||||
#合并两个函数到一起
|
||||
def SaveApkIcon(apkFilePath, iconSavePath)->"获取 apk 文件的图标":
|
||||
|
|
|
@ -0,0 +1,16 @@
|
|||
[Desktop Entry]
|
||||
Categories=system;Utility;
|
||||
Encoding=UTF-8
|
||||
Exec=uengine-runner -ci %F
|
||||
GenericName=APK Install(UEngine)
|
||||
GenericName[zh_CN]=APK 安装(UEngine)
|
||||
Icon=/opt/apps/uengine-runner/icon.png
|
||||
MimeType=application/apk;
|
||||
Name=APK Install(UEngine)
|
||||
Name[zh_CN]=APK 安装(UEngine)
|
||||
NoDisplay=true
|
||||
OnlyShowIn=Unity;
|
||||
StartupNotify=false
|
||||
StartupWMClass=APK 安装(UEngine)
|
||||
Terminal=false
|
||||
Type=Application
|
|
@ -22,6 +22,8 @@ import threading
|
|||
import ttkthemes
|
||||
import webbrowser
|
||||
import subprocess
|
||||
import PIL.Image as Image
|
||||
import PIL.ImageTk as ImageTk
|
||||
import tkinter as tk
|
||||
import tkinter.ttk as ttk
|
||||
import tkinter.messagebox as messagebox
|
||||
|
@ -39,37 +41,38 @@ def UninstallProgram(package: "apk 包名")->"卸载程序":
|
|||
os.remove("{}/.local/share/applications/{}.desktop".format(get_home(), package))
|
||||
if os.path.exists("{}/{}.desktop".format(get_desktop_path(), package)):
|
||||
os.remove("{}/{}.desktop".format(get_desktop_path(), package))
|
||||
fineUninstallApkHistory.append(ComboUninstallPath.get())
|
||||
ComboUninstallPath['value'] = fineUninstallApkHistory
|
||||
write_txt(get_home() + "/.config/uengine-runner/FindUninstallApkHistory.json", str(json.dumps(ListToDictionary(fineUninstallApkHistory)))) # 将历史记录的数组转换为字典并写入
|
||||
findApkHistory.append(ComboInstallPath.get())
|
||||
ComboInstallPath['value'] = findApkHistory
|
||||
write_txt(get_home() + "/.config/uengine-runner/FindApkHistory.json", str(json.dumps(ListToDictionary(findApkHistory)))) # 将历史记录的数组转换为字典并写入
|
||||
messagebox.showinfo(message="操作执行完毕!", title="提示")
|
||||
DisabledAndEnbled(False)
|
||||
return Return
|
||||
except:
|
||||
traceback.print_exc()
|
||||
messagebox.showerror(title="错误", message=traceback.format_exc())
|
||||
DisabledAndEnbled(False)
|
||||
|
||||
# 卸载文本框的浏览按钮事件
|
||||
def BtnFindUninstallApkClk():
|
||||
path = filedialog.askopenfilename(title="选择 Apk", filetypes=[("APK 文件", "*.apk"), ("所有文件", "*.*")], initialdir=json.loads(readtxt(get_home() + "/.config/uengine-runner/FindUninstallApk.json"))["path"])
|
||||
if path != "" and path != "()":
|
||||
try:
|
||||
ComboUninstallPath.set(path)
|
||||
write_txt(get_home() + "/.config/uengine-runner/FindUninstallApk.json", json.dumps({"path": os.path.dirname(path)})) # 写入配置文件
|
||||
except:
|
||||
pass
|
||||
#def BtnFindUninstallApkClk():
|
||||
# path = filedialog.askopenfilename(title="选择 Apk", filetypes=[("APK 文件", "*.apk"), ("所有文件", "*.*")], initialdir=json.loads(readtxt(get_home() + "/.config/uengine-runner/FindUninstallApk.json"))["path"])
|
||||
# if path != "" and path != "()":
|
||||
# try:
|
||||
# ComboUninstallPath.set(path)
|
||||
# write_txt(get_home() + "/.config/uengine-runner/FindUninstallApk.json", json.dumps({"path": os.path.dirname(path)})) # 写入配置文件
|
||||
# except:
|
||||
# pass
|
||||
|
||||
# 卸载按钮事件
|
||||
def ButtonClick8():
|
||||
if ComboUninstallPath.get() is "":
|
||||
if ComboInstallPath.get() is "":
|
||||
messagebox.showerror(title="提示", message="信息没有填写完整,无法继续卸载 APK")
|
||||
return
|
||||
DisabledAndEnbled(True)
|
||||
if os.path.exists(ComboUninstallPath.get()):
|
||||
path = GetApkPackageName(ComboUninstallPath.get())
|
||||
if os.path.exists(ComboInstallPath.get()):
|
||||
path = GetApkPackageName(ComboInstallPath.get())
|
||||
else:
|
||||
path = ComboUninstallPath.get()
|
||||
UninstallProgram(path)
|
||||
messagebox.showinfo(message="操作执行完毕!", title="提示")
|
||||
DisabledAndEnbled(False)
|
||||
path = ComboInstallPath.get()
|
||||
threading.Thread(target=UninstallProgram, args=[path]).start()
|
||||
|
||||
# 浏览窗口
|
||||
# temp strs
|
||||
|
@ -136,14 +139,16 @@ def DisabledAndEnbled(choose: "启动或者禁用")->"禁用或启动所有控
|
|||
userChoose = {True: tk.DISABLED, False: tk.NORMAL}
|
||||
a = userChoose[choose]
|
||||
ComboInstallPath.configure(state=a)
|
||||
ComboUninstallPath.configure(state=a)
|
||||
#ComboUninstallPath.configure(state=a)
|
||||
BtnFindApk.configure(state=a)
|
||||
BtnInstall.configure(state=a)
|
||||
BtnShowUengineApp.configure(state=a)
|
||||
BtnUninstallApkBrowser.configure(state=a)
|
||||
#BtnUninstallApkBrowser.configure(state=a)
|
||||
BtnUninstall.configure(state=a)
|
||||
Btngeticon.configure(state=a)
|
||||
BtnSaveApk.configure(state=a)
|
||||
BtnApkInformation.configure(state=a)
|
||||
LabApkPath.configure(state=a)
|
||||
|
||||
# 需引入 subprocess
|
||||
# 运行系统命令并获取返回值
|
||||
|
@ -157,27 +162,27 @@ def Button5Click():
|
|||
|
||||
# 打开“uengine 所有程序列表”
|
||||
def OpenUengineProgramList()->"打开“uengine 所有程序列表”":
|
||||
os.system("/usr/bin/uengine-launch.sh --package=org.anbox.appmgr --component=org.anbox.appmgr.AppViewActivity")
|
||||
os.system("uengine launch --package=org.anbox.appmgr --component=org.anbox.appmgr.AppViewActivity")
|
||||
|
||||
# 显示“关于这个程序”窗口
|
||||
def about_this_program()->"显示“关于这个程序”窗口":
|
||||
global about
|
||||
global title
|
||||
global iconPath
|
||||
mess = tk.Toplevel()
|
||||
message = ttk.Frame(mess)
|
||||
mess.resizable(0, 0)
|
||||
mess.title("关于 {}".format(title))
|
||||
#mess.iconphoto(False, tk.PhotoImage(file=iconPath))
|
||||
img = ImageTk.PhotoImage(Image.open(iconPath))
|
||||
LabApkPath = ttk.Label(message, image=img)
|
||||
label2 = ttk.Label(message, text=about)
|
||||
button1 = ttk.Button(message, text="确定", command=mess.withdraw)
|
||||
LabApkPath.pack()
|
||||
label2.pack()
|
||||
button1.pack(side="bottom")
|
||||
message.pack()
|
||||
mess.mainloop()
|
||||
#def about_this_program()->"显示“关于这个程序”窗口":
|
||||
# global about
|
||||
# global title
|
||||
# global iconPath
|
||||
# mess = tk.Toplevel()
|
||||
# message = ttk.Frame(mess)
|
||||
# mess.resizable(0, 0)
|
||||
# mess.title("关于 {}".format(title))
|
||||
# #mess.iconphoto(False, tk.PhotoImage(file=iconPath))
|
||||
# img = ImageTk.PhotoImage(Image.open(iconPath))
|
||||
# LabApkPath = ttk.Label(message, image=img)
|
||||
# label2 = ttk.Label(message, text=about)
|
||||
# button1 = ttk.Button(message, text="确定", command=mess.withdraw)
|
||||
# LabApkPath.pack()
|
||||
# label2.pack()
|
||||
# button1.pack(side="bottom")
|
||||
# message.pack()
|
||||
# mess.mainloop()
|
||||
|
||||
# 显示“提示”窗口
|
||||
def helps()->"显示“提示”窗口":
|
||||
|
@ -324,7 +329,7 @@ def BuildUengineDesktop(packageName: "软件包名", activityName: "activity", s
|
|||
things = '''[Desktop Entry]
|
||||
Categories=app;
|
||||
Encoding=UTF-8
|
||||
Exec=/usr/bin/uengine-launch.sh --action=android.intent.action.MAIN --package={} --component={}
|
||||
Exec=uengine launch --action=android.intent.action.MAIN --package={} --component={}
|
||||
GenericName={}
|
||||
Icon={}
|
||||
MimeType=
|
||||
|
@ -545,7 +550,7 @@ def AdbCPUAndRAWShowInTer():
|
|||
threading.Thread(target=os.system, args=["deepin-terminal -w ~ -e 'adb -s 192.168.250.2:5555 shell top'"]).start()
|
||||
|
||||
def UengineSettingShow():
|
||||
threading.Thread(target=os.system, args=["/usr/bin/uengine-launch.sh --action=android.intent.action.MAIN --package=com.android.settings --component=com.android.settings.Settings"]).start()
|
||||
threading.Thread(target=os.system, args=["/usr/bin/uengine launch --action=android.intent.action.MAIN --package=com.android.settings --component=com.android.settings.Settings"]).start()
|
||||
|
||||
# 杀死 adb 进程
|
||||
def AdbKillAdbProgress():
|
||||
|
@ -594,6 +599,67 @@ def AdbAndroidInstallAppList():
|
|||
subprocess.getoutput("adb -s 192.168.250.2:5555 shell pm list package -3"),
|
||||
subprocess.getoutput("adb -s 192.168.250.2:5555 shell pm list packages -f")))
|
||||
|
||||
def GetApkVersion(apkFilePath):
|
||||
info = GetApkInformation(apkFilePath)
|
||||
for line in info.split('\n'):
|
||||
if "package:" in line:
|
||||
if "compileSdkVersion='" in line:
|
||||
line = line.replace(line[line.index("compileSdkVersion='"): -1], "")
|
||||
if "platform" in line:
|
||||
line = line.replace(line[line.index("platform"): -1], "")
|
||||
line = line.replace(line[0: line.index("versionName='")], "")
|
||||
line = line.replace("versionName='", "")
|
||||
line = line.replace("'", "")
|
||||
line = line.replace(" ", "")
|
||||
return line
|
||||
|
||||
class ApkInformation():
|
||||
def ShowWindows():
|
||||
global fullInformation
|
||||
global path
|
||||
global tab1
|
||||
path = ComboInstallPath.get()
|
||||
|
||||
message = tk.Toplevel()
|
||||
|
||||
tab = ttk.Notebook(message)
|
||||
|
||||
tab1 = ttk.Frame(message)
|
||||
tab2 = ttk.Frame(message)
|
||||
|
||||
fullInformation = tk.Text(tab2)
|
||||
|
||||
tab.add(tab1, text="简化版")
|
||||
tab.add(tab2, text="完整版")
|
||||
|
||||
fullInformation.pack(expand="yes", fill="both")
|
||||
|
||||
tab.pack(expand="yes", fill="both")
|
||||
|
||||
threading.Thread(target=ApkInformation.GetInformation).start()
|
||||
|
||||
message.mainloop()
|
||||
|
||||
def GetInformation():
|
||||
# 获取详细信息
|
||||
fullInformation.configure(state=tk.NORMAL)
|
||||
fullInformation.insert("1.0", GetApkInformation(path))
|
||||
fullInformation.configure(state=tk.DISABLED)
|
||||
# 获取图标
|
||||
SaveApkIcon(path, "/tmp/uengine-runner-android-app-icon.png")
|
||||
# 读取图标
|
||||
image = Image.open("/tmp/uengine-runner-android-app-icon.png")
|
||||
if image.size[0] + image.size[1] <= 512:
|
||||
ttk.Label(tab1, image=ImageTk.PhotoImage(image)).pack()
|
||||
else:
|
||||
ttk.Label(tab1, image=ImageTk.PhotoImage(image.resize((256, 256), Image.ANTIALIAS))).pack()
|
||||
info = '''包名:{}
|
||||
中文名:{}
|
||||
Activity:{}
|
||||
版本:{}'''.format(GetApkPackageName(path), GetApkChineseLabel(path), GetApkActivityName(path), GetApkVersion(path))
|
||||
ttk.Label(tab1, text=info).pack()
|
||||
|
||||
|
||||
class AdbChangeUengineDisplaySize():
|
||||
def ShowWindows():
|
||||
global displayX
|
||||
|
@ -817,7 +883,7 @@ class AddNewUengineDesktopLink():
|
|||
|
||||
# 打开测试
|
||||
def TestOpen():
|
||||
threading.Thread(target=os.system, args=["/usr/bin/uengine-launch.sh --package={} --component={}".format(packageName.get(), activityName.get())]).start()
|
||||
threading.Thread(target=os.system, args=["/usr/bin/uengine launch --package={} --component={}".format(packageName.get(), activityName.get())]).start()
|
||||
AddNewUengineDesktopLink.SaveHistory()
|
||||
|
||||
# 浏览文件
|
||||
|
@ -826,7 +892,7 @@ class AddNewUengineDesktopLink():
|
|||
if path == "" or path == ():
|
||||
return
|
||||
packageName.set(GetApkPackageName(path))
|
||||
activityName.set(GetApkActivityName(path))
|
||||
activityName.set(str(GetApkActivityName(path)))
|
||||
write_txt(get_home() + "/.config/uengine-runner/FindApkName.json", json.dumps({"path": os.path.dirname(path)})) # 写入配置文件
|
||||
|
||||
def UseProgram():
|
||||
|
@ -1036,18 +1102,19 @@ win.geometry(""+"+{:.0f}+{:.0f}".format(x, y))
|
|||
|
||||
# 创建控件
|
||||
FrmInstall = ttk.Frame(window)
|
||||
FrmUninstall = 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"])
|
||||
#LabUninstallPath = ttk.Label(window, text=langFile[lang]["Main"]["MainWindow"]["LabUninstallPath"])
|
||||
ComboInstallPath = ttk.Combobox(window, width=50)
|
||||
ComboUninstallPath = 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(FrmUninstall, text=langFile[lang]["Main"]["MainWindow"]["BtnUninstall"], command=ButtonClick8)
|
||||
#BtnUninstallApkBrowser = ttk.Button(FrmUninstall, text=langFile[lang]["Main"]["MainWindow"]["BtnUninstallApkBrowser"], command=BtnFindUninstallApkClk)
|
||||
BtnUninstall = ttk.Button(FrmInstall, text=langFile[lang]["Main"]["MainWindow"]["BtnUninstall"], command=ButtonClick8)
|
||||
Btngeticon = ttk.Button(FrmInstall, text=langFile[lang]["Main"]["MainWindow"]["Btngeticon"], command=SaveIconToOtherPath)
|
||||
BtnSaveApk = ttk.Button(FrmInstall, text=langFile[lang]["Main"]["MainWindow"]["BtnSaveApk"], command=SaveInstallUengineApp)
|
||||
BtnApkInformation = ttk.Button(FrmInstall, text=langFile[lang]["Main"]["MainWindow"]["BtnApkInformation"], command=ApkInformation.ShowWindows)
|
||||
# 设置菜单栏
|
||||
menu = tk.Menu(window, background="white")
|
||||
|
||||
|
@ -1103,8 +1170,8 @@ help.add_command(label=langFile[lang]["Main"]["MainWindow"]["Menu"][3]["Menu"][0
|
|||
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)
|
||||
uengineService.add_command(label=langFile[lang]["Main"]["MainWindow"]["Menu"][2]["Menu"][2]["Menu"][0], command=StopUengine)
|
||||
uengineService.add_command(label=langFile[lang]["Main"]["MainWindow"]["Menu"][2]["Menu"][2]["Menu"][0], command=UengineRestart)
|
||||
uengineService.add_command(label=langFile[lang]["Main"]["MainWindow"]["Menu"][2]["Menu"][2]["Menu"][1], command=StopUengine)
|
||||
uengineService.add_command(label=langFile[lang]["Main"]["MainWindow"]["Menu"][2]["Menu"][2]["Menu"][2], command=UengineRestart)
|
||||
|
||||
uengineInternet.add_command(label=langFile[lang]["Main"]["MainWindow"]["Menu"][2]["Menu"][3]["Menu"][0], command=UengineBridgeStart)
|
||||
uengineInternet.add_command(label=langFile[lang]["Main"]["MainWindow"]["Menu"][2]["Menu"][3]["Menu"][1], command=UengineBridgeStop)
|
||||
|
@ -1141,14 +1208,15 @@ uengineUseAdb.configure(activebackground="dodgerblue")
|
|||
uengineData.configure(activebackground="dodgerblue")
|
||||
|
||||
# 设置控件
|
||||
ComboUninstallPath['value'] = fineUninstallApkHistory
|
||||
#ComboUninstallPath['value'] = fineUninstallApkHistory
|
||||
ComboInstallPath['value'] = findApkHistory
|
||||
try:
|
||||
if sys.argv[1] == "-i":
|
||||
ComboInstallPath.set(sys.argv[2])
|
||||
print("Install Path: " + sys.argv[2])
|
||||
elif sys.argv[1] == "-u":
|
||||
ComboUninstallPath.set(sys.argv[2])
|
||||
#ComboUninstallPath.set(sys.argv[2])
|
||||
ComboInstallPath.set(sys.argv[2])
|
||||
print("Unstall Path: " + sys.argv[2])
|
||||
else:
|
||||
print("Command Format Error")
|
||||
|
@ -1159,25 +1227,26 @@ win.config(menu=menu) # 显示菜单栏
|
|||
|
||||
|
||||
|
||||
LabApkPath.grid(row=1, column=0,sticky= tk.W,padx=3)
|
||||
ComboInstallPath.grid(row=2, column=0,padx=3)
|
||||
LabApkPath.grid(row=0, column=0,sticky= tk.W,padx=3)
|
||||
ComboInstallPath.grid(row=1, column=0,padx=3)
|
||||
|
||||
|
||||
FrmInstall.grid(row=2, column=1,padx=3, rowspan=2)
|
||||
FrmInstall.grid(row=0, column=1,padx=3, rowspan=3)
|
||||
BtnFindApk.grid(row=0, column=0)
|
||||
BtnInstall.grid(row=0, column=1)
|
||||
|
||||
LabUninstallPath.grid(row=4, column=0,sticky= tk.W,padx=3)
|
||||
ComboUninstallPath.grid(row=5, column=0,padx=3)
|
||||
#LabUninstallPath.grid(row=4, column=0,sticky= tk.W,padx=3)
|
||||
#ComboUninstallPath.grid(row=5, column=0,padx=3)
|
||||
|
||||
FrmUninstall.grid(row=5, column=1,padx=3)
|
||||
BtnUninstallApkBrowser.grid(row=0, column=0)
|
||||
BtnUninstall.grid(row=0, column=1)
|
||||
#FrmUninstall.grid(row=5, column=1,padx=3)
|
||||
#BtnUninstallApkBrowser.grid(row=0, column=0)
|
||||
BtnUninstall.grid(row=1, column=0)
|
||||
|
||||
BtnShowUengineApp.grid(row=6, column=0,sticky= tk.W,padx=3,pady=2)
|
||||
BtnShowUengineApp.grid(row=2, column=0,sticky= tk.W,padx=3,pady=2)
|
||||
|
||||
Btngeticon.grid(row=1, column=0,sticky= tk.W,padx=3,pady=2)
|
||||
BtnSaveApk.grid(row=1, column=1,sticky= tk.W,padx=3,pady=2)
|
||||
BtnApkInformation.grid(row=2, column=1,sticky= tk.W,padx=3,pady=2)
|
||||
Btngeticon.grid(row=1, column=1,sticky= tk.W,padx=3,pady=2)
|
||||
BtnSaveApk.grid(row=2, column=0,sticky= tk.W,padx=3,pady=2)
|
||||
|
||||
window.pack()
|
||||
|
||||
|
|
|
@ -0,0 +1,24 @@
|
|||
#!/bin/bash
|
||||
|
||||
# 忽略社区版检测
|
||||
|
||||
pkgRunCnt=`ps -ef |grep "uengine launch" |grep -v grep |grep "$pkg" |wc -l`
|
||||
if [ $pkgRunCnt -ge 1 ]; then
|
||||
#防止短时间内多次打开同一应用,如果应用正在启动中,此次忽略
|
||||
exit 0
|
||||
fi
|
||||
|
||||
#等Session服务启动完全
|
||||
wscont=0
|
||||
isReady=`busctl --user get-property org.anbox /org/anbox org.anbox.ApplicationManager Ready`
|
||||
if [ "$isReady" != "b true" ] ;then
|
||||
sleep 2
|
||||
fi
|
||||
while [ "$isReady" = "b false" -a $wscont -lt 10 ]
|
||||
do
|
||||
sleep 1
|
||||
isReady=`busctl --user get-property org.anbox /org/anbox org.anbox.ApplicationManager Ready`
|
||||
let wscont++
|
||||
done
|
||||
|
||||
uengine launch $*
|
|
@ -0,0 +1,153 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<svg width="256px" height="256px" viewBox="0 0 256 256" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<title>APPS_安卓容器_bonund256pt</title>
|
||||
<defs>
|
||||
<filter x="-12.5%" y="-12.5%" width="125.0%" height="125.0%" filterUnits="objectBoundingBox" id="filter-1">
|
||||
<feOffset dx="0" dy="4" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset>
|
||||
<feGaussianBlur stdDeviation="6" in="shadowOffsetOuter1" result="shadowBlurOuter1"></feGaussianBlur>
|
||||
<feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.197982681 0" type="matrix" in="shadowBlurOuter1" result="shadowMatrixOuter1"></feColorMatrix>
|
||||
<feMerge>
|
||||
<feMergeNode in="shadowMatrixOuter1"></feMergeNode>
|
||||
<feMergeNode in="SourceGraphic"></feMergeNode>
|
||||
</feMerge>
|
||||
</filter>
|
||||
<linearGradient x1="58.6019309%" y1="88.1513471%" x2="68.1110327%" y2="11.6551043%" id="linearGradient-2">
|
||||
<stop stop-color="#02DA67" offset="0%"></stop>
|
||||
<stop stop-color="#8DF6D6" offset="100%"></stop>
|
||||
</linearGradient>
|
||||
<path d="M178.25009,95.8175981 C203.764636,95.8175981 224.183124,74.193939 224.183124,47.5198036 C224.183124,20.8456682 203.116891,-0.0263983843 178.25009,0.00161822517 C153.698836,-0.149640967 132.579574,20.8119281 132.579574,47.4860635 C132.579574,74.1601989 152.735544,95.8175981 178.25009,95.8175981 Z" id="path-3"></path>
|
||||
<filter x="-8.7%" y="-8.3%" width="117.5%" height="116.7%" filterUnits="objectBoundingBox" id="filter-4">
|
||||
<feGaussianBlur stdDeviation="6" in="SourceAlpha" result="shadowBlurInner1"></feGaussianBlur>
|
||||
<feOffset dx="0" dy="4" in="shadowBlurInner1" result="shadowOffsetInner1"></feOffset>
|
||||
<feComposite in="shadowOffsetInner1" in2="SourceAlpha" operator="arithmetic" k2="-1" k3="1" result="shadowInnerInner1"></feComposite>
|
||||
<feColorMatrix values="0 0 0 0 0.503096532 0 0 0 0 0.974696063 0 0 0 0 0.762013922 0 0 0 1 0" type="matrix" in="shadowInnerInner1"></feColorMatrix>
|
||||
</filter>
|
||||
<linearGradient x1="63.5172866%" y1="83.8734541%" x2="28.478366%" y2="6.65286784%" id="linearGradient-5">
|
||||
<stop stop-color="#4796FE" offset="0%"></stop>
|
||||
<stop stop-color="#44D9FF" offset="100%"></stop>
|
||||
</linearGradient>
|
||||
<ellipse id="path-6" cx="75.4782609" cy="64.0914576" rx="40.4347826" ry="42.2724698"></ellipse>
|
||||
<filter x="-7.4%" y="-7.1%" width="114.8%" height="114.2%" filterUnits="objectBoundingBox" id="filter-7">
|
||||
<feGaussianBlur stdDeviation="6" in="SourceAlpha" result="shadowBlurInner1"></feGaussianBlur>
|
||||
<feOffset dx="0" dy="0" in="shadowBlurInner1" result="shadowOffsetInner1"></feOffset>
|
||||
<feComposite in="shadowOffsetInner1" in2="SourceAlpha" operator="arithmetic" k2="-1" k3="1" result="shadowInnerInner1"></feComposite>
|
||||
<feColorMatrix values="0 0 0 0 0.658848459 0 0 0 0 0.76869955 0 0 0 0 0.994393611 0 0 0 1 0" type="matrix" in="shadowInnerInner1"></feColorMatrix>
|
||||
</filter>
|
||||
<linearGradient x1="50%" y1="31.0023874%" x2="50%" y2="95.9937487%" id="linearGradient-8">
|
||||
<stop stop-color="#D0FF52" offset="0%"></stop>
|
||||
<stop stop-color="#75EF07" offset="100%"></stop>
|
||||
</linearGradient>
|
||||
<path d="M173.78741,23.8356193 C174.592173,22.5497756 176.286945,22.1597832 177.572789,22.9645469 C178.97904,23.8446691 179.464805,25.6626835 178.684957,27.1269214 L178.684957,27.1269214 L167.998548,47.191447 C186.416883,60.0725236 198.886549,83.3414384 199.457775,110.056847 L199.478261,111.975079 C172.083327,116.233637 151.498347,118.362915 137.72332,118.362915 C122.744723,118.362915 100.199269,116.233637 70.0869565,111.975079 C70.0869565,84.4580366 82.7086518,60.380247 101.56625,47.1917402 L90.8802608,27.1269214 C90.1004123,25.6626835 90.5861775,23.8446691 91.9924283,22.9645469 C93.278272,22.1597832 94.9730442,22.5497756 95.7778079,23.8356193 C95.8117323,23.8898235 95.8437535,23.9451959 95.873813,24.0016352 L106.548653,44.0451766 C115.080463,39.2096532 124.660045,36.497433 134.782609,36.497433 C144.904955,36.497433 154.484343,39.2095367 163.016015,44.0448652 L173.691404,24.0016352 C173.721464,23.9451959 173.753485,23.8898235 173.78741,23.8356193 Z" id="path-9"></path>
|
||||
<filter x="-32.5%" y="-31.3%" width="164.9%" height="187.7%" filterUnits="objectBoundingBox" id="filter-10">
|
||||
<feOffset dx="0" dy="12" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset>
|
||||
<feGaussianBlur stdDeviation="12" in="shadowOffsetOuter1" result="shadowBlurOuter1"></feGaussianBlur>
|
||||
<feColorMatrix values="0 0 0 0 0.565756196 0 0 0 0 0.617813774 0 0 0 0 0 0 0 0 0.5 0" type="matrix" in="shadowBlurOuter1"></feColorMatrix>
|
||||
</filter>
|
||||
<path d="M108.824477,66.2818224 C104.358174,66.2818224 100.73752,70.0670283 100.73752,74.7363163 C100.73752,79.4056044 104.358174,83.1908103 108.824477,83.1908103 C113.290779,83.1908103 116.911433,79.4056044 116.911433,74.7363163 C116.911433,70.0670283 113.290779,66.2818224 108.824477,66.2818224 Z" id="path-11"></path>
|
||||
<filter x="-24.7%" y="-23.7%" width="149.5%" height="147.3%" filterUnits="objectBoundingBox" id="filter-12">
|
||||
<feGaussianBlur stdDeviation="2" in="SourceAlpha" result="shadowBlurInner1"></feGaussianBlur>
|
||||
<feOffset dx="0" dy="4" in="shadowBlurInner1" result="shadowOffsetInner1"></feOffset>
|
||||
<feComposite in="shadowOffsetInner1" in2="SourceAlpha" operator="arithmetic" k2="-1" k3="1" result="shadowInnerInner1"></feComposite>
|
||||
<feColorMatrix values="0 0 0 0 0.311563901 0 0 0 0 0.401805933 0 0 0 0 0.0617868498 0 0 0 1 0" type="matrix" in="shadowInnerInner1"></feColorMatrix>
|
||||
</filter>
|
||||
<path d="M162.73752,66.2818224 C158.271217,66.2818224 154.650564,70.0670283 154.650564,74.7363163 C154.650564,79.4056044 158.271217,83.1908103 162.73752,83.1908103 C167.203823,83.1908103 170.824477,79.4056044 170.824477,74.7363163 C170.824477,70.0670283 167.203823,66.2818224 162.73752,66.2818224 Z" id="path-13"></path>
|
||||
<filter x="-24.7%" y="-23.7%" width="149.5%" height="147.3%" filterUnits="objectBoundingBox" id="filter-14">
|
||||
<feGaussianBlur stdDeviation="2" in="SourceAlpha" result="shadowBlurInner1"></feGaussianBlur>
|
||||
<feOffset dx="0" dy="4" in="shadowBlurInner1" result="shadowOffsetInner1"></feOffset>
|
||||
<feComposite in="shadowOffsetInner1" in2="SourceAlpha" operator="arithmetic" k2="-1" k3="1" result="shadowInnerInner1"></feComposite>
|
||||
<feColorMatrix values="0 0 0 0 0.311563901 0 0 0 0 0.401805933 0 0 0 0 0.0617868498 0 0 0 1 0" type="matrix" in="shadowInnerInner1"></feColorMatrix>
|
||||
</filter>
|
||||
<linearGradient x1="50%" y1="15.1929094%" x2="43.5077077%" y2="91.2786664%" id="linearGradient-15">
|
||||
<stop stop-color="#F59A36" offset="0%"></stop>
|
||||
<stop stop-color="#FCCB6D" offset="100%"></stop>
|
||||
</linearGradient>
|
||||
<linearGradient x1="49.9821781%" y1="101.237754%" x2="49.9425633%" y2="5.03998902%" id="linearGradient-16">
|
||||
<stop stop-color="#FFC87C" offset="0%"></stop>
|
||||
<stop stop-color="#FD7A49" offset="100%"></stop>
|
||||
</linearGradient>
|
||||
<linearGradient x1="42.3143683%" y1="18.131572%" x2="69.2971087%" y2="74.6901955%" id="linearGradient-17">
|
||||
<stop stop-color="#FFE066" offset="0%"></stop>
|
||||
<stop stop-color="#FED862" offset="67.0339918%"></stop>
|
||||
<stop stop-color="#FFC565" offset="100%"></stop>
|
||||
</linearGradient>
|
||||
<linearGradient x1="37.3123913%" y1="70.4187755%" x2="57.7534931%" y2="25.1271391%" id="linearGradient-18">
|
||||
<stop stop-color="#FBC758" offset="0%"></stop>
|
||||
<stop stop-color="#FCE188" offset="100%"></stop>
|
||||
</linearGradient>
|
||||
<polygon id="path-19" points="22.4854175 71.1352831 124 111.895386 108.52496 183.11999 -1.44464996e-12 131.484995"></polygon>
|
||||
<filter x="-3.2%" y="-3.6%" width="112.9%" height="114.3%" filterUnits="objectBoundingBox" id="filter-20">
|
||||
<feOffset dx="4" dy="4" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset>
|
||||
<feGaussianBlur stdDeviation="2" in="shadowOffsetOuter1" result="shadowBlurOuter1"></feGaussianBlur>
|
||||
<feColorMatrix values="0 0 0 0 0.925490196 0 0 0 0 0.556862745 0 0 0 0 0.0980392157 0 0 0 1 0" type="matrix" in="shadowBlurOuter1"></feColorMatrix>
|
||||
</filter>
|
||||
<linearGradient x1="38.069149%" y1="33.5367903%" x2="38.069149%" y2="98.1621294%" id="linearGradient-21">
|
||||
<stop stop-color="#FE606D" offset="0%"></stop>
|
||||
<stop stop-color="#FFA2A5" offset="100%"></stop>
|
||||
</linearGradient>
|
||||
<linearGradient x1="60.0817844%" y1="28.2456942%" x2="38.943371%" y2="75.9265148%" id="linearGradient-22">
|
||||
<stop stop-color="#FEDB63" offset="0%"></stop>
|
||||
<stop stop-color="#FEDD73" offset="100%"></stop>
|
||||
</linearGradient>
|
||||
<polygon id="path-23" points="139.297941 70.1779313 248 120.532936 229.699968 185.722682 124 144.005227"></polygon>
|
||||
<filter x="-9.7%" y="-10.4%" width="112.9%" height="113.8%" filterUnits="objectBoundingBox" id="filter-24">
|
||||
<feOffset dx="-4" dy="-4" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset>
|
||||
<feGaussianBlur stdDeviation="2" in="shadowOffsetOuter1" result="shadowBlurOuter1"></feGaussianBlur>
|
||||
<feColorMatrix values="0 0 0 0 0.99518353 0 0 0 0 0.657959601 0 0 0 0 0.222035984 0 0 0 0.663358248 0" type="matrix" in="shadowBlurOuter1"></feColorMatrix>
|
||||
</filter>
|
||||
<linearGradient x1="1.3884147%" y1="42.2427784%" x2="97.6287521%" y2="58.3575504%" id="linearGradient-25">
|
||||
<stop stop-color="#FBDF84" offset="0%"></stop>
|
||||
<stop stop-color="#FEF6DF" offset="20.1427895%"></stop>
|
||||
<stop stop-color="#FFF8E2" offset="75.0762962%"></stop>
|
||||
<stop stop-color="#FBDF84" offset="100%"></stop>
|
||||
</linearGradient>
|
||||
<linearGradient x1="0%" y1="57.7627211%" x2="100%" y2="42.7948807%" id="linearGradient-26">
|
||||
<stop stop-color="#FDDD72" offset="0%"></stop>
|
||||
<stop stop-color="#FEF6DF" offset="20.1427895%"></stop>
|
||||
<stop stop-color="#FFF8E2" offset="75.0762962%"></stop>
|
||||
<stop stop-color="#FEDD71" offset="100%"></stop>
|
||||
</linearGradient>
|
||||
</defs>
|
||||
<g id="APPS_安卓容器_bonund256pt" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
||||
<g id="编组-3备份-3" filter="url(#filter-1)" transform="translate(4.000000, 4.000000)">
|
||||
<polygon id="路径-4" fill="#9F6B00" points="22.4854175 71.1352831 124 39.1781202 124 127.971838 42.4959276 162.72722"></polygon>
|
||||
<polygon id="路径-4" fill="#A16B00" transform="translate(176.849984, 103.805249) scale(-1, 1) translate(-176.849984, -103.805249) " points="124 70.2467832 229.699968 39.246972 229.699968 126.857126 143.556296 168.36355"></polygon>
|
||||
<g id="椭圆形">
|
||||
<use fill="url(#linearGradient-2)" fill-rule="evenodd" xlink:href="#path-3"></use>
|
||||
<use fill="black" fill-opacity="1" filter="url(#filter-4)" xlink:href="#path-3"></use>
|
||||
</g>
|
||||
<g id="椭圆形备份">
|
||||
<use fill="url(#linearGradient-5)" fill-rule="evenodd" xlink:href="#path-6"></use>
|
||||
<use fill="black" fill-opacity="1" filter="url(#filter-7)" xlink:href="#path-6"></use>
|
||||
</g>
|
||||
<g id="编组-2" transform="translate(125.653236, 69.872713) rotate(-9.000000) translate(-125.653236, -69.872713) translate(72.939312, 36.054737)"></g>
|
||||
<g id="形状结合备份-3">
|
||||
<use fill="black" fill-opacity="1" filter="url(#filter-10)" xlink:href="#path-9"></use>
|
||||
<use fill="url(#linearGradient-8)" fill-rule="evenodd" xlink:href="#path-9"></use>
|
||||
</g>
|
||||
<g id="路径">
|
||||
<use fill="#5B8C06" fill-rule="evenodd" xlink:href="#path-11"></use>
|
||||
<use fill="black" fill-opacity="1" filter="url(#filter-12)" xlink:href="#path-11"></use>
|
||||
</g>
|
||||
<g id="路径备份">
|
||||
<use fill="#5B8C06" fill-rule="evenodd" xlink:href="#path-13"></use>
|
||||
<use fill="black" fill-opacity="1" filter="url(#filter-14)" xlink:href="#path-13"></use>
|
||||
</g>
|
||||
<polygon id="路径-4备份" fill="url(#linearGradient-15)" transform="translate(71.995299, 162.885973) scale(-1, 1) translate(-71.995299, -162.885973) " points="20.4301769 118.218419 124 77.7719458 124 192.941695 19.9905981 248"></polygon>
|
||||
<line x1="123.560421" y1="245.912586" x2="124" y2="114.029217" id="路径-7备份" stroke="url(#linearGradient-16)" stroke-width="2.6125" stroke-linecap="round"></line>
|
||||
<polygon id="路径-4备份" fill="url(#linearGradient-17)" points="124 114.029217 231.198465 75.4450395 231.198465 193.553624 124 248"></polygon>
|
||||
<g id="路径-11">
|
||||
<use fill="black" fill-opacity="1" filter="url(#filter-20)" xlink:href="#path-19"></use>
|
||||
<use fill="url(#linearGradient-18)" fill-rule="evenodd" xlink:href="#path-19"></use>
|
||||
</g>
|
||||
<polygon id="路径-3" fill="url(#linearGradient-21)" points="177.791264 92.5327965 178.598476 220.244869 195.622586 211.671682 196.169593 85.4467628"></polygon>
|
||||
<g id="路径-11备份" transform="translate(186.000000, 127.950307) scale(1, -1) translate(-186.000000, -127.950307) ">
|
||||
<use fill="black" fill-opacity="1" filter="url(#filter-24)" xlink:href="#path-23"></use>
|
||||
<use fill="url(#linearGradient-22)" fill-rule="evenodd" xlink:href="#path-23"></use>
|
||||
</g>
|
||||
<path d="M34.8824439,168.349874 L62.2463189,168.831259 C63.6537673,168.856018 64.7885425,169.99145 64.8124889,171.398912 L64.8191082,171.787962 C64.843653,173.230597 63.6940637,174.419981 62.2514286,174.444526 C62.2212993,174.445039 62.1911633,174.44503 62.1610343,174.4445 L34.7971594,173.963116 C33.389711,173.938356 32.2549357,172.802925 32.2309893,171.395463 L32.2243701,171.006413 C32.1998253,169.563778 33.3494146,168.374393 34.7920497,168.349848 C34.822179,168.349336 34.8523149,168.349344 34.8824439,168.349874 Z" id="矩形" fill="#F4E5C3" transform="translate(48.521739, 171.397187) rotate(23.000000) translate(-48.521739, -171.397187) "></path>
|
||||
<path d="M35.6935587,176.218338 L46.7821941,176.425811 C48.1873409,176.452102 49.3199011,177.585307 49.3453919,178.990469 L49.3523188,179.372312 C49.3784889,180.814919 48.2302402,182.005597 46.7876337,182.031767 C46.7555504,182.032349 46.7234591,182.03234 46.6913762,182.03174 L35.6027408,181.824267 C34.197594,181.797976 33.0650338,180.664771 33.039543,179.259609 L33.0326161,178.877766 C33.006446,177.435159 34.1546947,176.24448 35.5973013,176.21831 C35.6293845,176.217728 35.6614758,176.217738 35.6935587,176.218338 Z" id="矩形备份" fill="#F3DA7B" transform="translate(41.192467, 179.125039) rotate(25.000000) translate(-41.192467, -179.125039) "></path>
|
||||
<path d="M22.4854175,71.9306494 L123.120842,113.074543 L22.4854175,71.9306494 Z" id="路径-7" stroke="url(#linearGradient-25)" stroke-width="2.6125" stroke-linecap="round"></path>
|
||||
<line x1="125.563916" y1="112.565642" x2="228.738156" y2="71.9125793" id="路径-7备份-2" stroke="url(#linearGradient-26)" stroke-width="2.6125" stroke-linecap="round"></line>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
After Width: | Height: | Size: 15 KiB |
|
@ -0,0 +1 @@
|
|||
/opt/apps/uengine-runner/uengine-runner-launch.sh
|
|
@ -3,7 +3,7 @@ Categories=System;
|
|||
Comment=UEngine App List
|
||||
Comment[zh]=UEngine 程序菜单
|
||||
Encoding=UTF-8
|
||||
Exec=/usr/bin/uengine-launch.sh --package=org.anbox.appmgr --component=org.anbox.appmgr.AppViewActivity
|
||||
Exec=/usr/bin/uengine launch --package=org.anbox.appmgr --component=org.anbox.appmgr.AppViewActivity
|
||||
Icon=/opt/apps/uengine-runner/icon.png
|
||||
MimeType=
|
||||
Name=UEngine App List
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
Categories=System;
|
||||
Comment=UEngine 系统设置
|
||||
Encoding=UTF-8
|
||||
Exec=/usr/bin/uengine-launch.sh --action=android.intent.action.MAIN --package=com.android.settings --component=com.android.settings.Settings
|
||||
Exec=/usr/bin/uengine launch --action=android.intent.action.MAIN --package=com.android.settings --component=com.android.settings.Settings
|
||||
Icon=/opt/apps/uengine-runner/icon.png
|
||||
MimeType=
|
||||
Name=UEngine System Control Panel
|
||||
|
|
|
@ -5,10 +5,10 @@ Categories=System;
|
|||
Terminal=false
|
||||
Exec=/usr/bin/uengine-runner -i %F
|
||||
Icon=/opt/apps/uengine-runner/icon.png
|
||||
Name=Install APK(UEngine runner)
|
||||
Comment=Install APK(UEngine runner)
|
||||
Comment[zh]=安装 APK(UEngine 运行器)
|
||||
Name[zh]=安装 APK(UEngine 运行器)
|
||||
Name=Install Or Uninstall APK(UEngine runner)
|
||||
Comment=Install Or Uninstall APK(UEngine runner)
|
||||
Comment[zh]=安装/卸载 APK(UEngine 运行器)
|
||||
Name[zh]=安装/卸载 APK(UEngine 运行器)
|
||||
StartupNotify=true
|
||||
Hidden=false
|
||||
NoDisplay=true
|
||||
|
|
|
@ -1,15 +0,0 @@
|
|||
[Desktop Entry]
|
||||
Type=Application
|
||||
Encoding=UTF-8
|
||||
Categories=System;
|
||||
Terminal=false
|
||||
Exec=/usr/bin/uengine-runner -u %F
|
||||
Icon=/opt/apps/uengine-runner/icon.png
|
||||
Name=Uninstall APK(UEngine runner)
|
||||
Comment=Uninstall APK(UEngine runner)
|
||||
Comment[zh]=卸载 APK(UEngine 运行器)
|
||||
Name[zh]=卸载 APK(UEngine 运行器)
|
||||
StartupNotify=true
|
||||
Hidden=false
|
||||
NoDisplay=true
|
||||
MimeType=application/vnd.android.package-archive
|
|
@ -8,7 +8,7 @@
|
|||
<action id="com.deepin.pkexec.uengine-bridge">
|
||||
<message>Authentication is required to Setting UEngine Internet Bridge</message>
|
||||
<message xml:lang="zh_CN">设置 UEngine 桥接需要输入密码</message>
|
||||
<icon_name>kbox</icon_name>
|
||||
<icon_name>/usr/share/uengine/ui/uengine_logo.svg</icon_name>
|
||||
<defaults>
|
||||
<allow_any>no</allow_any>
|
||||
<allow_inactive>no</allow_inactive>
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
<action id="com.deepin.pkexec.uengine-session-launch-helper">
|
||||
<message>Authentication is required to Change UEngine</message>
|
||||
<message xml:lang="zh_CN">设置 UEngine 需要输入密码</message>
|
||||
<icon_name>kbox</icon_name>
|
||||
<icon_name>/usr/share/uengine/ui/uengine_logo.svg</icon_name>
|
||||
<defaults>
|
||||
<allow_any>no</allow_any>
|
||||
<allow_inactive>no</allow_inactive>
|
||||
|
|
Binary file not shown.
|
@ -3,7 +3,7 @@
|
|||
"https://gitee.com/gfdgd-xi/uengine-runner",
|
||||
"https://github.com/gfdgd-xi/uengine-runner"
|
||||
],
|
||||
"Version": "1.5.0",
|
||||
"Version": "1.5.1",
|
||||
"System": "Linux(deepin/UOS)",
|
||||
"Tips": [
|
||||
"更多可见:https://gitee.com/gfdgd-xi/uengine-runner/wikis",
|
||||
|
|
31
main.py
31
main.py
|
@ -3,7 +3,7 @@
|
|||
###########################################################################################
|
||||
# 作者:gfdgd xi<3025613752@qq.com>
|
||||
# 版本:1.4.3
|
||||
# 更新时间:2021年9月20日(中秋了)
|
||||
# 更新时间:2021年10月03日(国庆了)
|
||||
# 感谢:anbox、deepin 和 UOS
|
||||
# 基于 Python3 的 tkinter 构建
|
||||
# 更新:gfdgd xi<3025613752@qq.com>、actionchen<917981399@qq.com>
|
||||
|
@ -156,13 +156,19 @@ def GetCommandReturn(cmd: "命令")->"运行系统命令并获取返回值":
|
|||
# cmd 是要获取输出的命令
|
||||
return subprocess.getoutput(cmd)
|
||||
|
||||
def GetSystemVersion():
|
||||
systemInformation = readtxt("/etc/os-release")
|
||||
for systemInformation in systemInformation.split('\n'):
|
||||
if "PRETTY_NAME=" in systemInformation:
|
||||
return systemInformation.replace("PRETTY_NAME=", "").replace('"', '')
|
||||
|
||||
# 打开所有窗口事件
|
||||
def Button5Click():
|
||||
threading.Thread(target=OpenUengineProgramList).start()
|
||||
|
||||
# 打开“uengine 所有程序列表”
|
||||
def OpenUengineProgramList()->"打开“uengine 所有程序列表”":
|
||||
os.system("/usr/bin/uengine-launch.sh --package=org.anbox.appmgr --component=org.anbox.appmgr.AppViewActivity")
|
||||
os.system("uengine launch --package=org.anbox.appmgr --component=org.anbox.appmgr.AppViewActivity")
|
||||
|
||||
# 显示“关于这个程序”窗口
|
||||
#def about_this_program()->"显示“关于这个程序”窗口":
|
||||
|
@ -329,7 +335,7 @@ def BuildUengineDesktop(packageName: "软件包名", activityName: "activity", s
|
|||
things = '''[Desktop Entry]
|
||||
Categories=app;
|
||||
Encoding=UTF-8
|
||||
Exec=/usr/bin/uengine-launch.sh --action=android.intent.action.MAIN --package={} --component={}
|
||||
Exec=uengine launch --action=android.intent.action.MAIN --package={} --component={}
|
||||
GenericName={}
|
||||
Icon={}
|
||||
MimeType=
|
||||
|
@ -550,7 +556,7 @@ def AdbCPUAndRAWShowInTer():
|
|||
threading.Thread(target=os.system, args=["deepin-terminal -w ~ -e 'adb -s 192.168.250.2:5555 shell top'"]).start()
|
||||
|
||||
def UengineSettingShow():
|
||||
threading.Thread(target=os.system, args=["/usr/bin/uengine-launch.sh --action=android.intent.action.MAIN --package=com.android.settings --component=com.android.settings.Settings"]).start()
|
||||
threading.Thread(target=os.system, args=["/usr/bin/uengine launch --action=android.intent.action.MAIN --package=com.android.settings --component=com.android.settings.Settings"]).start()
|
||||
|
||||
# 杀死 adb 进程
|
||||
def AdbKillAdbProgress():
|
||||
|
@ -648,7 +654,11 @@ class ApkInformation():
|
|||
# 获取图标
|
||||
SaveApkIcon(path, "/tmp/uengine-runner-android-app-icon.png")
|
||||
# 读取图标
|
||||
ttk.Label(tab1, image=ImageTk.PhotoImage(Image.open("/tmp/uengine-runner-android-app-icon.png").resize((256, 256), Image.ANTIALIAS))).pack()
|
||||
image = Image.open("/tmp/uengine-runner-android-app-icon.png")
|
||||
if image.size[0] + image.size[1] <= 512:
|
||||
ttk.Label(tab1, image=ImageTk.PhotoImage(image)).pack()
|
||||
else:
|
||||
ttk.Label(tab1, image=ImageTk.PhotoImage(image.resize((256, 256), Image.ANTIALIAS))).pack()
|
||||
info = '''包名:{}
|
||||
中文名:{}
|
||||
Activity:{}
|
||||
|
@ -879,7 +889,7 @@ class AddNewUengineDesktopLink():
|
|||
|
||||
# 打开测试
|
||||
def TestOpen():
|
||||
threading.Thread(target=os.system, args=["/usr/bin/uengine-launch.sh --package={} --component={}".format(packageName.get(), activityName.get())]).start()
|
||||
threading.Thread(target=os.system, args=["/usr/bin/uengine launch --package={} --component={}".format(packageName.get(), activityName.get())]).start()
|
||||
AddNewUengineDesktopLink.SaveHistory()
|
||||
|
||||
# 浏览文件
|
||||
|
@ -888,7 +898,7 @@ class AddNewUengineDesktopLink():
|
|||
if path == "" or path == ():
|
||||
return
|
||||
packageName.set(GetApkPackageName(path))
|
||||
activityName.set(GetApkActivityName(path))
|
||||
activityName.set(str(GetApkActivityName(path)))
|
||||
write_txt(get_home() + "/.config/uengine-runner/FindApkName.json", json.dumps({"path": os.path.dirname(path)})) # 写入配置文件
|
||||
|
||||
def UseProgram():
|
||||
|
@ -925,15 +935,20 @@ programUrl = information["Url"][0]
|
|||
version = information["Version"]
|
||||
goodRunSystem = information["System"]
|
||||
aaptVersion = GetCommandReturn("aapt version")
|
||||
SystemVersion = GetSystemVersion()
|
||||
about = '''介绍 :一个基于 Python3 的 tkinter 制作的 UEngine 运行器,在新版本Deepin/UOS发布后,可以在应用商店安装部分官方已适配的安卓应用,对爱好者来说,不能自己安装APK软件包始终差点意思,本程序可以为Deepin/UOS上的UEngine安卓运行环境安装自定义APK软件包,并能发送安装的APK包启动菜单到桌面或系统菜单。
|
||||
|
||||
版本 :{}
|
||||
|
||||
适用平台 :{}
|
||||
|
||||
Tk 版本 :{}
|
||||
|
||||
程序官网 :{}
|
||||
|
||||
©2021-{}'''.format(version, goodRunSystem, tk.TkVersion, programUrl, time.strftime("%Y"))
|
||||
系统版本 :{}
|
||||
|
||||
©2021-{}'''.format(version, goodRunSystem, tk.TkVersion, programUrl, SystemVersion, time.strftime("%Y"))
|
||||
tips = "\n".join(information["Tips"])
|
||||
updateThingsString = "\n".join(information["Update"])
|
||||
title = "{} {}".format(langFile[lang]["Main"]["MainWindow"]["Title"], version)
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
Package: com.gitee.uengine.runner.spark
|
||||
Source: com.gitee.uengine.runner.spark
|
||||
Version: 1.5.0
|
||||
Version: 1.5.1
|
||||
Architecture: all
|
||||
Maintainer: gfdgd xi <3025613752@qq.com>, actionchen<917981399@qq.com>
|
||||
Depends: deepin-elf-verify (>= 0.0.16.7-1), python3, python3-tk, python3-pip, aapt, adb, python3-pil, python3-setuptools, uengine, deepin-terminal, curl
|
||||
|
|
|
@ -5,13 +5,14 @@ python3 -m pip install --upgrade requests
|
|||
python3 -m pip install --upgrade pyautogui
|
||||
python3 -m pip install --upgrade keyboard
|
||||
# 建立软链接
|
||||
ln -s /opt/apps/com.gitee.uengine.runner.spark/files/uengine-runner /usr/bin/uengine-runner
|
||||
ln -s /opt/apps/com.gitee.uengine.runner.spark/files/uengine-apk-builder /usr/bin/uengine-apk-builder
|
||||
ln -s /opt/apps/com.gitee.uengine.runner.spark/files/uengine-app-uninstall /usr/bin/uengine-app-uninstall
|
||||
ln -s /opt/apps/com.gitee.uengine.runner.spark/files/uengine-app-install /usr/bin/uengine-app-install
|
||||
ln -s /opt/apps/com.gitee.uengine.runner.spark/files/uengine-clean /usr/bin/uengine-clean
|
||||
ln -s /opt/apps/com.gitee.uengine.runner.spark/files/uengine-runner-about /usr/bin/uengine-runner-about
|
||||
ln -s /opt/apps/com.gitee.uengine.runner.spark/files/uengine-keyboard /usr/bin/uengine-keyboard
|
||||
ln -s /opt/apps/com.gitee.uengine.runner.spark/files/uengine-useadb /usr/bin/uengine-useadb
|
||||
ln -s /opt/apps/com.gitee.uengine.runner.spark/files/uengine-runner /usr/bin/uengine-runner
|
||||
ln -s /opt/apps/com.gitee.uengine.runner.spark/files/uengine-apk-builder /usr/bin/uengine-apk-builder
|
||||
ln -s /opt/apps/com.gitee.uengine.runner.spark/files/uengine-app-uninstall /usr/bin/uengine-app-uninstall
|
||||
ln -s /opt/apps/com.gitee.uengine.runner.spark/files/uengine-app-install /usr/bin/uengine-app-install
|
||||
ln -s /opt/apps/com.gitee.uengine.runner.spark/files/uengine-clean /usr/bin/uengine-clean
|
||||
ln -s /opt/apps/com.gitee.uengine.runner.spark/files/uengine-runner-about /usr/bin/uengine-runner-about
|
||||
ln -s /opt/apps/com.gitee.uengine.runner.spark/files/uengine-keyboard /usr/bin/uengine-keyboard
|
||||
ln -s /opt/apps/com.gitee.uengine.runner.spark/files/uengine-useadb /usr/bin/uengine-useadb
|
||||
ln -s /opt/apps/com.gitee.uengine.runner.spark/files/uengine-runner-launch.sh /usr/bin/uengine-runner-launch.sh
|
||||
# 向服务器返回安装数加1(不显示内容且忽略错误)
|
||||
curl http://gfdgdxi.qicp.vip/uengine/Install.php -s > /dev/null | true
|
|
@ -2,7 +2,7 @@
|
|||
Categories=System;
|
||||
Comment=UEngine 程序菜单
|
||||
Encoding=UTF-8
|
||||
Exec=/usr/bin/uengine-launch.sh --package=org.anbox.appmgr --component=org.anbox.appmgr.AppViewActivity
|
||||
Exec=/usr/bin/uengine launch --package=org.anbox.appmgr --component=org.anbox.appmgr.AppViewActivity
|
||||
Icon=/opt/apps/com.gitee.uengine.runner.spark/files/icon.png
|
||||
MimeType=
|
||||
Name=UEngine App List
|
||||
|
|
|
@ -3,7 +3,7 @@ Categories=System;
|
|||
Comment=UEngine System Control Panel
|
||||
Comment[zh]=UEngine 系统设置
|
||||
Encoding=UTF-8
|
||||
Exec=/usr/bin/uengine-launch.sh --action=android.intent.action.MAIN --package=com.android.settings --component=com.android.settings.Settings
|
||||
Exec=/usr/bin/uengine launch --action=android.intent.action.MAIN --package=com.android.settings --component=com.android.settings.Settings
|
||||
Icon=/opt/apps/com.gitee.uengine.runner.spark/files/icon.png
|
||||
MimeType=
|
||||
Name=UEngine System Control Panel
|
||||
|
|
|
@ -5,10 +5,10 @@ Categories=System;
|
|||
Terminal=false
|
||||
Exec=/usr/bin/uengine-runner -i %F
|
||||
Icon=/opt/apps/com.gitee.uengine.runner.spark/files/icon.png
|
||||
Name=Install APK(uengine runner)
|
||||
Comment=Install APK(UEngine runner)
|
||||
Comment[zh]=安装 APK(UEngine 运行器)
|
||||
Name[zh]=安装 APK(UEngine 运行器)
|
||||
Name=Install Or Uninstall APK(uengine runner)
|
||||
Comment=Install Or Uninstall APK(UEngine runner)
|
||||
Comment[zh]=安装/卸载 APK(UEngine 运行器)
|
||||
Name[zh]=安装/卸载 APK(UEngine 运行器)
|
||||
StartupNotify=true
|
||||
Hidden=false
|
||||
NoDisplay=true
|
||||
|
|
|
@ -1,15 +0,0 @@
|
|||
[Desktop Entry]
|
||||
Type=Application
|
||||
Encoding=UTF-8
|
||||
Categories=System;
|
||||
Terminal=false
|
||||
Exec=/usr/bin/uengine-runner -u %F
|
||||
Icon=/opt/apps/com.gitee.uengine.runner.spark/files/icon.png
|
||||
Name=Uninstall APK(UEngine runner)
|
||||
Comment=Uninstall APK(UEngine runner)
|
||||
Comment[zh]=卸载 APK(UEngine 运行器)
|
||||
Name[zh]=卸载 APK(UEngine 运行器)
|
||||
StartupNotify=true
|
||||
Hidden=false
|
||||
NoDisplay=true
|
||||
MimeType=application/vnd.android.package-archive
|
|
@ -3,7 +3,7 @@
|
|||
"Main": {
|
||||
"MainWindow": {
|
||||
"Title": "UEngine 运行器",
|
||||
"LabApkPath": "安装 APK:",
|
||||
"LabApkPath": "安装/卸载 APK:",
|
||||
"LabUninstallPath": "卸载 Apk:",
|
||||
"BtnFindApk": "浏览",
|
||||
"BtnInstall": "安装",
|
||||
|
@ -12,6 +12,7 @@
|
|||
"BtnUninstall": "卸载",
|
||||
"Btngeticon": "保存图标",
|
||||
"BtnSaveApk": "保存Apk",
|
||||
"BtnApkInformation": "Apk 信息",
|
||||
"Menu": [
|
||||
{
|
||||
"Name": "程序",
|
||||
|
@ -125,8 +126,7 @@
|
|||
"Main": {
|
||||
"MainWindow": {
|
||||
"Title": "UEngine Runner",
|
||||
"LabApkPath": "Install Apk:",
|
||||
"LabUninstallPath": "Uninstall Apk",
|
||||
"LabApkPath": "Install Or Uninstall Apk:",
|
||||
"BtnFindApk": "Find",
|
||||
"BtnInstall": "Install",
|
||||
"BtnShowUengineApp": "Open UEngine App List",
|
||||
|
@ -134,6 +134,7 @@
|
|||
"BtnUninstall": "Uninstall",
|
||||
"Btngeticon": "Save Apk Icon",
|
||||
"BtnSaveApk": "Saving Installed App Apk",
|
||||
"BtnApkInformation": "Apk Information",
|
||||
"Menu": [
|
||||
{
|
||||
"Name": "Program",
|
||||
|
|
|
@ -2,8 +2,8 @@
|
|||
Categories=System;
|
||||
Comment=UEngine 程序菜单
|
||||
Encoding=UTF-8
|
||||
Exec=/usr/bin/uengine-launch.sh --package=org.anbox.appmgr --component=org.anbox.appmgr.AppViewActivity
|
||||
Icon=/opt/apps/com.gitee.uengine.runner.spark/files/icon.png
|
||||
Exec=/usr/bin/uengine launch --package=org.anbox.appmgr --component=org.anbox.appmgr.AppViewActivity
|
||||
Icon=/opt/apps/uengine-runner/icon.png
|
||||
MimeType=
|
||||
Name=UEngine 程序菜单
|
||||
StartupWMClass=UEngine 程序菜单
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
"https://gitee.com/gfdgd-xi/uengine-runner",
|
||||
"https://github.com/gfdgd-xi/uengine-runner"
|
||||
],
|
||||
"Version": "1.5.0",
|
||||
"Version": "1.5.1",
|
||||
"System": "Linux(deepin/UOS)",
|
||||
"Tips": [
|
||||
"更多可见:https://gitee.com/gfdgd-xi/uengine-runner/wikis",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"Package": "com.gitee.uengine.runner.spark",
|
||||
"Update": true,
|
||||
"Version": "1.5.0",
|
||||
"Version": "1.5.1",
|
||||
"Url": "https://gfdgd-xi.github.io/update-program/data/UpdateInformation.json"
|
||||
}
|
|
@ -148,7 +148,7 @@ done
|
|||
exit 0'''.format(apkPackageName)
|
||||
desktopFile = '''[Desktop Entry]
|
||||
Categories=Other;
|
||||
Exec=/usr/bin/uengine-launch.sh --action=android.intent.action.MAIN --package={} --component={}
|
||||
Exec=uengine launch --action=android.intent.action.MAIN --package={} --component={}
|
||||
Icon=/usr/share/uengine/icons/{}.png
|
||||
Terminal=false
|
||||
Type=Application
|
||||
|
@ -294,7 +294,7 @@ def BuildUengineDesktop(packageName, activityName, showName, iconPath, savePath)
|
|||
[Desktop Entry]
|
||||
Categories=app;
|
||||
Encoding=UTF-8
|
||||
Exec=/usr/bin/uengine-launch.sh --action=android.intent.action.MAIN --package={} --component={}
|
||||
Exec=/usr/bin/uengine launch.sh --action=android.intent.action.MAIN --package={} --component={}
|
||||
GenericName={}
|
||||
Icon={}
|
||||
MimeType=
|
||||
|
@ -313,16 +313,16 @@ def GetApkChineseLabel(apkFilePath):
|
|||
line = line.replace("'", "")
|
||||
return line
|
||||
|
||||
def GetApkIconInApk(apkFilePath):
|
||||
info = GetApkInformation(apkFilePath)
|
||||
for line in info.split('\n'):
|
||||
if "application:" in line:
|
||||
line = line[line.index("icon='"): -1]
|
||||
line = line.replace("icon='", "")
|
||||
if "'" in line:
|
||||
line = line[0: line.index("'")]
|
||||
return line
|
||||
return line
|
||||
#def GetApkIconInApk(apkFilePath):
|
||||
# info = GetApkInformation(apkFilePath)
|
||||
# for line in info.split('\n'):
|
||||
# if "application:" in line:
|
||||
# line = line[line.index("icon='"): -1]
|
||||
# line = line.replace("icon='", "")
|
||||
# if "'" in line:
|
||||
# line = line[0: line.index("'")]
|
||||
# return line
|
||||
# return line
|
||||
|
||||
#合并两个函数到一起
|
||||
def SaveApkIcon(apkFilePath, iconSavePath)->"获取 apk 文件的图标":
|
||||
|
|
|
@ -0,0 +1,16 @@
|
|||
[Desktop Entry]
|
||||
Categories=system;Utility;
|
||||
Encoding=UTF-8
|
||||
Exec=uengine-runner -ci %F
|
||||
GenericName=APK Install(UEngine)
|
||||
GenericName[zh_CN]=APK 安装(UEngine)
|
||||
Icon=/opt/apps/uengine-runner/icon.png
|
||||
MimeType=application/apk;
|
||||
Name=APK Install(UEngine)
|
||||
Name[zh_CN]=APK 安装(UEngine)
|
||||
NoDisplay=true
|
||||
OnlyShowIn=Unity;
|
||||
StartupNotify=false
|
||||
StartupWMClass=APK 安装(UEngine)
|
||||
Terminal=false
|
||||
Type=Application
|
|
@ -22,6 +22,8 @@ import threading
|
|||
import ttkthemes
|
||||
import webbrowser
|
||||
import subprocess
|
||||
import PIL.Image as Image
|
||||
import PIL.ImageTk as ImageTk
|
||||
import tkinter as tk
|
||||
import tkinter.ttk as ttk
|
||||
import tkinter.messagebox as messagebox
|
||||
|
@ -39,37 +41,38 @@ def UninstallProgram(package: "apk 包名")->"卸载程序":
|
|||
os.remove("{}/.local/share/applications/{}.desktop".format(get_home(), package))
|
||||
if os.path.exists("{}/{}.desktop".format(get_desktop_path(), package)):
|
||||
os.remove("{}/{}.desktop".format(get_desktop_path(), package))
|
||||
fineUninstallApkHistory.append(ComboUninstallPath.get())
|
||||
ComboUninstallPath['value'] = fineUninstallApkHistory
|
||||
write_txt(get_home() + "/.config/uengine-runner/FindUninstallApkHistory.json", str(json.dumps(ListToDictionary(fineUninstallApkHistory)))) # 将历史记录的数组转换为字典并写入
|
||||
findApkHistory.append(ComboInstallPath.get())
|
||||
ComboInstallPath['value'] = findApkHistory
|
||||
write_txt(get_home() + "/.config/uengine-runner/FindApkHistory.json", str(json.dumps(ListToDictionary(findApkHistory)))) # 将历史记录的数组转换为字典并写入
|
||||
messagebox.showinfo(message="操作执行完毕!", title="提示")
|
||||
DisabledAndEnbled(False)
|
||||
return Return
|
||||
except:
|
||||
traceback.print_exc()
|
||||
messagebox.showerror(title="错误", message=traceback.format_exc())
|
||||
DisabledAndEnbled(False)
|
||||
|
||||
# 卸载文本框的浏览按钮事件
|
||||
def BtnFindUninstallApkClk():
|
||||
path = filedialog.askopenfilename(title="选择 Apk", filetypes=[("APK 文件", "*.apk"), ("所有文件", "*.*")], initialdir=json.loads(readtxt(get_home() + "/.config/uengine-runner/FindUninstallApk.json"))["path"])
|
||||
if path != "" and path != "()":
|
||||
try:
|
||||
ComboUninstallPath.set(path)
|
||||
write_txt(get_home() + "/.config/uengine-runner/FindUninstallApk.json", json.dumps({"path": os.path.dirname(path)})) # 写入配置文件
|
||||
except:
|
||||
pass
|
||||
#def BtnFindUninstallApkClk():
|
||||
# path = filedialog.askopenfilename(title="选择 Apk", filetypes=[("APK 文件", "*.apk"), ("所有文件", "*.*")], initialdir=json.loads(readtxt(get_home() + "/.config/uengine-runner/FindUninstallApk.json"))["path"])
|
||||
# if path != "" and path != "()":
|
||||
# try:
|
||||
# ComboUninstallPath.set(path)
|
||||
# write_txt(get_home() + "/.config/uengine-runner/FindUninstallApk.json", json.dumps({"path": os.path.dirname(path)})) # 写入配置文件
|
||||
# except:
|
||||
# pass
|
||||
|
||||
# 卸载按钮事件
|
||||
def ButtonClick8():
|
||||
if ComboUninstallPath.get() is "":
|
||||
if ComboInstallPath.get() is "":
|
||||
messagebox.showerror(title="提示", message="信息没有填写完整,无法继续卸载 APK")
|
||||
return
|
||||
DisabledAndEnbled(True)
|
||||
if os.path.exists(ComboUninstallPath.get()):
|
||||
path = GetApkPackageName(ComboUninstallPath.get())
|
||||
if os.path.exists(ComboInstallPath.get()):
|
||||
path = GetApkPackageName(ComboInstallPath.get())
|
||||
else:
|
||||
path = ComboUninstallPath.get()
|
||||
UninstallProgram(path)
|
||||
messagebox.showinfo(message="操作执行完毕!", title="提示")
|
||||
DisabledAndEnbled(False)
|
||||
path = ComboInstallPath.get()
|
||||
threading.Thread(target=UninstallProgram, args=[path]).start()
|
||||
|
||||
# 浏览窗口
|
||||
# temp strs
|
||||
|
@ -136,14 +139,16 @@ def DisabledAndEnbled(choose: "启动或者禁用")->"禁用或启动所有控
|
|||
userChoose = {True: tk.DISABLED, False: tk.NORMAL}
|
||||
a = userChoose[choose]
|
||||
ComboInstallPath.configure(state=a)
|
||||
ComboUninstallPath.configure(state=a)
|
||||
#ComboUninstallPath.configure(state=a)
|
||||
BtnFindApk.configure(state=a)
|
||||
BtnInstall.configure(state=a)
|
||||
BtnShowUengineApp.configure(state=a)
|
||||
BtnUninstallApkBrowser.configure(state=a)
|
||||
#BtnUninstallApkBrowser.configure(state=a)
|
||||
BtnUninstall.configure(state=a)
|
||||
Btngeticon.configure(state=a)
|
||||
BtnSaveApk.configure(state=a)
|
||||
BtnApkInformation.configure(state=a)
|
||||
LabApkPath.configure(state=a)
|
||||
|
||||
# 需引入 subprocess
|
||||
# 运行系统命令并获取返回值
|
||||
|
@ -157,27 +162,27 @@ def Button5Click():
|
|||
|
||||
# 打开“uengine 所有程序列表”
|
||||
def OpenUengineProgramList()->"打开“uengine 所有程序列表”":
|
||||
os.system("/usr/bin/uengine-launch.sh --package=org.anbox.appmgr --component=org.anbox.appmgr.AppViewActivity")
|
||||
os.system("uengine launch --package=org.anbox.appmgr --component=org.anbox.appmgr.AppViewActivity")
|
||||
|
||||
# 显示“关于这个程序”窗口
|
||||
def about_this_program()->"显示“关于这个程序”窗口":
|
||||
global about
|
||||
global title
|
||||
global iconPath
|
||||
mess = tk.Toplevel()
|
||||
message = ttk.Frame(mess)
|
||||
mess.resizable(0, 0)
|
||||
mess.title("关于 {}".format(title))
|
||||
#mess.iconphoto(False, tk.PhotoImage(file=iconPath))
|
||||
img = ImageTk.PhotoImage(Image.open(iconPath))
|
||||
LabApkPath = ttk.Label(message, image=img)
|
||||
label2 = ttk.Label(message, text=about)
|
||||
button1 = ttk.Button(message, text="确定", command=mess.withdraw)
|
||||
LabApkPath.pack()
|
||||
label2.pack()
|
||||
button1.pack(side="bottom")
|
||||
message.pack()
|
||||
mess.mainloop()
|
||||
#def about_this_program()->"显示“关于这个程序”窗口":
|
||||
# global about
|
||||
# global title
|
||||
# global iconPath
|
||||
# mess = tk.Toplevel()
|
||||
# message = ttk.Frame(mess)
|
||||
# mess.resizable(0, 0)
|
||||
# mess.title("关于 {}".format(title))
|
||||
# #mess.iconphoto(False, tk.PhotoImage(file=iconPath))
|
||||
# img = ImageTk.PhotoImage(Image.open(iconPath))
|
||||
# LabApkPath = ttk.Label(message, image=img)
|
||||
# label2 = ttk.Label(message, text=about)
|
||||
# button1 = ttk.Button(message, text="确定", command=mess.withdraw)
|
||||
# LabApkPath.pack()
|
||||
# label2.pack()
|
||||
# button1.pack(side="bottom")
|
||||
# message.pack()
|
||||
# mess.mainloop()
|
||||
|
||||
# 显示“提示”窗口
|
||||
def helps()->"显示“提示”窗口":
|
||||
|
@ -324,7 +329,7 @@ def BuildUengineDesktop(packageName: "软件包名", activityName: "activity", s
|
|||
things = '''[Desktop Entry]
|
||||
Categories=app;
|
||||
Encoding=UTF-8
|
||||
Exec=/usr/bin/uengine-launch.sh --action=android.intent.action.MAIN --package={} --component={}
|
||||
Exec=uengine launch --action=android.intent.action.MAIN --package={} --component={}
|
||||
GenericName={}
|
||||
Icon={}
|
||||
MimeType=
|
||||
|
@ -545,7 +550,7 @@ def AdbCPUAndRAWShowInTer():
|
|||
threading.Thread(target=os.system, args=["deepin-terminal -w ~ -e 'adb -s 192.168.250.2:5555 shell top'"]).start()
|
||||
|
||||
def UengineSettingShow():
|
||||
threading.Thread(target=os.system, args=["/usr/bin/uengine-launch.sh --action=android.intent.action.MAIN --package=com.android.settings --component=com.android.settings.Settings"]).start()
|
||||
threading.Thread(target=os.system, args=["/usr/bin/uengine launch --action=android.intent.action.MAIN --package=com.android.settings --component=com.android.settings.Settings"]).start()
|
||||
|
||||
# 杀死 adb 进程
|
||||
def AdbKillAdbProgress():
|
||||
|
@ -594,6 +599,67 @@ def AdbAndroidInstallAppList():
|
|||
subprocess.getoutput("adb -s 192.168.250.2:5555 shell pm list package -3"),
|
||||
subprocess.getoutput("adb -s 192.168.250.2:5555 shell pm list packages -f")))
|
||||
|
||||
def GetApkVersion(apkFilePath):
|
||||
info = GetApkInformation(apkFilePath)
|
||||
for line in info.split('\n'):
|
||||
if "package:" in line:
|
||||
if "compileSdkVersion='" in line:
|
||||
line = line.replace(line[line.index("compileSdkVersion='"): -1], "")
|
||||
if "platform" in line:
|
||||
line = line.replace(line[line.index("platform"): -1], "")
|
||||
line = line.replace(line[0: line.index("versionName='")], "")
|
||||
line = line.replace("versionName='", "")
|
||||
line = line.replace("'", "")
|
||||
line = line.replace(" ", "")
|
||||
return line
|
||||
|
||||
class ApkInformation():
|
||||
def ShowWindows():
|
||||
global fullInformation
|
||||
global path
|
||||
global tab1
|
||||
path = ComboInstallPath.get()
|
||||
|
||||
message = tk.Toplevel()
|
||||
|
||||
tab = ttk.Notebook(message)
|
||||
|
||||
tab1 = ttk.Frame(message)
|
||||
tab2 = ttk.Frame(message)
|
||||
|
||||
fullInformation = tk.Text(tab2)
|
||||
|
||||
tab.add(tab1, text="简化版")
|
||||
tab.add(tab2, text="完整版")
|
||||
|
||||
fullInformation.pack(expand="yes", fill="both")
|
||||
|
||||
tab.pack(expand="yes", fill="both")
|
||||
|
||||
threading.Thread(target=ApkInformation.GetInformation).start()
|
||||
|
||||
message.mainloop()
|
||||
|
||||
def GetInformation():
|
||||
# 获取详细信息
|
||||
fullInformation.configure(state=tk.NORMAL)
|
||||
fullInformation.insert("1.0", GetApkInformation(path))
|
||||
fullInformation.configure(state=tk.DISABLED)
|
||||
# 获取图标
|
||||
SaveApkIcon(path, "/tmp/uengine-runner-android-app-icon.png")
|
||||
# 读取图标
|
||||
image = Image.open("/tmp/uengine-runner-android-app-icon.png")
|
||||
if image.size[0] + image.size[1] <= 512:
|
||||
ttk.Label(tab1, image=ImageTk.PhotoImage(image)).pack()
|
||||
else:
|
||||
ttk.Label(tab1, image=ImageTk.PhotoImage(image.resize((256, 256), Image.ANTIALIAS))).pack()
|
||||
info = '''包名:{}
|
||||
中文名:{}
|
||||
Activity:{}
|
||||
版本:{}'''.format(GetApkPackageName(path), GetApkChineseLabel(path), GetApkActivityName(path), GetApkVersion(path))
|
||||
ttk.Label(tab1, text=info).pack()
|
||||
|
||||
|
||||
class AdbChangeUengineDisplaySize():
|
||||
def ShowWindows():
|
||||
global displayX
|
||||
|
@ -817,7 +883,7 @@ class AddNewUengineDesktopLink():
|
|||
|
||||
# 打开测试
|
||||
def TestOpen():
|
||||
threading.Thread(target=os.system, args=["/usr/bin/uengine-launch.sh --package={} --component={}".format(packageName.get(), activityName.get())]).start()
|
||||
threading.Thread(target=os.system, args=["/usr/bin/uengine launch --package={} --component={}".format(packageName.get(), activityName.get())]).start()
|
||||
AddNewUengineDesktopLink.SaveHistory()
|
||||
|
||||
# 浏览文件
|
||||
|
@ -826,7 +892,7 @@ class AddNewUengineDesktopLink():
|
|||
if path == "" or path == ():
|
||||
return
|
||||
packageName.set(GetApkPackageName(path))
|
||||
activityName.set(GetApkActivityName(path))
|
||||
activityName.set(str(GetApkActivityName(path)))
|
||||
write_txt(get_home() + "/.config/uengine-runner/FindApkName.json", json.dumps({"path": os.path.dirname(path)})) # 写入配置文件
|
||||
|
||||
def UseProgram():
|
||||
|
@ -1036,18 +1102,19 @@ win.geometry(""+"+{:.0f}+{:.0f}".format(x, y))
|
|||
|
||||
# 创建控件
|
||||
FrmInstall = ttk.Frame(window)
|
||||
FrmUninstall = 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"])
|
||||
#LabUninstallPath = ttk.Label(window, text=langFile[lang]["Main"]["MainWindow"]["LabUninstallPath"])
|
||||
ComboInstallPath = ttk.Combobox(window, width=50)
|
||||
ComboUninstallPath = 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(FrmUninstall, text=langFile[lang]["Main"]["MainWindow"]["BtnUninstall"], command=ButtonClick8)
|
||||
#BtnUninstallApkBrowser = ttk.Button(FrmUninstall, text=langFile[lang]["Main"]["MainWindow"]["BtnUninstallApkBrowser"], command=BtnFindUninstallApkClk)
|
||||
BtnUninstall = ttk.Button(FrmInstall, text=langFile[lang]["Main"]["MainWindow"]["BtnUninstall"], command=ButtonClick8)
|
||||
Btngeticon = ttk.Button(FrmInstall, text=langFile[lang]["Main"]["MainWindow"]["Btngeticon"], command=SaveIconToOtherPath)
|
||||
BtnSaveApk = ttk.Button(FrmInstall, text=langFile[lang]["Main"]["MainWindow"]["BtnSaveApk"], command=SaveInstallUengineApp)
|
||||
BtnApkInformation = ttk.Button(FrmInstall, text=langFile[lang]["Main"]["MainWindow"]["BtnApkInformation"], command=ApkInformation.ShowWindows)
|
||||
# 设置菜单栏
|
||||
menu = tk.Menu(window, background="white")
|
||||
|
||||
|
@ -1103,8 +1170,8 @@ help.add_command(label=langFile[lang]["Main"]["MainWindow"]["Menu"][3]["Menu"][0
|
|||
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)
|
||||
uengineService.add_command(label=langFile[lang]["Main"]["MainWindow"]["Menu"][2]["Menu"][2]["Menu"][0], command=StopUengine)
|
||||
uengineService.add_command(label=langFile[lang]["Main"]["MainWindow"]["Menu"][2]["Menu"][2]["Menu"][0], command=UengineRestart)
|
||||
uengineService.add_command(label=langFile[lang]["Main"]["MainWindow"]["Menu"][2]["Menu"][2]["Menu"][1], command=StopUengine)
|
||||
uengineService.add_command(label=langFile[lang]["Main"]["MainWindow"]["Menu"][2]["Menu"][2]["Menu"][2], command=UengineRestart)
|
||||
|
||||
uengineInternet.add_command(label=langFile[lang]["Main"]["MainWindow"]["Menu"][2]["Menu"][3]["Menu"][0], command=UengineBridgeStart)
|
||||
uengineInternet.add_command(label=langFile[lang]["Main"]["MainWindow"]["Menu"][2]["Menu"][3]["Menu"][1], command=UengineBridgeStop)
|
||||
|
@ -1141,14 +1208,15 @@ uengineUseAdb.configure(activebackground="dodgerblue")
|
|||
uengineData.configure(activebackground="dodgerblue")
|
||||
|
||||
# 设置控件
|
||||
ComboUninstallPath['value'] = fineUninstallApkHistory
|
||||
#ComboUninstallPath['value'] = fineUninstallApkHistory
|
||||
ComboInstallPath['value'] = findApkHistory
|
||||
try:
|
||||
if sys.argv[1] == "-i":
|
||||
ComboInstallPath.set(sys.argv[2])
|
||||
print("Install Path: " + sys.argv[2])
|
||||
elif sys.argv[1] == "-u":
|
||||
ComboUninstallPath.set(sys.argv[2])
|
||||
#ComboUninstallPath.set(sys.argv[2])
|
||||
ComboInstallPath.set(sys.argv[2])
|
||||
print("Unstall Path: " + sys.argv[2])
|
||||
else:
|
||||
print("Command Format Error")
|
||||
|
@ -1159,25 +1227,26 @@ win.config(menu=menu) # 显示菜单栏
|
|||
|
||||
|
||||
|
||||
LabApkPath.grid(row=1, column=0,sticky= tk.W,padx=3)
|
||||
ComboInstallPath.grid(row=2, column=0,padx=3)
|
||||
LabApkPath.grid(row=0, column=0,sticky= tk.W,padx=3)
|
||||
ComboInstallPath.grid(row=1, column=0,padx=3)
|
||||
|
||||
|
||||
FrmInstall.grid(row=2, column=1,padx=3, rowspan=2)
|
||||
FrmInstall.grid(row=0, column=1,padx=3, rowspan=3)
|
||||
BtnFindApk.grid(row=0, column=0)
|
||||
BtnInstall.grid(row=0, column=1)
|
||||
|
||||
LabUninstallPath.grid(row=4, column=0,sticky= tk.W,padx=3)
|
||||
ComboUninstallPath.grid(row=5, column=0,padx=3)
|
||||
#LabUninstallPath.grid(row=4, column=0,sticky= tk.W,padx=3)
|
||||
#ComboUninstallPath.grid(row=5, column=0,padx=3)
|
||||
|
||||
FrmUninstall.grid(row=5, column=1,padx=3)
|
||||
BtnUninstallApkBrowser.grid(row=0, column=0)
|
||||
BtnUninstall.grid(row=0, column=1)
|
||||
#FrmUninstall.grid(row=5, column=1,padx=3)
|
||||
#BtnUninstallApkBrowser.grid(row=0, column=0)
|
||||
BtnUninstall.grid(row=1, column=0)
|
||||
|
||||
BtnShowUengineApp.grid(row=6, column=0,sticky= tk.W,padx=3,pady=2)
|
||||
BtnShowUengineApp.grid(row=2, column=0,sticky= tk.W,padx=3,pady=2)
|
||||
|
||||
Btngeticon.grid(row=1, column=0,sticky= tk.W,padx=3,pady=2)
|
||||
BtnSaveApk.grid(row=1, column=1,sticky= tk.W,padx=3,pady=2)
|
||||
BtnApkInformation.grid(row=2, column=1,sticky= tk.W,padx=3,pady=2)
|
||||
Btngeticon.grid(row=1, column=1,sticky= tk.W,padx=3,pady=2)
|
||||
BtnSaveApk.grid(row=2, column=0,sticky= tk.W,padx=3,pady=2)
|
||||
|
||||
window.pack()
|
||||
|
||||
|
|
|
@ -0,0 +1,24 @@
|
|||
#!/bin/bash
|
||||
|
||||
# 忽略社区版检测
|
||||
|
||||
pkgRunCnt=`ps -ef |grep "uengine launch" |grep -v grep |grep "$pkg" |wc -l`
|
||||
if [ $pkgRunCnt -ge 1 ]; then
|
||||
#防止短时间内多次打开同一应用,如果应用正在启动中,此次忽略
|
||||
exit 0
|
||||
fi
|
||||
|
||||
#等Session服务启动完全
|
||||
wscont=0
|
||||
isReady=`busctl --user get-property org.anbox /org/anbox org.anbox.ApplicationManager Ready`
|
||||
if [ "$isReady" != "b true" ] ;then
|
||||
sleep 2
|
||||
fi
|
||||
while [ "$isReady" = "b false" -a $wscont -lt 10 ]
|
||||
do
|
||||
sleep 1
|
||||
isReady=`busctl --user get-property org.anbox /org/anbox org.anbox.ApplicationManager Ready`
|
||||
let wscont++
|
||||
done
|
||||
|
||||
uengine launch $*
|
|
@ -0,0 +1,153 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<svg width="256px" height="256px" viewBox="0 0 256 256" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<title>APPS_安卓容器_bonund256pt</title>
|
||||
<defs>
|
||||
<filter x="-12.5%" y="-12.5%" width="125.0%" height="125.0%" filterUnits="objectBoundingBox" id="filter-1">
|
||||
<feOffset dx="0" dy="4" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset>
|
||||
<feGaussianBlur stdDeviation="6" in="shadowOffsetOuter1" result="shadowBlurOuter1"></feGaussianBlur>
|
||||
<feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.197982681 0" type="matrix" in="shadowBlurOuter1" result="shadowMatrixOuter1"></feColorMatrix>
|
||||
<feMerge>
|
||||
<feMergeNode in="shadowMatrixOuter1"></feMergeNode>
|
||||
<feMergeNode in="SourceGraphic"></feMergeNode>
|
||||
</feMerge>
|
||||
</filter>
|
||||
<linearGradient x1="58.6019309%" y1="88.1513471%" x2="68.1110327%" y2="11.6551043%" id="linearGradient-2">
|
||||
<stop stop-color="#02DA67" offset="0%"></stop>
|
||||
<stop stop-color="#8DF6D6" offset="100%"></stop>
|
||||
</linearGradient>
|
||||
<path d="M178.25009,95.8175981 C203.764636,95.8175981 224.183124,74.193939 224.183124,47.5198036 C224.183124,20.8456682 203.116891,-0.0263983843 178.25009,0.00161822517 C153.698836,-0.149640967 132.579574,20.8119281 132.579574,47.4860635 C132.579574,74.1601989 152.735544,95.8175981 178.25009,95.8175981 Z" id="path-3"></path>
|
||||
<filter x="-8.7%" y="-8.3%" width="117.5%" height="116.7%" filterUnits="objectBoundingBox" id="filter-4">
|
||||
<feGaussianBlur stdDeviation="6" in="SourceAlpha" result="shadowBlurInner1"></feGaussianBlur>
|
||||
<feOffset dx="0" dy="4" in="shadowBlurInner1" result="shadowOffsetInner1"></feOffset>
|
||||
<feComposite in="shadowOffsetInner1" in2="SourceAlpha" operator="arithmetic" k2="-1" k3="1" result="shadowInnerInner1"></feComposite>
|
||||
<feColorMatrix values="0 0 0 0 0.503096532 0 0 0 0 0.974696063 0 0 0 0 0.762013922 0 0 0 1 0" type="matrix" in="shadowInnerInner1"></feColorMatrix>
|
||||
</filter>
|
||||
<linearGradient x1="63.5172866%" y1="83.8734541%" x2="28.478366%" y2="6.65286784%" id="linearGradient-5">
|
||||
<stop stop-color="#4796FE" offset="0%"></stop>
|
||||
<stop stop-color="#44D9FF" offset="100%"></stop>
|
||||
</linearGradient>
|
||||
<ellipse id="path-6" cx="75.4782609" cy="64.0914576" rx="40.4347826" ry="42.2724698"></ellipse>
|
||||
<filter x="-7.4%" y="-7.1%" width="114.8%" height="114.2%" filterUnits="objectBoundingBox" id="filter-7">
|
||||
<feGaussianBlur stdDeviation="6" in="SourceAlpha" result="shadowBlurInner1"></feGaussianBlur>
|
||||
<feOffset dx="0" dy="0" in="shadowBlurInner1" result="shadowOffsetInner1"></feOffset>
|
||||
<feComposite in="shadowOffsetInner1" in2="SourceAlpha" operator="arithmetic" k2="-1" k3="1" result="shadowInnerInner1"></feComposite>
|
||||
<feColorMatrix values="0 0 0 0 0.658848459 0 0 0 0 0.76869955 0 0 0 0 0.994393611 0 0 0 1 0" type="matrix" in="shadowInnerInner1"></feColorMatrix>
|
||||
</filter>
|
||||
<linearGradient x1="50%" y1="31.0023874%" x2="50%" y2="95.9937487%" id="linearGradient-8">
|
||||
<stop stop-color="#D0FF52" offset="0%"></stop>
|
||||
<stop stop-color="#75EF07" offset="100%"></stop>
|
||||
</linearGradient>
|
||||
<path d="M173.78741,23.8356193 C174.592173,22.5497756 176.286945,22.1597832 177.572789,22.9645469 C178.97904,23.8446691 179.464805,25.6626835 178.684957,27.1269214 L178.684957,27.1269214 L167.998548,47.191447 C186.416883,60.0725236 198.886549,83.3414384 199.457775,110.056847 L199.478261,111.975079 C172.083327,116.233637 151.498347,118.362915 137.72332,118.362915 C122.744723,118.362915 100.199269,116.233637 70.0869565,111.975079 C70.0869565,84.4580366 82.7086518,60.380247 101.56625,47.1917402 L90.8802608,27.1269214 C90.1004123,25.6626835 90.5861775,23.8446691 91.9924283,22.9645469 C93.278272,22.1597832 94.9730442,22.5497756 95.7778079,23.8356193 C95.8117323,23.8898235 95.8437535,23.9451959 95.873813,24.0016352 L106.548653,44.0451766 C115.080463,39.2096532 124.660045,36.497433 134.782609,36.497433 C144.904955,36.497433 154.484343,39.2095367 163.016015,44.0448652 L173.691404,24.0016352 C173.721464,23.9451959 173.753485,23.8898235 173.78741,23.8356193 Z" id="path-9"></path>
|
||||
<filter x="-32.5%" y="-31.3%" width="164.9%" height="187.7%" filterUnits="objectBoundingBox" id="filter-10">
|
||||
<feOffset dx="0" dy="12" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset>
|
||||
<feGaussianBlur stdDeviation="12" in="shadowOffsetOuter1" result="shadowBlurOuter1"></feGaussianBlur>
|
||||
<feColorMatrix values="0 0 0 0 0.565756196 0 0 0 0 0.617813774 0 0 0 0 0 0 0 0 0.5 0" type="matrix" in="shadowBlurOuter1"></feColorMatrix>
|
||||
</filter>
|
||||
<path d="M108.824477,66.2818224 C104.358174,66.2818224 100.73752,70.0670283 100.73752,74.7363163 C100.73752,79.4056044 104.358174,83.1908103 108.824477,83.1908103 C113.290779,83.1908103 116.911433,79.4056044 116.911433,74.7363163 C116.911433,70.0670283 113.290779,66.2818224 108.824477,66.2818224 Z" id="path-11"></path>
|
||||
<filter x="-24.7%" y="-23.7%" width="149.5%" height="147.3%" filterUnits="objectBoundingBox" id="filter-12">
|
||||
<feGaussianBlur stdDeviation="2" in="SourceAlpha" result="shadowBlurInner1"></feGaussianBlur>
|
||||
<feOffset dx="0" dy="4" in="shadowBlurInner1" result="shadowOffsetInner1"></feOffset>
|
||||
<feComposite in="shadowOffsetInner1" in2="SourceAlpha" operator="arithmetic" k2="-1" k3="1" result="shadowInnerInner1"></feComposite>
|
||||
<feColorMatrix values="0 0 0 0 0.311563901 0 0 0 0 0.401805933 0 0 0 0 0.0617868498 0 0 0 1 0" type="matrix" in="shadowInnerInner1"></feColorMatrix>
|
||||
</filter>
|
||||
<path d="M162.73752,66.2818224 C158.271217,66.2818224 154.650564,70.0670283 154.650564,74.7363163 C154.650564,79.4056044 158.271217,83.1908103 162.73752,83.1908103 C167.203823,83.1908103 170.824477,79.4056044 170.824477,74.7363163 C170.824477,70.0670283 167.203823,66.2818224 162.73752,66.2818224 Z" id="path-13"></path>
|
||||
<filter x="-24.7%" y="-23.7%" width="149.5%" height="147.3%" filterUnits="objectBoundingBox" id="filter-14">
|
||||
<feGaussianBlur stdDeviation="2" in="SourceAlpha" result="shadowBlurInner1"></feGaussianBlur>
|
||||
<feOffset dx="0" dy="4" in="shadowBlurInner1" result="shadowOffsetInner1"></feOffset>
|
||||
<feComposite in="shadowOffsetInner1" in2="SourceAlpha" operator="arithmetic" k2="-1" k3="1" result="shadowInnerInner1"></feComposite>
|
||||
<feColorMatrix values="0 0 0 0 0.311563901 0 0 0 0 0.401805933 0 0 0 0 0.0617868498 0 0 0 1 0" type="matrix" in="shadowInnerInner1"></feColorMatrix>
|
||||
</filter>
|
||||
<linearGradient x1="50%" y1="15.1929094%" x2="43.5077077%" y2="91.2786664%" id="linearGradient-15">
|
||||
<stop stop-color="#F59A36" offset="0%"></stop>
|
||||
<stop stop-color="#FCCB6D" offset="100%"></stop>
|
||||
</linearGradient>
|
||||
<linearGradient x1="49.9821781%" y1="101.237754%" x2="49.9425633%" y2="5.03998902%" id="linearGradient-16">
|
||||
<stop stop-color="#FFC87C" offset="0%"></stop>
|
||||
<stop stop-color="#FD7A49" offset="100%"></stop>
|
||||
</linearGradient>
|
||||
<linearGradient x1="42.3143683%" y1="18.131572%" x2="69.2971087%" y2="74.6901955%" id="linearGradient-17">
|
||||
<stop stop-color="#FFE066" offset="0%"></stop>
|
||||
<stop stop-color="#FED862" offset="67.0339918%"></stop>
|
||||
<stop stop-color="#FFC565" offset="100%"></stop>
|
||||
</linearGradient>
|
||||
<linearGradient x1="37.3123913%" y1="70.4187755%" x2="57.7534931%" y2="25.1271391%" id="linearGradient-18">
|
||||
<stop stop-color="#FBC758" offset="0%"></stop>
|
||||
<stop stop-color="#FCE188" offset="100%"></stop>
|
||||
</linearGradient>
|
||||
<polygon id="path-19" points="22.4854175 71.1352831 124 111.895386 108.52496 183.11999 -1.44464996e-12 131.484995"></polygon>
|
||||
<filter x="-3.2%" y="-3.6%" width="112.9%" height="114.3%" filterUnits="objectBoundingBox" id="filter-20">
|
||||
<feOffset dx="4" dy="4" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset>
|
||||
<feGaussianBlur stdDeviation="2" in="shadowOffsetOuter1" result="shadowBlurOuter1"></feGaussianBlur>
|
||||
<feColorMatrix values="0 0 0 0 0.925490196 0 0 0 0 0.556862745 0 0 0 0 0.0980392157 0 0 0 1 0" type="matrix" in="shadowBlurOuter1"></feColorMatrix>
|
||||
</filter>
|
||||
<linearGradient x1="38.069149%" y1="33.5367903%" x2="38.069149%" y2="98.1621294%" id="linearGradient-21">
|
||||
<stop stop-color="#FE606D" offset="0%"></stop>
|
||||
<stop stop-color="#FFA2A5" offset="100%"></stop>
|
||||
</linearGradient>
|
||||
<linearGradient x1="60.0817844%" y1="28.2456942%" x2="38.943371%" y2="75.9265148%" id="linearGradient-22">
|
||||
<stop stop-color="#FEDB63" offset="0%"></stop>
|
||||
<stop stop-color="#FEDD73" offset="100%"></stop>
|
||||
</linearGradient>
|
||||
<polygon id="path-23" points="139.297941 70.1779313 248 120.532936 229.699968 185.722682 124 144.005227"></polygon>
|
||||
<filter x="-9.7%" y="-10.4%" width="112.9%" height="113.8%" filterUnits="objectBoundingBox" id="filter-24">
|
||||
<feOffset dx="-4" dy="-4" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset>
|
||||
<feGaussianBlur stdDeviation="2" in="shadowOffsetOuter1" result="shadowBlurOuter1"></feGaussianBlur>
|
||||
<feColorMatrix values="0 0 0 0 0.99518353 0 0 0 0 0.657959601 0 0 0 0 0.222035984 0 0 0 0.663358248 0" type="matrix" in="shadowBlurOuter1"></feColorMatrix>
|
||||
</filter>
|
||||
<linearGradient x1="1.3884147%" y1="42.2427784%" x2="97.6287521%" y2="58.3575504%" id="linearGradient-25">
|
||||
<stop stop-color="#FBDF84" offset="0%"></stop>
|
||||
<stop stop-color="#FEF6DF" offset="20.1427895%"></stop>
|
||||
<stop stop-color="#FFF8E2" offset="75.0762962%"></stop>
|
||||
<stop stop-color="#FBDF84" offset="100%"></stop>
|
||||
</linearGradient>
|
||||
<linearGradient x1="0%" y1="57.7627211%" x2="100%" y2="42.7948807%" id="linearGradient-26">
|
||||
<stop stop-color="#FDDD72" offset="0%"></stop>
|
||||
<stop stop-color="#FEF6DF" offset="20.1427895%"></stop>
|
||||
<stop stop-color="#FFF8E2" offset="75.0762962%"></stop>
|
||||
<stop stop-color="#FEDD71" offset="100%"></stop>
|
||||
</linearGradient>
|
||||
</defs>
|
||||
<g id="APPS_安卓容器_bonund256pt" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
||||
<g id="编组-3备份-3" filter="url(#filter-1)" transform="translate(4.000000, 4.000000)">
|
||||
<polygon id="路径-4" fill="#9F6B00" points="22.4854175 71.1352831 124 39.1781202 124 127.971838 42.4959276 162.72722"></polygon>
|
||||
<polygon id="路径-4" fill="#A16B00" transform="translate(176.849984, 103.805249) scale(-1, 1) translate(-176.849984, -103.805249) " points="124 70.2467832 229.699968 39.246972 229.699968 126.857126 143.556296 168.36355"></polygon>
|
||||
<g id="椭圆形">
|
||||
<use fill="url(#linearGradient-2)" fill-rule="evenodd" xlink:href="#path-3"></use>
|
||||
<use fill="black" fill-opacity="1" filter="url(#filter-4)" xlink:href="#path-3"></use>
|
||||
</g>
|
||||
<g id="椭圆形备份">
|
||||
<use fill="url(#linearGradient-5)" fill-rule="evenodd" xlink:href="#path-6"></use>
|
||||
<use fill="black" fill-opacity="1" filter="url(#filter-7)" xlink:href="#path-6"></use>
|
||||
</g>
|
||||
<g id="编组-2" transform="translate(125.653236, 69.872713) rotate(-9.000000) translate(-125.653236, -69.872713) translate(72.939312, 36.054737)"></g>
|
||||
<g id="形状结合备份-3">
|
||||
<use fill="black" fill-opacity="1" filter="url(#filter-10)" xlink:href="#path-9"></use>
|
||||
<use fill="url(#linearGradient-8)" fill-rule="evenodd" xlink:href="#path-9"></use>
|
||||
</g>
|
||||
<g id="路径">
|
||||
<use fill="#5B8C06" fill-rule="evenodd" xlink:href="#path-11"></use>
|
||||
<use fill="black" fill-opacity="1" filter="url(#filter-12)" xlink:href="#path-11"></use>
|
||||
</g>
|
||||
<g id="路径备份">
|
||||
<use fill="#5B8C06" fill-rule="evenodd" xlink:href="#path-13"></use>
|
||||
<use fill="black" fill-opacity="1" filter="url(#filter-14)" xlink:href="#path-13"></use>
|
||||
</g>
|
||||
<polygon id="路径-4备份" fill="url(#linearGradient-15)" transform="translate(71.995299, 162.885973) scale(-1, 1) translate(-71.995299, -162.885973) " points="20.4301769 118.218419 124 77.7719458 124 192.941695 19.9905981 248"></polygon>
|
||||
<line x1="123.560421" y1="245.912586" x2="124" y2="114.029217" id="路径-7备份" stroke="url(#linearGradient-16)" stroke-width="2.6125" stroke-linecap="round"></line>
|
||||
<polygon id="路径-4备份" fill="url(#linearGradient-17)" points="124 114.029217 231.198465 75.4450395 231.198465 193.553624 124 248"></polygon>
|
||||
<g id="路径-11">
|
||||
<use fill="black" fill-opacity="1" filter="url(#filter-20)" xlink:href="#path-19"></use>
|
||||
<use fill="url(#linearGradient-18)" fill-rule="evenodd" xlink:href="#path-19"></use>
|
||||
</g>
|
||||
<polygon id="路径-3" fill="url(#linearGradient-21)" points="177.791264 92.5327965 178.598476 220.244869 195.622586 211.671682 196.169593 85.4467628"></polygon>
|
||||
<g id="路径-11备份" transform="translate(186.000000, 127.950307) scale(1, -1) translate(-186.000000, -127.950307) ">
|
||||
<use fill="black" fill-opacity="1" filter="url(#filter-24)" xlink:href="#path-23"></use>
|
||||
<use fill="url(#linearGradient-22)" fill-rule="evenodd" xlink:href="#path-23"></use>
|
||||
</g>
|
||||
<path d="M34.8824439,168.349874 L62.2463189,168.831259 C63.6537673,168.856018 64.7885425,169.99145 64.8124889,171.398912 L64.8191082,171.787962 C64.843653,173.230597 63.6940637,174.419981 62.2514286,174.444526 C62.2212993,174.445039 62.1911633,174.44503 62.1610343,174.4445 L34.7971594,173.963116 C33.389711,173.938356 32.2549357,172.802925 32.2309893,171.395463 L32.2243701,171.006413 C32.1998253,169.563778 33.3494146,168.374393 34.7920497,168.349848 C34.822179,168.349336 34.8523149,168.349344 34.8824439,168.349874 Z" id="矩形" fill="#F4E5C3" transform="translate(48.521739, 171.397187) rotate(23.000000) translate(-48.521739, -171.397187) "></path>
|
||||
<path d="M35.6935587,176.218338 L46.7821941,176.425811 C48.1873409,176.452102 49.3199011,177.585307 49.3453919,178.990469 L49.3523188,179.372312 C49.3784889,180.814919 48.2302402,182.005597 46.7876337,182.031767 C46.7555504,182.032349 46.7234591,182.03234 46.6913762,182.03174 L35.6027408,181.824267 C34.197594,181.797976 33.0650338,180.664771 33.039543,179.259609 L33.0326161,178.877766 C33.006446,177.435159 34.1546947,176.24448 35.5973013,176.21831 C35.6293845,176.217728 35.6614758,176.217738 35.6935587,176.218338 Z" id="矩形备份" fill="#F3DA7B" transform="translate(41.192467, 179.125039) rotate(25.000000) translate(-41.192467, -179.125039) "></path>
|
||||
<path d="M22.4854175,71.9306494 L123.120842,113.074543 L22.4854175,71.9306494 Z" id="路径-7" stroke="url(#linearGradient-25)" stroke-width="2.6125" stroke-linecap="round"></path>
|
||||
<line x1="125.563916" y1="112.565642" x2="228.738156" y2="71.9125793" id="路径-7备份-2" stroke="url(#linearGradient-26)" stroke-width="2.6125" stroke-linecap="round"></line>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
After Width: | Height: | Size: 15 KiB |
|
@ -8,7 +8,7 @@
|
|||
<action id="com.deepin.pkexec.uengine-bridge">
|
||||
<message>Authentication is required to Setting UEngine Internet Bridge</message>
|
||||
<message xml:lang="zh_CN">设置 UEngine 桥接需要输入密码</message>
|
||||
<icon_name>kbox</icon_name>
|
||||
<icon_name>/usr/share/uengine/ui/uengine_logo.svg</icon_name>
|
||||
<defaults>
|
||||
<allow_any>no</allow_any>
|
||||
<allow_inactive>no</allow_inactive>
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
<action id="com.deepin.pkexec.uengine-session-launch-helper">
|
||||
<message>Authentication is required to Change UEngine</message>
|
||||
<message xml:lang="zh_CN">设置 UEngine 需要输入密码</message>
|
||||
<icon_name>kbox</icon_name>
|
||||
<icon_name>/usr/share/uengine/ui/uengine_logo.svg</icon_name>
|
||||
<defaults>
|
||||
<allow_any>no</allow_any>
|
||||
<allow_inactive>no</allow_inactive>
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"Package": "com.gitee.uengine.runner.spark",
|
||||
"Update": true,
|
||||
"Version": "1.5.0",
|
||||
"Version": "1.5.1",
|
||||
"Url": "https://gfdgd-xi.github.io/update-program/data/UpdateInformation.json"
|
||||
}
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"Package": "spark-uengine-runner",
|
||||
"Update": true,
|
||||
"Version": "1.5.0",
|
||||
"Version": "1.5.1",
|
||||
"Url": "https://gfdgd-xi.github.io/update-program/data/UpdateInformation.json"
|
||||
|
||||
}
|
Binary file not shown.
|
@ -148,7 +148,7 @@ done
|
|||
exit 0'''.format(apkPackageName)
|
||||
desktopFile = '''[Desktop Entry]
|
||||
Categories=Other;
|
||||
Exec=/usr/bin/uengine-launch.sh --action=android.intent.action.MAIN --package={} --component={}
|
||||
Exec=uengine launch --action=android.intent.action.MAIN --package={} --component={}
|
||||
Icon=/usr/share/uengine/icons/{}.png
|
||||
Terminal=false
|
||||
Type=Application
|
||||
|
@ -294,7 +294,7 @@ def BuildUengineDesktop(packageName, activityName, showName, iconPath, savePath)
|
|||
[Desktop Entry]
|
||||
Categories=app;
|
||||
Encoding=UTF-8
|
||||
Exec=/usr/bin/uengine-launch.sh --action=android.intent.action.MAIN --package={} --component={}
|
||||
Exec=/usr/bin/uengine launch.sh --action=android.intent.action.MAIN --package={} --component={}
|
||||
GenericName={}
|
||||
Icon={}
|
||||
MimeType=
|
||||
|
|
|
@ -0,0 +1,24 @@
|
|||
#!/bin/bash
|
||||
|
||||
# 忽略社区版检测
|
||||
|
||||
pkgRunCnt=`ps -ef |grep "uengine launch" |grep -v grep |grep "$pkg" |wc -l`
|
||||
if [ $pkgRunCnt -ge 1 ]; then
|
||||
#防止短时间内多次打开同一应用,如果应用正在启动中,此次忽略
|
||||
exit 0
|
||||
fi
|
||||
|
||||
#等Session服务启动完全
|
||||
wscont=0
|
||||
isReady=`busctl --user get-property org.anbox /org/anbox org.anbox.ApplicationManager Ready`
|
||||
if [ "$isReady" != "b true" ] ;then
|
||||
sleep 2
|
||||
fi
|
||||
while [ "$isReady" = "b false" -a $wscont -lt 10 ]
|
||||
do
|
||||
sleep 1
|
||||
isReady=`busctl --user get-property org.anbox /org/anbox org.anbox.ApplicationManager Ready`
|
||||
let wscont++
|
||||
done
|
||||
|
||||
uengine launch $*
|
|
@ -0,0 +1,153 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<svg width="256px" height="256px" viewBox="0 0 256 256" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<title>APPS_安卓容器_bonund256pt</title>
|
||||
<defs>
|
||||
<filter x="-12.5%" y="-12.5%" width="125.0%" height="125.0%" filterUnits="objectBoundingBox" id="filter-1">
|
||||
<feOffset dx="0" dy="4" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset>
|
||||
<feGaussianBlur stdDeviation="6" in="shadowOffsetOuter1" result="shadowBlurOuter1"></feGaussianBlur>
|
||||
<feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.197982681 0" type="matrix" in="shadowBlurOuter1" result="shadowMatrixOuter1"></feColorMatrix>
|
||||
<feMerge>
|
||||
<feMergeNode in="shadowMatrixOuter1"></feMergeNode>
|
||||
<feMergeNode in="SourceGraphic"></feMergeNode>
|
||||
</feMerge>
|
||||
</filter>
|
||||
<linearGradient x1="58.6019309%" y1="88.1513471%" x2="68.1110327%" y2="11.6551043%" id="linearGradient-2">
|
||||
<stop stop-color="#02DA67" offset="0%"></stop>
|
||||
<stop stop-color="#8DF6D6" offset="100%"></stop>
|
||||
</linearGradient>
|
||||
<path d="M178.25009,95.8175981 C203.764636,95.8175981 224.183124,74.193939 224.183124,47.5198036 C224.183124,20.8456682 203.116891,-0.0263983843 178.25009,0.00161822517 C153.698836,-0.149640967 132.579574,20.8119281 132.579574,47.4860635 C132.579574,74.1601989 152.735544,95.8175981 178.25009,95.8175981 Z" id="path-3"></path>
|
||||
<filter x="-8.7%" y="-8.3%" width="117.5%" height="116.7%" filterUnits="objectBoundingBox" id="filter-4">
|
||||
<feGaussianBlur stdDeviation="6" in="SourceAlpha" result="shadowBlurInner1"></feGaussianBlur>
|
||||
<feOffset dx="0" dy="4" in="shadowBlurInner1" result="shadowOffsetInner1"></feOffset>
|
||||
<feComposite in="shadowOffsetInner1" in2="SourceAlpha" operator="arithmetic" k2="-1" k3="1" result="shadowInnerInner1"></feComposite>
|
||||
<feColorMatrix values="0 0 0 0 0.503096532 0 0 0 0 0.974696063 0 0 0 0 0.762013922 0 0 0 1 0" type="matrix" in="shadowInnerInner1"></feColorMatrix>
|
||||
</filter>
|
||||
<linearGradient x1="63.5172866%" y1="83.8734541%" x2="28.478366%" y2="6.65286784%" id="linearGradient-5">
|
||||
<stop stop-color="#4796FE" offset="0%"></stop>
|
||||
<stop stop-color="#44D9FF" offset="100%"></stop>
|
||||
</linearGradient>
|
||||
<ellipse id="path-6" cx="75.4782609" cy="64.0914576" rx="40.4347826" ry="42.2724698"></ellipse>
|
||||
<filter x="-7.4%" y="-7.1%" width="114.8%" height="114.2%" filterUnits="objectBoundingBox" id="filter-7">
|
||||
<feGaussianBlur stdDeviation="6" in="SourceAlpha" result="shadowBlurInner1"></feGaussianBlur>
|
||||
<feOffset dx="0" dy="0" in="shadowBlurInner1" result="shadowOffsetInner1"></feOffset>
|
||||
<feComposite in="shadowOffsetInner1" in2="SourceAlpha" operator="arithmetic" k2="-1" k3="1" result="shadowInnerInner1"></feComposite>
|
||||
<feColorMatrix values="0 0 0 0 0.658848459 0 0 0 0 0.76869955 0 0 0 0 0.994393611 0 0 0 1 0" type="matrix" in="shadowInnerInner1"></feColorMatrix>
|
||||
</filter>
|
||||
<linearGradient x1="50%" y1="31.0023874%" x2="50%" y2="95.9937487%" id="linearGradient-8">
|
||||
<stop stop-color="#D0FF52" offset="0%"></stop>
|
||||
<stop stop-color="#75EF07" offset="100%"></stop>
|
||||
</linearGradient>
|
||||
<path d="M173.78741,23.8356193 C174.592173,22.5497756 176.286945,22.1597832 177.572789,22.9645469 C178.97904,23.8446691 179.464805,25.6626835 178.684957,27.1269214 L178.684957,27.1269214 L167.998548,47.191447 C186.416883,60.0725236 198.886549,83.3414384 199.457775,110.056847 L199.478261,111.975079 C172.083327,116.233637 151.498347,118.362915 137.72332,118.362915 C122.744723,118.362915 100.199269,116.233637 70.0869565,111.975079 C70.0869565,84.4580366 82.7086518,60.380247 101.56625,47.1917402 L90.8802608,27.1269214 C90.1004123,25.6626835 90.5861775,23.8446691 91.9924283,22.9645469 C93.278272,22.1597832 94.9730442,22.5497756 95.7778079,23.8356193 C95.8117323,23.8898235 95.8437535,23.9451959 95.873813,24.0016352 L106.548653,44.0451766 C115.080463,39.2096532 124.660045,36.497433 134.782609,36.497433 C144.904955,36.497433 154.484343,39.2095367 163.016015,44.0448652 L173.691404,24.0016352 C173.721464,23.9451959 173.753485,23.8898235 173.78741,23.8356193 Z" id="path-9"></path>
|
||||
<filter x="-32.5%" y="-31.3%" width="164.9%" height="187.7%" filterUnits="objectBoundingBox" id="filter-10">
|
||||
<feOffset dx="0" dy="12" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset>
|
||||
<feGaussianBlur stdDeviation="12" in="shadowOffsetOuter1" result="shadowBlurOuter1"></feGaussianBlur>
|
||||
<feColorMatrix values="0 0 0 0 0.565756196 0 0 0 0 0.617813774 0 0 0 0 0 0 0 0 0.5 0" type="matrix" in="shadowBlurOuter1"></feColorMatrix>
|
||||
</filter>
|
||||
<path d="M108.824477,66.2818224 C104.358174,66.2818224 100.73752,70.0670283 100.73752,74.7363163 C100.73752,79.4056044 104.358174,83.1908103 108.824477,83.1908103 C113.290779,83.1908103 116.911433,79.4056044 116.911433,74.7363163 C116.911433,70.0670283 113.290779,66.2818224 108.824477,66.2818224 Z" id="path-11"></path>
|
||||
<filter x="-24.7%" y="-23.7%" width="149.5%" height="147.3%" filterUnits="objectBoundingBox" id="filter-12">
|
||||
<feGaussianBlur stdDeviation="2" in="SourceAlpha" result="shadowBlurInner1"></feGaussianBlur>
|
||||
<feOffset dx="0" dy="4" in="shadowBlurInner1" result="shadowOffsetInner1"></feOffset>
|
||||
<feComposite in="shadowOffsetInner1" in2="SourceAlpha" operator="arithmetic" k2="-1" k3="1" result="shadowInnerInner1"></feComposite>
|
||||
<feColorMatrix values="0 0 0 0 0.311563901 0 0 0 0 0.401805933 0 0 0 0 0.0617868498 0 0 0 1 0" type="matrix" in="shadowInnerInner1"></feColorMatrix>
|
||||
</filter>
|
||||
<path d="M162.73752,66.2818224 C158.271217,66.2818224 154.650564,70.0670283 154.650564,74.7363163 C154.650564,79.4056044 158.271217,83.1908103 162.73752,83.1908103 C167.203823,83.1908103 170.824477,79.4056044 170.824477,74.7363163 C170.824477,70.0670283 167.203823,66.2818224 162.73752,66.2818224 Z" id="path-13"></path>
|
||||
<filter x="-24.7%" y="-23.7%" width="149.5%" height="147.3%" filterUnits="objectBoundingBox" id="filter-14">
|
||||
<feGaussianBlur stdDeviation="2" in="SourceAlpha" result="shadowBlurInner1"></feGaussianBlur>
|
||||
<feOffset dx="0" dy="4" in="shadowBlurInner1" result="shadowOffsetInner1"></feOffset>
|
||||
<feComposite in="shadowOffsetInner1" in2="SourceAlpha" operator="arithmetic" k2="-1" k3="1" result="shadowInnerInner1"></feComposite>
|
||||
<feColorMatrix values="0 0 0 0 0.311563901 0 0 0 0 0.401805933 0 0 0 0 0.0617868498 0 0 0 1 0" type="matrix" in="shadowInnerInner1"></feColorMatrix>
|
||||
</filter>
|
||||
<linearGradient x1="50%" y1="15.1929094%" x2="43.5077077%" y2="91.2786664%" id="linearGradient-15">
|
||||
<stop stop-color="#F59A36" offset="0%"></stop>
|
||||
<stop stop-color="#FCCB6D" offset="100%"></stop>
|
||||
</linearGradient>
|
||||
<linearGradient x1="49.9821781%" y1="101.237754%" x2="49.9425633%" y2="5.03998902%" id="linearGradient-16">
|
||||
<stop stop-color="#FFC87C" offset="0%"></stop>
|
||||
<stop stop-color="#FD7A49" offset="100%"></stop>
|
||||
</linearGradient>
|
||||
<linearGradient x1="42.3143683%" y1="18.131572%" x2="69.2971087%" y2="74.6901955%" id="linearGradient-17">
|
||||
<stop stop-color="#FFE066" offset="0%"></stop>
|
||||
<stop stop-color="#FED862" offset="67.0339918%"></stop>
|
||||
<stop stop-color="#FFC565" offset="100%"></stop>
|
||||
</linearGradient>
|
||||
<linearGradient x1="37.3123913%" y1="70.4187755%" x2="57.7534931%" y2="25.1271391%" id="linearGradient-18">
|
||||
<stop stop-color="#FBC758" offset="0%"></stop>
|
||||
<stop stop-color="#FCE188" offset="100%"></stop>
|
||||
</linearGradient>
|
||||
<polygon id="path-19" points="22.4854175 71.1352831 124 111.895386 108.52496 183.11999 -1.44464996e-12 131.484995"></polygon>
|
||||
<filter x="-3.2%" y="-3.6%" width="112.9%" height="114.3%" filterUnits="objectBoundingBox" id="filter-20">
|
||||
<feOffset dx="4" dy="4" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset>
|
||||
<feGaussianBlur stdDeviation="2" in="shadowOffsetOuter1" result="shadowBlurOuter1"></feGaussianBlur>
|
||||
<feColorMatrix values="0 0 0 0 0.925490196 0 0 0 0 0.556862745 0 0 0 0 0.0980392157 0 0 0 1 0" type="matrix" in="shadowBlurOuter1"></feColorMatrix>
|
||||
</filter>
|
||||
<linearGradient x1="38.069149%" y1="33.5367903%" x2="38.069149%" y2="98.1621294%" id="linearGradient-21">
|
||||
<stop stop-color="#FE606D" offset="0%"></stop>
|
||||
<stop stop-color="#FFA2A5" offset="100%"></stop>
|
||||
</linearGradient>
|
||||
<linearGradient x1="60.0817844%" y1="28.2456942%" x2="38.943371%" y2="75.9265148%" id="linearGradient-22">
|
||||
<stop stop-color="#FEDB63" offset="0%"></stop>
|
||||
<stop stop-color="#FEDD73" offset="100%"></stop>
|
||||
</linearGradient>
|
||||
<polygon id="path-23" points="139.297941 70.1779313 248 120.532936 229.699968 185.722682 124 144.005227"></polygon>
|
||||
<filter x="-9.7%" y="-10.4%" width="112.9%" height="113.8%" filterUnits="objectBoundingBox" id="filter-24">
|
||||
<feOffset dx="-4" dy="-4" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset>
|
||||
<feGaussianBlur stdDeviation="2" in="shadowOffsetOuter1" result="shadowBlurOuter1"></feGaussianBlur>
|
||||
<feColorMatrix values="0 0 0 0 0.99518353 0 0 0 0 0.657959601 0 0 0 0 0.222035984 0 0 0 0.663358248 0" type="matrix" in="shadowBlurOuter1"></feColorMatrix>
|
||||
</filter>
|
||||
<linearGradient x1="1.3884147%" y1="42.2427784%" x2="97.6287521%" y2="58.3575504%" id="linearGradient-25">
|
||||
<stop stop-color="#FBDF84" offset="0%"></stop>
|
||||
<stop stop-color="#FEF6DF" offset="20.1427895%"></stop>
|
||||
<stop stop-color="#FFF8E2" offset="75.0762962%"></stop>
|
||||
<stop stop-color="#FBDF84" offset="100%"></stop>
|
||||
</linearGradient>
|
||||
<linearGradient x1="0%" y1="57.7627211%" x2="100%" y2="42.7948807%" id="linearGradient-26">
|
||||
<stop stop-color="#FDDD72" offset="0%"></stop>
|
||||
<stop stop-color="#FEF6DF" offset="20.1427895%"></stop>
|
||||
<stop stop-color="#FFF8E2" offset="75.0762962%"></stop>
|
||||
<stop stop-color="#FEDD71" offset="100%"></stop>
|
||||
</linearGradient>
|
||||
</defs>
|
||||
<g id="APPS_安卓容器_bonund256pt" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
||||
<g id="编组-3备份-3" filter="url(#filter-1)" transform="translate(4.000000, 4.000000)">
|
||||
<polygon id="路径-4" fill="#9F6B00" points="22.4854175 71.1352831 124 39.1781202 124 127.971838 42.4959276 162.72722"></polygon>
|
||||
<polygon id="路径-4" fill="#A16B00" transform="translate(176.849984, 103.805249) scale(-1, 1) translate(-176.849984, -103.805249) " points="124 70.2467832 229.699968 39.246972 229.699968 126.857126 143.556296 168.36355"></polygon>
|
||||
<g id="椭圆形">
|
||||
<use fill="url(#linearGradient-2)" fill-rule="evenodd" xlink:href="#path-3"></use>
|
||||
<use fill="black" fill-opacity="1" filter="url(#filter-4)" xlink:href="#path-3"></use>
|
||||
</g>
|
||||
<g id="椭圆形备份">
|
||||
<use fill="url(#linearGradient-5)" fill-rule="evenodd" xlink:href="#path-6"></use>
|
||||
<use fill="black" fill-opacity="1" filter="url(#filter-7)" xlink:href="#path-6"></use>
|
||||
</g>
|
||||
<g id="编组-2" transform="translate(125.653236, 69.872713) rotate(-9.000000) translate(-125.653236, -69.872713) translate(72.939312, 36.054737)"></g>
|
||||
<g id="形状结合备份-3">
|
||||
<use fill="black" fill-opacity="1" filter="url(#filter-10)" xlink:href="#path-9"></use>
|
||||
<use fill="url(#linearGradient-8)" fill-rule="evenodd" xlink:href="#path-9"></use>
|
||||
</g>
|
||||
<g id="路径">
|
||||
<use fill="#5B8C06" fill-rule="evenodd" xlink:href="#path-11"></use>
|
||||
<use fill="black" fill-opacity="1" filter="url(#filter-12)" xlink:href="#path-11"></use>
|
||||
</g>
|
||||
<g id="路径备份">
|
||||
<use fill="#5B8C06" fill-rule="evenodd" xlink:href="#path-13"></use>
|
||||
<use fill="black" fill-opacity="1" filter="url(#filter-14)" xlink:href="#path-13"></use>
|
||||
</g>
|
||||
<polygon id="路径-4备份" fill="url(#linearGradient-15)" transform="translate(71.995299, 162.885973) scale(-1, 1) translate(-71.995299, -162.885973) " points="20.4301769 118.218419 124 77.7719458 124 192.941695 19.9905981 248"></polygon>
|
||||
<line x1="123.560421" y1="245.912586" x2="124" y2="114.029217" id="路径-7备份" stroke="url(#linearGradient-16)" stroke-width="2.6125" stroke-linecap="round"></line>
|
||||
<polygon id="路径-4备份" fill="url(#linearGradient-17)" points="124 114.029217 231.198465 75.4450395 231.198465 193.553624 124 248"></polygon>
|
||||
<g id="路径-11">
|
||||
<use fill="black" fill-opacity="1" filter="url(#filter-20)" xlink:href="#path-19"></use>
|
||||
<use fill="url(#linearGradient-18)" fill-rule="evenodd" xlink:href="#path-19"></use>
|
||||
</g>
|
||||
<polygon id="路径-3" fill="url(#linearGradient-21)" points="177.791264 92.5327965 178.598476 220.244869 195.622586 211.671682 196.169593 85.4467628"></polygon>
|
||||
<g id="路径-11备份" transform="translate(186.000000, 127.950307) scale(1, -1) translate(-186.000000, -127.950307) ">
|
||||
<use fill="black" fill-opacity="1" filter="url(#filter-24)" xlink:href="#path-23"></use>
|
||||
<use fill="url(#linearGradient-22)" fill-rule="evenodd" xlink:href="#path-23"></use>
|
||||
</g>
|
||||
<path d="M34.8824439,168.349874 L62.2463189,168.831259 C63.6537673,168.856018 64.7885425,169.99145 64.8124889,171.398912 L64.8191082,171.787962 C64.843653,173.230597 63.6940637,174.419981 62.2514286,174.444526 C62.2212993,174.445039 62.1911633,174.44503 62.1610343,174.4445 L34.7971594,173.963116 C33.389711,173.938356 32.2549357,172.802925 32.2309893,171.395463 L32.2243701,171.006413 C32.1998253,169.563778 33.3494146,168.374393 34.7920497,168.349848 C34.822179,168.349336 34.8523149,168.349344 34.8824439,168.349874 Z" id="矩形" fill="#F4E5C3" transform="translate(48.521739, 171.397187) rotate(23.000000) translate(-48.521739, -171.397187) "></path>
|
||||
<path d="M35.6935587,176.218338 L46.7821941,176.425811 C48.1873409,176.452102 49.3199011,177.585307 49.3453919,178.990469 L49.3523188,179.372312 C49.3784889,180.814919 48.2302402,182.005597 46.7876337,182.031767 C46.7555504,182.032349 46.7234591,182.03234 46.6913762,182.03174 L35.6027408,181.824267 C34.197594,181.797976 33.0650338,180.664771 33.039543,179.259609 L33.0326161,178.877766 C33.006446,177.435159 34.1546947,176.24448 35.5973013,176.21831 C35.6293845,176.217728 35.6614758,176.217738 35.6935587,176.218338 Z" id="矩形备份" fill="#F3DA7B" transform="translate(41.192467, 179.125039) rotate(25.000000) translate(-41.192467, -179.125039) "></path>
|
||||
<path d="M22.4854175,71.9306494 L123.120842,113.074543 L22.4854175,71.9306494 Z" id="路径-7" stroke="url(#linearGradient-25)" stroke-width="2.6125" stroke-linecap="round"></path>
|
||||
<line x1="125.563916" y1="112.565642" x2="228.738156" y2="71.9125793" id="路径-7备份-2" stroke="url(#linearGradient-26)" stroke-width="2.6125" stroke-linecap="round"></line>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
After Width: | Height: | Size: 15 KiB |
Loading…
Reference in New Issue