-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpackaging.spec
More file actions
54 lines (49 loc) · 1.18 KB
/
packaging.spec
File metadata and controls
54 lines (49 loc) · 1.18 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
# -*- mode: python ; coding: utf-8 -*-
# to convert the png to ico, use:
# magick convert MVRtoKuma_icon.png -define icon:auto-resize=512,256,128,64,48,32,16 MVRtoKuma.ico
import sys
from PyInstaller.building.build_main import EXE
# (other imports like Analysis, PYZ, etc.)
icon_file = "images/PollToMVR_icon.ico"
if sys.platform.startswith('win'):
exe_name = 'PollToMVR_windows'
elif sys.platform.startswith('linux'):
exe_name = 'PollToMVR_linux'
icon_file = "images/MVRtoKuma_icon.png"
else:
exe_name = 'PollToMVR_macos'
a = Analysis(
['run.py'],
pathex=[],
binaries=[],
datas=[('tui/*.css', 'tui')],
hiddenimports=[],
hookspath=[],
hooksconfig={},
runtime_hooks=[],
excludes=[],
noarchive=False,
optimize=0,
)
pyz = PYZ(a.pure)
exe = EXE(
pyz,
a.scripts,
a.binaries,
a.datas,
[],
name=f'{exe_name}',
debug=False,
bootloader_ignore_signals=False,
strip=False,
icon=icon_file,
upx=True,
upx_exclude=[],
runtime_tmpdir=None,
console=True,
disable_windowed_traceback=False,
argv_emulation=False,
target_arch=None,
codesign_identity=None,
entitlements_file=None,
)