From 74fc2c64752e8202dd095d254142a543bf398b45 Mon Sep 17 00:00:00 2001 From: lilingfengdev Date: Fri, 28 Jun 2024 14:37:22 +0800 Subject: [PATCH] fix --- generate-bundle.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generate-bundle.py b/generate-bundle.py index 06b560e..196bc90 100644 --- a/generate-bundle.py +++ b/generate-bundle.py @@ -45,7 +45,7 @@ def build(file): nuitka.__main__.main() filename = os.path.splitext(file)[0] for f in os.listdir(os.path.join(os.getcwd(), "build")): - if filename in f and not os.path.isdir(os.path.join(os.getcwd(), "build", f)): + if f.startswith(filename) and not os.path.isdir(os.path.join(os.getcwd(), "build", f)): shutil.move(os.path.join(os.getcwd(), "build", f), os.path.join(os.getcwd(), "dist", f))