Updated test and readme

This commit is contained in:
JessicaTegner
2025-06-05 11:20:05 +02:00
committed by Caelan
parent b07586ca0e
commit 4af335dcab
2 changed files with 6 additions and 3 deletions

View File

@@ -17,4 +17,5 @@
- `uv run python run_test.py`
# Building / Publishing
todo
- uv build

View File

@@ -60,6 +60,8 @@ def extract_full_path(zip_file, target_dir):
if platform.system() != "Windows":
raise RuntimeError("This script is intended to run on Windows only, for now")
_pyinstaller_command = ["uv", "run", "pyinstaller", "--onedir", "--console", "app.py", "--noconfirm"]
# check if we are running from the test dir
if Path(__file__).parent.name != "test":
raise RuntimeError("This script must be run from the 'test' directory")
@@ -69,7 +71,7 @@ _run_cmd(["vpk", "-h"])
write_app_version("1.0.0")
_run_cmd(["uv", "run", "pyinstaller", "app.spec", "-y"])
_run_cmd(_pyinstaller_command)
# make app version
_run_cmd(["vpk", "pack", "--packId", "test-app", "--packVersion", "1.0.0", "--packDir", "dist/app/", "--mainExe", "app.exe"])
@@ -96,7 +98,7 @@ if current_version.strip() != "1.0.0":
log("App version is correct: 1.0.0")
log("Trying to create update package...")
write_app_version("1.0.1")
_run_cmd(["uv", "run", "pyinstaller", "app.spec", "-y"])
_run_cmd(_pyinstaller_command)
_run_cmd(["vpk", "pack", "--packId", "test-app", "--packVersion", "1.0.1", "--packDir", "dist/app/", "--mainExe", "app.exe"])
# check if the app version is correct
_run_cmd(["output/test-app.exe"])