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 0213f7d commit 9336753
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions generate-bundle.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,17 @@

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

os.mkdir("dist")

for file in os.listdir(os.path.join(os.getcwd(), "src")):
filepath = os.path.join(os.getcwd(), "src", file)
print(f"build {file}", flush=True)
args = ["nuitka", "--onefile", filepath, "--output-dir=dist", "--quiet", "--remove-output",
"--assume-yes-for-downloads"]
args = ["nuitka", "--onefile", filepath, "--output-dir=dist", "--quiet", "--assume-yes-for-downloads"]
if platform.system() == 'Windows':
args.append("--windows-icon-from-ico=favicon.png")
args.append("--enable-plugins=upx")
args.append("--upx-binary=upx.exe")
if platform.system() == 'MacOS':
args.append("--macos-app-icon=favicon.png")
if platform.system() == 'Linux':
Expand Down

0 comments on commit 9336753

Please sign in to comment.