Skip to content

Commit

Permalink
fix action
Browse files Browse the repository at this point in the history
  • Loading branch information
lilingfengdev committed Jun 9, 2024
1 parent 311c8ed commit 20f87f9
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions generate-bundle.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,16 @@
if platform.system() == 'Windows':
os.system("python3 -m pip install pyyaml install-jdk tqdm psutil requests pygithub "
"rtoml-0.10.0-cp311-none-win_amd64.whl pyinstaller")
else:
os.system("python3 -m pip install pyyaml install-jdk tqdm psutil requests pygithub rtoml pyinstaller")


import PyInstaller.__main__
import platform
if platform.system() == 'Windows':
urllib.request.urlretrieve("https://github.com/upx/upx/releases/download/v4.2.4/upx-4.2.4-win64.zip",
"upx.zip")
zip = zipfile.ZipFile("upx.zip")
zip.extract("upx-4.2.4-win64/upx.exe", path=os.getcwd())
shutil.move("upx-4.2.4-win64/upx.exe", os.path.join(os.getcwd(), "upx.exe"))
else:
os.system("python3 -m pip install pyyaml install-jdk tqdm psutil requests pygithub rtoml pyinstaller")


import PyInstaller.__main__
os.mkdir("dist")
for file in os.listdir(os.getcwd()):
if file != "utils.py" and file != "generate-bundle.py" and file.endswith(".py") and not os.path.isdir(file):
Expand Down

0 comments on commit 20f87f9

Please sign in to comment.