快捷方式删除功能

This commit is contained in:
2022-11-20 17:48:10 +08:00
parent a5fd2522dd
commit a90fb2ae37
19 changed files with 387 additions and 16 deletions

View File

@@ -40,6 +40,9 @@ if "-w" in sys.argv:
wineProgram = sys.argv[wineCommand + 2]
except:
pass
badChar = [
"(", "?", "*", "!", ")", "&", "'", "\""
]
with open(sys.argv[1], "rb") as file:
while True:
things = file.readline()
@@ -49,7 +52,11 @@ with open(sys.argv[1], "rb") as file:
if n.encode() in things:
# 提取 DLL 名称
for i in str(things[1: -2]).split("\\x"):
if n in i and not "(" in i and i[0] != "/":
charBad = False
for b in badChar:
if b in i:
charBad = True
if n in i and not charBad and i[0] != "/":
name = i[2: ].replace(",{M", "").replace("+", "")
# 文件路径合法性检测

View File

@@ -0,0 +1,9 @@
#!/usr/bin/env deepin-wine-runner-auto-install-bash
# 使用 Wine 运行器的语言解析器
##########################################################################################
# 作者gfdgd xi、为什么您不喜欢熊出没和阿布呢
# 更新时间2022年11月19日
##########################################################################################
# 用于判断是否为 bash 解释器
installvcpp 4
info 提示 修复完成!重新检测即可

View File

@@ -1,2 +1,9 @@
#!/usr/bin/env deepin-wine-runner-auto-install-bash
# 使用 Wine 运行器的语言解析器
##########################################################################################
# 作者gfdgd xi、为什么您不喜欢熊出没和阿布呢
# 更新时间2022年11月03日
##########################################################################################
# 用于判断是否为 bash 解释器
installother 2
info 提示 修复完成!重新检测即可

View File

@@ -0,0 +1,9 @@
#!/usr/bin/env deepin-wine-runner-auto-install-bash
# 使用 Wine 运行器的语言解析器
##########################################################################################
# 作者gfdgd xi、为什么您不喜欢熊出没和阿布呢
# 更新时间2022年11月19日
##########################################################################################
# 用于判断是否为 bash 解释器
installvb 4
info 提示 修复完成!重新检测即可