forked from JackLilhammers/pyside6-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.spec
55 lines (47 loc) · 1004 Bytes
/
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(
["bin/app"],
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="app",
debug=False,
strip=False,
upx=True,
console=False,
icon="resources\\icons\\app.ico",
)
coll = COLLECT(
exe,
a.binaries,
a.zipfiles,
a.datas,
strip=False,
upx=True,
name="app",
)
app = BUNDLE(
coll,
name="App.app",
icon="resources/icons/app.icns",
bundle_identifier=None,
)