加一点命令以便操作

This commit is contained in:
gfdgd xi 2021-08-18 15:14:40 +08:00
parent 4dd48b5273
commit deec28ce83
3 changed files with 33 additions and 0 deletions

11
uengine-app-install.py Executable file
View File

@ -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)

11
uengine-app-uninstall.py Executable file
View File

@ -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)

11
uengine-clean.py Normal file
View File

@ -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"))