Skip to content

Commit 559fcdf

Browse files
[Normal] Update Some Code
1 parent 6bb1db6 commit 559fcdf

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

build.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ def zip_folder(folder_path):
3333
for file in files:
3434
if file == name:
3535
continue
36+
if file.endswith(".py") or file.endswith(".ico") or file.endswith(".txt"):
37+
continue
3638
file_path = os.path.join(root, file)
3739
if ".git" in file_path:
3840
continue
@@ -68,7 +70,7 @@ def zip_folder(folder_path):
6870
continue
6971
shutil.rmtree(local + os.sep + "bin" + os.sep + "Linux" + os.sep + i)
7072
for i in os.listdir(local):
71-
if i not in ['run', 'run.exe', 'bin', 'LICENSE']:
73+
if i not in ['run', 'run.exe', 'bin', 'LICENSE'] and not i.endswith(".py") and not i.endswith(".ico") and not i.endswith(".txt"):
7274
print(f"Removing {i}")
7375
if os.path.isdir(local + os.sep + i):
7476
try:

0 commit comments

Comments
 (0)