-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathscreen_ruler.spec
More file actions
74 lines (71 loc) · 2.22 KB
/
Copy pathscreen_ruler.spec
File metadata and controls
74 lines (71 loc) · 2.22 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# -*- mode: python ; coding: utf-8 -*-
#
# PyInstaller spec file for screen-ruler.
#
# Produces a single self-contained executable:
# dist/screen-ruler
#
# Build with:
# pyinstaller screen_ruler.spec
a = Analysis(
['screen_ruler.py'],
pathex=[],
binaries=[],
# Bundle QML and helper assets used by the root QML file.
datas=[
('qml/qmldir', 'qml'),
('qml/RulerTheme.qml', 'qml'),
('qml/screen_ruler.qml', 'qml'),
('qml/OverlayImageLayer.qml', 'qml'),
('qml/SelectionOutline.qml', 'qml'),
('qml/GlobalInputLayer.qml', 'qml'),
('qml/OverlayActionButton.qml', 'qml'),
('qml/OverlayMessageBubble.qml', 'qml'),
('qml/ModeIconButton.qml', 'qml'),
('qml/ModeSelector.qml', 'qml'),
('qml/LabeledSliderRow.qml', 'qml'),
('qml/CrosshairCanvas.qml', 'qml'),
('qml/SnappedPointerMarker.qml', 'qml'),
('qml/MeasurementLabel.qml', 'qml'),
('qml/AnnotationItem.qml', 'qml'),
('qml/ControlsPanel.qml', 'qml'),
('qml/ShortcutHelpOverlay.qml', 'qml'),
('qml/screen_ruler_format.js', 'qml'),
],
# cv2 is imported inside a try/except; declare it explicitly so
# PyInstaller's static analyser does not miss it.
# QtQml and QtQuick are used at runtime by QQmlApplicationEngine but
# are not imported at the top level of screen_ruler.py.
hiddenimports=['cv2', 'PyQt6.QtQml', 'PyQt6.QtQuick'],
hookspath=[],
hooksconfig={},
runtime_hooks=[],
# Trim heavy stdlib/third-party modules that are not used.
excludes=['tkinter', 'matplotlib', 'scipy', 'PIL'],
noarchive=False,
optimize=0,
)
pyz = PYZ(a.pure)
exe = EXE(
pyz,
a.scripts,
a.binaries,
a.datas,
[],
name='screen-ruler',
debug=False,
bootloader_ignore_signals=False,
# strip debug symbols to reduce file size
strip=True,
upx=True,
upx_exclude=[],
runtime_tmpdir=None,
# console=True keeps startup messages ("Capturing screen…") visible
# on Linux; it does not open a separate terminal window.
console=True,
disable_windowed_traceback=False,
argv_emulation=False,
target_arch=None,
codesign_identity=None,
entitlements_file=None,
)