forked from ScanTailor-Advanced/scantailor-advanced
-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.spec
55 lines (47 loc) · 1.05 KB
/
app.spec
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
# -*- mode: python -*-
"""PyInstaller file for generating app binaries."""
from __future__ import annotations
import typing
if typing.TYPE_CHECKING:
from PyInstaller.building.api import COLLECT, EXE, PYZ
from PyInstaller.building.build_main import Analysis
from PyInstaller.building.osx import BUNDLE
block_cipher = None
a = Analysis(
["src/scantailor/__main__.py"],
pathex=["."],
binaries=None,
datas=[],
hiddenimports=[],
hookspath=None,
runtime_hooks=None,
excludes=None,
cipher=block_cipher,
)
pyz = PYZ(a.pure, a.zipped_data, cipher=block_cipher)
exe = EXE(
pyz,
a.scripts,
exclude_binaries=True,
name="ScanTailor",
debug=False,
strip=False,
upx=True,
console=False,
# icon="src\\scantailor\\resources\\appicon.svg,
)
coll = COLLECT(
exe,
a.binaries,
a.zipfiles,
a.datas,
strip=False,
upx=True,
name="ScanTailor",
)
app = BUNDLE(
coll,
name="ScanTailor.app",
# icon="src/scantailor/resources/appicon.svg",
bundle_identifier=None,
)