From deec28ce8358e410ca421fa246d959c5869d4d25 Mon Sep 17 00:00:00 2001 From: gfdgd xi <3025613752@qq.com> Date: Wed, 18 Aug 2021 15:14:40 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=A0=E4=B8=80=E7=82=B9=E5=91=BD=E4=BB=A4?= =?UTF-8?q?=E4=BB=A5=E4=BE=BF=E6=93=8D=E4=BD=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- uengine-app-install.py | 11 +++++++++++ uengine-app-uninstall.py | 11 +++++++++++ uengine-clean.py | 11 +++++++++++ 3 files changed, 33 insertions(+) create mode 100755 uengine-app-install.py create mode 100755 uengine-app-uninstall.py create mode 100644 uengine-clean.py diff --git a/uengine-app-install.py b/uengine-app-install.py new file mode 100755 index 0000000..120467c --- /dev/null +++ b/uengine-app-install.py @@ -0,0 +1,11 @@ +#!/usr/bin/env python3 +import os +import sys +if len(sys.argv) > 1: + if sys.argv[1] == "--help": + print("帮助:") + print("uengine-app-install apk路径") + sys.exit(0) + sys.exit(os.system("sudo /usr/bin/uengine-session-launch-helper -- uengine install --apk='{}'".format(sys.argv[1]))) +print("命令参数错误") +sys.exit(1) \ No newline at end of file diff --git a/uengine-app-uninstall.py b/uengine-app-uninstall.py new file mode 100755 index 0000000..452bfc9 --- /dev/null +++ b/uengine-app-uninstall.py @@ -0,0 +1,11 @@ +#!/usr/bin/env python3 +import os +import sys +if len(sys.argv) > 1: + if sys.argv[1] == "--help": + print("帮助:") + print("uengine-app-uninstall apk包名") + sys.exit(0) + sys.exit(os.system("sudo /usr/bin/uengine-session-launch-helper -- uengine uninstall --pkg='{}'".format(sys.argv[1]))) +print("命令参数错误") +sys.exit(1) \ No newline at end of file diff --git a/uengine-clean.py b/uengine-clean.py new file mode 100644 index 0000000..019257b --- /dev/null +++ b/uengine-clean.py @@ -0,0 +1,11 @@ +#!/usr/bin/env python3 +import os +import sys +if len(sys.argv) > 1: + if sys.argv[1] == "--help": + print("帮助:") + print("输入命令即可清空/重置uengine") + sys.exit(0) + print("参数错误") + sys.exit(1) +sys.exit(os.system("sudo rm -rf /data/uengine")) \ No newline at end of file