Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lilingfengdev committed Jun 28, 2024
1 parent e297228 commit cecc112
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions generate-bundle.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import urllib.request
import zipfile
import platform
from concurrent.futures.process import ProcessPoolExecutor

if platform.system() == 'Windows':
os.system("pip install rtoml-0.10.0-cp311-none-win_amd64.whl ")
Expand All @@ -19,8 +18,6 @@

os.system("python3 -m pip install pyyaml install-jdk tqdm psutil requests imageio pygithub rtoml nuitka")

import nuitka.__main__

if os.path.exists("dist"):
shutil.rmtree("dist")

Expand All @@ -47,11 +44,8 @@ def build(file):
shutil.move(os.path.join(os.getcwd(), "build", f), os.path.join(os.getcwd(), "dist", f))


pool = ProcessPoolExecutor(max_workers=4)
for file in os.listdir(os.path.join(os.getcwd(), "src")):
pool.submit(build, file)

pool.shutdown(wait=True)
build(file)

# 傻逼
# 狗屎代碼

0 comments on commit cecc112

Please sign in to comment.