first commit

This commit is contained in:
ykcheungab
2026-08-06 15:18:27 +08:00
commit a5a73d76d1
37 changed files with 2697 additions and 0 deletions
+31
View File
@@ -0,0 +1,31 @@
"""Verify the PyInstaller onedir output has the expected portable layout."""
from __future__ import annotations
import sys
from pathlib import Path
ROOT = Path(__file__).resolve().parents[1]
DIST = ROOT / "dist" / "SensorBench"
def require(path: Path) -> None:
if not path.exists():
raise FileNotFoundError(f"Missing build artifact: {path}")
def main() -> int:
require(DIST / "SensorBench.exe")
require(DIST / "config" / "options.json")
require(DIST / "config" / "locales" / "zh_CN.json")
require(DIST / "config" / "locales" / "en_US.json")
require(DIST / "steps" / "default.json")
require(DIST / "_internal")
print(f"Verified SensorBench dist layout: {DIST}")
return 0
if __name__ == "__main__":
raise SystemExit(main())