
- Github app for mac how to#
- Github app for mac install#
- Github app for mac password#
- Github app for mac mac#
I have a file in build/ containing the following:Ĭom.allow-dyld-environment-variablesĬom.disable-library-validationĬom.allow-unsigned-executable-memoryĬom.-selected.read-onlyĬom.-events I then went through an iteration cycle of trying out different combinations of settings until it finally worked.
Github app for mac install#
Thankfully electron-notarize does most of the work here, so I installed that: npm install electron-notarize -save-dev Notarizing involves uploading the application bundle to Apple's servers, where they run some automatic scans against it before returning a notarization ticket that can be "stapled" to the binary. It still wouldn't open without complaints on another machine until I had got it notarized. This worked! It generated a signed Datasette.app package. You can also pass the file itself, but I would need the base64 option later to work with GitHub actions. That CSC_LINK variable is set to the base64 encoded version of the certificate file.
Github app for mac password#
The CSC_KEY_PASSWORD was the password I set earlier when I exported the certificate. \ĬSC_LINK=$(openssl base64 -in Developer-ID-Application-Certificates.p12) \ Then I ran the following: CSC_KEY_PASSWORD=. I added "dist": "electron-builder -publish never" to my "scripts" block in package.json. I installed it with: npm install electron-builder -save-dev Building a signed copy of the applicationĪt this point I turned to electron-builder to do the rest of the work. It asked me to set a password, so I generated and saved a random one in 1Password. I saved the resulting file as Developer-ID-Application-Certificates.p12.
Github app for mac how to#
It took me quite a while to figure out how to create this - in the end what worked for me was this: Upload the CertificateSigningRequest.certSigningRequest file, and Apple should provide you a developerID_application.cer to download.

The certificate needed is for a "Developer ID Application" - so select that option from the list of options on Creating a Developer ID Application certificate This produces a CertificateSigningRequest.certSigningRequest file.
Github app for mac mac#
Generate a Certificate Signing Requestįirst you need to generate a Certificate Signing Request using Keychain Access on a Mac - I was unable to figure out how to do this on the command-line. Since a later stage here involves storing the account password in a GitHub repository secret, I think this is a better way to go: I don't like the idea of my personal Apple ID account password being needed by anyone else who should be able to sign my application. I had a previous (expired) account with a UK address, and changing to a USA address required a support ticket - so instead I created a brand new Apple ID specifically for the developer account. Pay for an Apple Developer accountįirst step is to pay $99/year for an Apple Developer account. I had to figure this out for Datasette Desktop. Simon Willison’s TILs Signing and notarizing an Electron app for distribution using GitHub Actions


Signing and notarizing an Electron app for distribution using GitHub Actions | Simon Willison’s TILs
