-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.py
44 lines (40 loc) · 953 Bytes
/
build.py
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
# Requires cx_freeze
# build command: python build.py build
import shutil
from cx_Freeze import setup, Executable
build_exe_options = {
"packages": [
"os"
],
"excludes": [
"tkinter",
"PyQt4.QtSql",
"sqlite3",
"scipy.lib.lapack.flapack",
"PyQt4.QtNetwork",
"PyQt4.QtScript",
"numpy.core._dotblas",
"PyQt5",
"email",
"asyncio",
"http",
"unittest"
],
"optimize": 2,
"build_exe": "dist"
}
target = Executable(
script="audio-remuxer.py",
icon="lib\\icon.ico"
)
setup(
name="Audio-Remuxer",
version="1.4",
description="FFmpeg audio track remuxer",
author="downthecrop",
options={"build_exe": build_exe_options},
executables=[target]
)
# Copy ffmpeg lib and settings
shutil.copyfile(r'lib\\ffmpeg.exe', r'dist\\lib\\ffmpeg.exe')
shutil.copyfile(r'settings.cfg', r'dist\settings.cfg')