Skip to content

Commit

Permalink
[Normal] Update Some Code
Browse files Browse the repository at this point in the history
  • Loading branch information
ColdWindScholar committed Dec 21, 2024
1 parent 6bb1db6 commit 559fcdf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion build.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ def zip_folder(folder_path):
for file in files:
if file == name:
continue
if file.endswith(".py") or file.endswith(".ico") or file.endswith(".txt"):
continue
file_path = os.path.join(root, file)
if ".git" in file_path:
continue
Expand Down Expand Up @@ -68,7 +70,7 @@ def zip_folder(folder_path):
continue
shutil.rmtree(local + os.sep + "bin" + os.sep + "Linux" + os.sep + i)
for i in os.listdir(local):
if i not in ['run', 'run.exe', 'bin', 'LICENSE']:
if i not in ['run', 'run.exe', 'bin', 'LICENSE'] and not i.endswith(".py") and not i.endswith(".ico") and not i.endswith(".txt"):
print(f"Removing {i}")
if os.path.isdir(local + os.sep + i):
try:
Expand Down

0 comments on commit 559fcdf

Please sign in to comment.