mirror of
https://github.com/Steve-Tech/YAFI.git
synced 2026-10-29 18:54:38 +00:00
Add pyinstaller Windows CI build
This commit is contained in:
4 files changed
+69
-7
No files matched your search
@@ -1,5 +1,8 @@
|
||||
import os
|
||||
os.environ["GDK_SCALE"] = "2"
|
||||
if os.name == 'nt' and os.environ.get('GDK_SCALE') is None:
|
||||
import ctypes
|
||||
scale_factor = ctypes.windll.shcore.GetScaleFactorForDevice(0)
|
||||
os.environ["GDK_SCALE"] = f"{scale_factor//100}"
|
||||
|
||||
from yafi import main
|
||||
main()
|
||||
Reference in new issue
Block a user