mirror of
https://github.com/HIllya51/LunaHook.git
synced 2024-12-25 20:54:15 +08:00
31 lines
951 B
Python
31 lines
951 B
Python
import os, shutil, sys
|
|
|
|
|
|
for f in os.listdir("../builds"):
|
|
if os.path.isdir("../builds/" + f) == False:
|
|
continue
|
|
|
|
for dirname, _, fs in os.walk("../builds/" + f):
|
|
if (
|
|
dirname.endswith("translations")
|
|
or dirname.endswith("translations")
|
|
or dirname.endswith("imageformats")
|
|
or dirname.endswith("iconengines")
|
|
or dirname.endswith("bearer")
|
|
):
|
|
shutil.rmtree(dirname)
|
|
continue
|
|
for ff in fs:
|
|
path = os.path.join(dirname, ff)
|
|
if ff in [
|
|
"Qt5Svg.dll",
|
|
"libEGL.dll",
|
|
"libGLESv2.dll",
|
|
"opengl32sw.dll",
|
|
"D3Dcompiler_47.dll",
|
|
]:
|
|
os.remove(path)
|
|
targetdir = "../builds/" + f
|
|
target = "../builds/" + f + ".zip"
|
|
os.system(rf'"C:\Program Files\7-Zip\7z.exe" a -m0=LZMA -mx9 {target} {targetdir}')
|