Now to build the actual software, this process has been made more simple over time during the development of Penpot Desktop, all thanks to GitHub Actions and Electron Builder.
With Electron Builder, you can simply run:
npm run build
Then Electron builder will start building for your operating system.
On macOS, if Electron Builder says
/usr/bin/python
isn’t found, that’s because it should be looking for/usr/bin/python3
. To fix this, the most easy workaround is to edit a file innode_modules
. Edit the filenode_modules/dmg-builder/out/dmg.js
and changepython
on line 275 topython3
. It should look like this. Editing the/usr/bin/
folder is almost impossible with newer versions of macOS.