-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup_win.py
More file actions
64 lines (59 loc) · 1.46 KB
/
setup_win.py
File metadata and controls
64 lines (59 loc) · 1.46 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
"""
Windows-Build mit cx_Freeze
============================
Voraussetzungen:
pip install cx_Freeze
FFmpeg-Binaries:
ffmpeg.exe und ffprobe.exe müssen im Projektordner liegen.
Download: https://www.gyan.dev/ffmpeg/builds/ (ffmpeg-release-essentials.zip)
→ ffmpeg.exe und ffprobe.exe aus dem bin/-Ordner ins Projektverzeichnis kopieren.
Build starten:
python setup_win.py build
"""
import sys
from cx_Freeze import setup, Executable
BUILD_OPTIONS = {
"packages": [
"PySide6",
"numpy",
"vtracer",
],
"includes": [
"PeggerUI",
"DragAndDropArea",
"ConvertingFunctions",
"PySide6.QtWidgets",
"PySide6.QtCore",
"PySide6.QtGui",
"PySide6.QtSvg",
],
"excludes": [
"tkinter",
"unittest",
"email",
"html",
"http",
"urllib",
"xmlrpc",
],
"include_files": [
("PeggerUIStyle.qss", "PeggerUIStyle.qss"),
# ffmpeg-Binaries – neben Pegger.exe ablegen, main.py ergänzt den PATH automatisch
("ffmpeg.exe", "ffmpeg.exe"),
("ffprobe.exe", "ffprobe.exe"),
],
"silent": True,
}
setup(
name="Pegger",
version="1.0.0",
options={"build_exe": BUILD_OPTIONS},
executables=[
Executable(
"main.py",
base="Win32GUI", # Kein Konsolenfenster
icon="MyIcon.ico", # Windows-App-Icon
target_name="Pegger.exe",
)
],
)