-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvolt.spec
More file actions
76 lines (68 loc) · 1.95 KB
/
volt.spec
File metadata and controls
76 lines (68 loc) · 1.95 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
75
76
# -*- mode: python -*-
import os
import distutils.util
version = "0.0.1"
block_cipher = None
COMPILING_PLATFORM = distutils.util.get_platform()
if COMPILING_PLATFORM == 'win-amd64':
platform = 'win'
STRIP = False
elif COMPILING_PLATFORM == 'linux-x86_64':
platform = 'nix64'
STRIP = True
elif "macosx" and "x86_64" in COMPILING_PLATFORM:
platform = 'mac'
STRIP = True
data = [('data', 'data')]
data += [('plugins', 'plugins')]
from PyInstaller.utils.hooks import copy_metadata
data += copy_metadata('colorhash')
a = Analysis(['main.py'],
pathex=['.'],
binaries=[],
datas=data,
hookspath=[],
runtime_hooks=[],
excludes=[
"PySide6.QtQml",
"PySide6.QtOpenGL",
"PySide6.QtQuick",
"PySide6.QtQuickWidgets",
"PySide6.QtNetwork",
"PySide6.QtDBus",
"PySide6.QtWebChannel",
"PySide6.QtPositioning",
"PySide6.QtPdf",
"PySide6.QtPrintSupport",
"PySide6.QtWebEngineCore",
"PySide6.QtWebEngineWidgets"
],
win_no_prefer_redirects=False,
win_private_assemblies=False,
cipher=block_cipher
)
from glob import glob
pyz = PYZ(a.pure, a.zipped_data, cipher=block_cipher)
exe = EXE(pyz,
a.scripts,
a.binaries,
a.zipfiles,
a.datas,
name='Volt',
icon='icon.png',
strip=STRIP,
upx=True,
console=False,
exclude_binaries=False,
runtime_tmpdir=None)
app = BUNDLE(exe,
a.scripts,
a.binaries,
a.zipfiles,
a.datas,
strip=STRIP,
upx=True,
name='Volt.app',
icon='icon.png',
console=False,
bundle_identifier=None)