I wrote up a bunch more details of how I bundled a full copy of Python inside my Electron app here: https://til.simonwillison.net/electron/python-inside-electron
Neat! Any reason not to put it in the app store so you don’t have to worry about updates etc?
Great question! I haven’t even started looking into the feasibility of that yet. The app does some pretty weird things in order to support installable plugins, and I’m not even sure where to start on checking if they are App Store compatible or not.
if it can (and does) run sandboxed and does not call any private APIs (maybe electron does internally? I don’t know), it’ll be fine.
I need to fully understand what “runs sandboxed” means I think. I have it signed and notarized, but do I also need to opt into the “com.apple.security.app-sandbox” entitlement? I haven’t done that yet.
I have a few research notes on the sandbox here: https://github.com/simonw/datasette-app/issues/31
Yes. You have to opt into the sandbox. If it still runs fine (activity monitor has a column to indicate whether the process is sandboxed or not) and if electron doesn’t use any private API, you’re good
Thanks for it being Mojave compatible!