Skip to content

Commit 9e0319a

Browse files
committed
pyobjc, CFBundleName
1 parent 2e9c70d commit 9e0319a

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ dependencies = [
2121
"petab>=0.6.0",
2222
"qtawesome",
2323
"copasi-basico",
24-
"copasi-petab-importer"
24+
"copasi-petab-importer",
25+
"pyobjc; sys_platform == 'darwin'"
2526
]
2627
license-files = ["LICENSE"]
2728

src/petab_gui/app.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,13 @@ def main():
134134
)
135135
args = parser.parse_args()
136136

137+
if sys.platform == "darwin":
138+
from Foundation import NSBundle # type: type: ignore[import]
139+
140+
bundle = NSBundle.mainBundle()
141+
info = bundle.localizedInfoDictionary() or bundle.infoDictionary()
142+
info["CFBundleName"] = APP_NAME
143+
137144
app = PEtabGuiApp(args.petab_yaml)
138145
sys.exit(app.exec())
139146

0 commit comments

Comments
 (0)