Skip to content

Commit

Permalink
修正更新器产品号
Browse files Browse the repository at this point in the history
  • Loading branch information
DLmaster361 committed Dec 30, 2024
1 parent 7348a87 commit 85891dc
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions app/utils/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
main_version_numb = list(map(int, version["main_version"].split(".")))
updater_version_numb = list(map(int, version["updater_version"].split(".")))

print("Packaging AUTO-MAA main program ...")
print("Packaging AUTO_MAA main program ...")

result = subprocess.run(
f"powershell -Command nuitka --standalone --onefile --mingw64"
Expand All @@ -61,7 +61,7 @@

print(result.stdout)
print(result.stderr)
print("AUTO-MAA main program packaging completed !")
print("AUTO_MAA main program packaging completed !")

shutil.copy(os.path.normpath("app/utils/Updater.py"), os.path.normpath("."))

Expand All @@ -75,15 +75,15 @@
with open(os.path.normpath("Updater.py"), "w", encoding="utf-8") as f:
f.write(file_content)

print("Packaging AUTO-MAA update program ...")
print("Packaging AUTO_MAA update program ...")

result = subprocess.run(
f"powershell -Command nuitka --standalone --onefile --mingw64"
f" --enable-plugins=pyside6 --windows-console-mode=disable"
f" --windows-icon-from-ico=resources\\icons\\AUTO_MAA_Updater.ico"
f" --company-name='AUTO_MAA Team' --product-name=AUTO_MAA"
f" --file-version={version["updater_version"]}"
f" --product-version={version["updater_version"]}"
f" --product-version={version["main_version"]}"
f" --file-description='AUTO_MAA Component'"
f" --copyright='Copyright © 2024 DLmaster361'"
f" --assume-yes-for-downloads --output-filename=Updater"
Expand All @@ -95,7 +95,7 @@

print(result.stdout)
print(result.stderr)
print("AUTO-MAA update program packaging completed !")
print("AUTO_MAA update program packaging completed !")

os.remove(os.path.normpath("Updater.py"))

Expand Down

0 comments on commit 85891dc

Please sign in to comment.