"""Build the ORY-FINGER standalone Windows GUI folder with PyInstaller. Usage: python build/run.py gui finger python build/gui/ory_finger/build.py """ from __future__ import annotations import sys from pathlib import Path _BUILD_ROOT = Path(__file__).resolve().parents[2] if str(_BUILD_ROOT) not in sys.path: sys.path.insert(0, str(_BUILD_ROOT)) from common.verify.gui import verify_gui_dist from gui.common.pyinstaller_driver import build_with_pyinstaller from gui.ory_finger.config import make_config def main() -> None: config = make_config() build_with_pyinstaller( config, verify_fn=lambda dist_dir: verify_gui_dist(dist_dir, product="ory_finger"), ) if __name__ == "__main__": main()