Menu

Shipping a Python app inside Electron on a Mac: 7 things that broke when I signed and notarized it
📰

Shipping a Python app inside Electron on a Mac: 7 things that broke when I signed and notarized it

DEV Community: opensource·DubEval·about 2 hours ago
#S5suknMU
#devtoopensource#devto#dev#python#file
Reading 0:00
15s threshold

A few weeks ago I wrote about DubEval , an open-source app that checks a dubbed video against its original. Back then it was Windows only, and "macOS runs from source" really meant "macOS doesn't". Last week the Mac version shipped: signed with a Developer ID, notarized, and able to update itself.

The app is an Electron window around a Python server: about 560 MB, with Python 3.14, Whisper (CTranslate2), ONNX Runtime, OpenCV and a few models inside. Electron apps get signed every day. Electron apps with a whole Python inside are rarer, and most of what broke came from that Python. Here's what broke, in the order I hit it.

1. python.org's Python can't go inside an app

The official macOS installer puts Python in /Library/Frameworks and expects it to stay there. Copy it into an .app and it still looks for itself at the old path.

Fix: python-build-standalone , a relocatable CPython (the one uv uses).…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.