-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathsetup.spec
55 lines (49 loc) · 1.23 KB
/
setup.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
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
@file setup.spec
@brief specification file for pyinstaller
@author paradigm
"""
import os
MODULE = "ultrastar_pitch_runner.py"
FFMPEG_BIN = "ffmpeg.exe"
FFMPEG_DIR = "ffmpeg\\bin\\"
MODEL_ONNX = "pitchnet_2020_12_14.onnx"
ICON_BIN = "icon.ico"
BIN_DIR = "ultrastar_pitch\\binaries\\"
BLOCK_CIPHER = None
a = Analysis(
[MODULE],
pathex=[os.getcwd()],
binaries=[],
datas=[],
hiddenimports=[],
hookspath=[],
runtime_hooks=[],
excludes=[],
win_no_prefer_redirects=False,
win_private_assemblies=False,
cipher=BLOCK_CIPHER,
noarchive=False,
)
pyz = PYZ(a.pure, a.zipped_data, cipher=BLOCK_CIPHER)
exe = EXE(
pyz,
a.scripts,
a.binaries
+ [(FFMPEG_BIN, os.path.join(FFMPEG_DIR, FFMPEG_BIN), "BINARY")]
+ [(MODEL_ONNX, os.path.join(BIN_DIR, MODEL_ONNX), "BINARY")]
+ [(ICON_BIN, os.path.join(BIN_DIR, ICON_BIN), "BINARY")],
a.zipfiles,
a.datas,
[],
name="ultrastar_pitch",
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
runtime_tmpdir=None,
console=False,
icon=os.path.join(BIN_DIR, ICON_BIN),
)