For this section, it is assumed you are using macOS 11.0.0 or later.
Deployment is not quite as simple as development. It involves code signing, notarisation, and packaging. Luckily, it is fairly easy to repeat distributions after the first-time setup:
- Join the Apple Developer Program (this will cost about AUD$150 a year).
- Use Keychain Access to create a Certificate Signing Request.
- Use the CSR to create a Developer ID Application certificate.
- Download that certificate and add it to your keychain.
- Create a
.env
file from.env.example
if you haven't already done this. - Log into your Apple ID and create a new app-specific password.
- Add your Apple ID and app-specific password to the
.env
file. - Create a
electron-builder.yml
file fromelectron-builder.yml.example
. - Add your certificate identity from step 3 and 4.
Feel free to make any of the other changes you may want to add, including adding an identifier.
You should make sure your Spotify App is up-to-date right before distribution.
Also, if you make any changes to the logo, run:
iconutil -c icns build/icon.iconset
After doing all of this, to distribute a binary release, run:
yarn dist
This can take a while. When it's done, it will create a .dmg
file in dist/
(possibly a new directory).