Repository navigation
Expand file tree
/
Copy pathgvc.spec
More file actions
70 lines (66 loc) · 1.55 KB
/
Copy pathgvc.spec
File metadata and controls
70 lines (66 loc) · 1.55 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
# -*- mode: python ; coding: utf-8 -*-
# PyInstaller spec for building ./dist/gvc.app.
# Invoke via `poetry run python build_app.py`.
from importlib.metadata import version as _pkg_version
import os
_BUNDLE_ID = "net.dafoster.gvc"
_BUNDLE_NAME = "gvc"
_COPYRIGHT = "Copyright © 2026 David Foster"
_VERSION = _pkg_version("gvc")
a = Analysis(
["src/gvc/__main__.py"],
pathex=["src"],
binaries=[],
datas=[("src/gvc/assets", "gvc/assets")],
hiddenimports=[
"gvc.cli",
"gvc.gui",
"gvc.app_api",
"gvc.diff_parser",
"gvc.ipc",
"gvc.prefs",
"gvc.renderer",
"gvc.window_manager",
],
hookspath=[],
runtime_hooks=[],
excludes=[],
noarchive=(os.environ.get("GVC_NOARCHIVE") == "1"),
)
pyz = PYZ(a.pure)
exe = EXE(
pyz,
a.scripts,
[],
exclude_binaries=True,
name="gvc",
debug=False,
strip=False,
upx=False,
console=False,
)
coll = COLLECT(
exe,
a.binaries,
a.datas,
strip=False,
upx=False,
name="gvc",
)
app = BUNDLE(
coll,
name="gvc.app",
icon="build/icon.icns",
bundle_identifier=_BUNDLE_ID,
version=_VERSION,
# NOTE: Duplicated in gvc.spec and _configure_app_identity() and stub_app.py
info_plist={
"CFBundleDisplayName": _BUNDLE_NAME,
"CFBundleName": _BUNDLE_NAME,
"CFBundleShortVersionString": _VERSION,
"CFBundleVersion": _VERSION,
"LSUIElement": False,
"NSHighResolutionCapable": True,
"NSHumanReadableCopyright": _COPYRIGHT,
},
)