Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a DMG for Mac Monoscopic #625

Merged
merged 4 commits into from
Feb 24, 2024
Merged

Create a DMG for Mac Monoscopic #625

merged 4 commits into from
Feb 24, 2024

Conversation

mikeage
Copy link
Member

@mikeage mikeage commented Feb 13, 2024

In addition to creating the DMG, we also sign the app and notarize the DMG.

To create the keys, this is what I did:

openssl genrsa -out mac-openbrush.key 2048
openssl req -nodes -key mac-openbrush.key -new -subj "/C=UK/ST=./L=Leeds/O=Icosa Gallery, Ltd" -out mac-openbrush-app.csr
openssl req -legacy -nodes -key mac-openbrush.key -new -subj "/C=UK/ST=./L=Leeds/O=Icosa Gallery, Ltd" -out mac-openbrush-install.csr

Then a Developer ID Application and Installer were created, which gave a .cer file. Converting that to a P12:

export CER="foo"  # For both cer files
export PASSWORD="TOP SECRET SOMETHING"
openssl x509 -in ${CER}.cer -inform DER -out ${CER}.pem -outform PEM
openssl pkcs12 -export -inkey mac-openbrush.key -in ${CER}.pem -out ${CER}.p12 -password pass:${PASSWORD}

Additionally, we need to create provisioning profile for Mac OS, using the certificate above.

Then upload the P12, password, etc, to the secrets. Reference: https://docs.github.com/en/actions/deployment/deploying-xcode-applications/installing-an-apple-certificate-on-macos-runners-for-xcode-development (but note the different provisioning file name and the use of both certs, even though we actually only sign with the Application, not the Installer, one)

I wasn't able to get fastlane to manage these certs, which is annoying. The docs suggest that they support Developer ID types, but I couldn't figure it out.

@mikeage mikeage added the infrastructure Build or tooling infrastructure label Feb 13, 2024
@mikeage
Copy link
Member Author

mikeage commented Feb 13, 2024

The code is ready, but I think we can do a better background image. Maybe something lighter with an arrow overlaid? The sizes should be 620x349 and 1240x698

@mikeage mikeage merged commit 9c611fa into main Feb 24, 2024
38 checks passed
@mikeage mikeage deleted the infra/mac_release branch February 25, 2024 07:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
infrastructure Build or tooling infrastructure
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants