-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRoomOS.spec
More file actions
53 lines (51 loc) · 1.17 KB
/
Copy pathRoomOS.spec
File metadata and controls
53 lines (51 loc) · 1.17 KB
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# -*- mode: python ; coding: utf-8 -*-
from PyInstaller.utils.hooks import collect_all
datas = []
binaries = []
hiddenimports = []
room_os_assets = [
"assets/room_os.ico",
"assets/room_os_logo.png",
"assets/room_os_tray.png",
"assets/fonts/InterVariable.ttf",
"assets/fonts/LICENSE-Inter.txt",
]
datas += [(asset, str(__import__("pathlib").Path(asset).parent)) for asset in room_os_assets]
for package in ("mediapipe", "cv2", "google.genai"):
package_datas, package_binaries, package_hidden = collect_all(package)
datas += package_datas
binaries += package_binaries
hiddenimports += package_hidden
a = Analysis(
["main.py"],
pathex=["."],
binaries=binaries,
datas=datas,
hiddenimports=hiddenimports,
hookspath=[],
runtime_hooks=[],
excludes=["tkinter"],
noarchive=False,
)
pyz = PYZ(a.pure)
exe = EXE(
pyz,
a.scripts,
[],
exclude_binaries=True,
name="Room OS",
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
console=False,
icon="assets/room_os.ico",
)
coll = COLLECT(
exe,
a.binaries,
a.datas,
strip=False,
upx=True,
name="Room OS",
)