-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
69 lines (64 loc) · 1.67 KB
/
setup.py
File metadata and controls
69 lines (64 loc) · 1.67 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
import subprocess
from setuptools import setup
APP = ["main.py"]
# FFmpeg-Pfade zur Build-Zeit ermitteln (Homebrew)
_ffmpeg = subprocess.run(["which", "ffmpeg"], capture_output=True, text=True).stdout.strip()
_ffprobe = subprocess.run(["which", "ffprobe"], capture_output=True, text=True).stdout.strip()
DATA_FILES = [
("", ["PeggerUIStyle.qss"]),
("ffmpeg_bin", [_ffmpeg, _ffprobe]),
]
OPTIONS = {
"iconfile": "MyIcon.icns",
"packages": [
"PySide6",
"numpy",
"vtracer",
],
"includes": [
"PeggerUI",
"DragAndDropArea",
"ConvertingFunctions",
"PySide6.QtWidgets",
"PySide6.QtCore",
"PySide6.QtGui",
"PySide6.QtSvg",
],
"excludes": [
"tkinter",
"unittest",
"email",
"html",
"http",
"urllib",
"xmlrpc",
],
"plist": {
"CFBundleName": "Pegger",
"CFBundleDisplayName": "Pegger",
"CFBundleIdentifier": "com.pegger.app",
"CFBundleVersion": "1.0.0",
"CFBundleShortVersionString": "1.0.0",
"NSHighResolutionCapable": True,
"NSRequiresAquaSystemAppearance": False,
"CFBundleDocumentTypes": [
{
"CFBundleTypeName": "Image",
"CFBundleTypeRole": "Editor",
"LSItemContentTypes": [
"public.png",
"public.jpeg",
"public.bmp",
"org.webmproject.webp",
],
}
],
},
}
setup(
name="Pegger",
app=APP,
data_files=DATA_FILES,
options={"py2app": OPTIONS},
setup_requires=["py2app"],
)