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/pythonisn’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 in
node_modules. Edit the file
pythonon line 275 to
python3. It should look like this. Editing the
/usr/bin/folder is almost impossible with newer versions of macOS.