Skip to content

Commit

Permalink
Using py script instead of some shell script
Browse files Browse the repository at this point in the history
  • Loading branch information
ColdWindScholar committed Apr 20, 2024
1 parent e7455a0 commit 8df139f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def zip_folder(folder_path):

import PyInstaller.__main__

PyInstaller.__main__.run(['-F', 'run.py', '--exclude-module=numpy', '-i', 'icon.ico'])
PyInstaller.__main__.run(['-F', 'port.py', '--exclude-module=numpy', '-i', 'icon.ico'])

if os.name == 'nt':
if os.path.exists(local + os.sep + "dist" + os.sep + "run.exe"):
Expand All @@ -65,7 +65,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', 'devices']:
if i not in ['port', 'port.exe', 'bin', 'LICENSE', 'devices']:
print(f"Removing {i}")
if os.path.isdir(local + os.sep + i):
try:
Expand Down

0 comments on commit 8df139f

Please sign in to comment.