forked from CommonMugger/Sunshine-App-Automation
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild_exe.py
More file actions
27 lines (25 loc) · 800 Bytes
/
Copy pathbuild_exe.py
File metadata and controls
27 lines (25 loc) · 800 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/usr/bin/env python3
"""
Build a standalone Windows .exe for Gamesphere Import Tool.
Run on Windows: uv run build_exe.py or python build_exe.py
Requires: uv sync --extra build or pip install pyinstaller
"""
import subprocess
import sys
def main():
if sys.platform != "win32":
print("Building the .exe is supported on Windows only.")
print("Run this script on a Windows machine (or in a Windows CI/VM).")
sys.exit(1)
try:
import PyInstaller.__main__
except ImportError:
print("PyInstaller not found. Install with:")
print(" uv sync --extra build")
print(" or: pip install pyinstaller")
sys.exit(1)
PyInstaller.__main__.run([
"GamesphereImportTool.spec",
])
if __name__ == "__main__":
main()