Exit fast on Velopack hook args; name ZIP artifact win64-portable
Velopack runs the app with --veloapp-install/-updated/-uninstall during those operations; without fast-exit handling the full GUI booted mid-install (also clobbering config via the first-run setup flow) and the installer reported hook errors. The post-install launch has no hook args and still starts the app normally.
This commit is contained in:
@@ -338,6 +338,9 @@ def create_zip(version: str) -> Path:
|
||||
raise FileNotFoundError(f"Distribution folder not found: {dist_folder}")
|
||||
|
||||
zip_name = f"MediaHive-{version}-{_platform_zip_suffix()}.zip"
|
||||
if sys.platform == "win32":
|
||||
# Distinguish from the Velopack installer (MediaHive-*-win64-setup.exe)
|
||||
zip_name = zip_name.replace("-win64.zip", "-win64-portable.zip")
|
||||
zip_path = repo_root / "build" / zip_name
|
||||
zip_path.parent.mkdir(parents=True, exist_ok=True)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user