You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: docs/packaging/signing.mdx
+123-7
Original file line number
Diff line number
Diff line change
@@ -132,23 +132,32 @@ your `--signAppIdentity` or `--signInstallIdentity` arguments. Your certificate
132
132
### Automate signing in CI/CD (Github Actions)
133
133
It is also posible to store your certificates and notary credentials as Action Secrets and sign your code during CI builds.
134
134
135
+
<TabsgroupId="ci"queryString>
136
+
<TabItemvalue="github"label="Github Actions">
135
137
1. Launch Keychain Access and open the "My Certificates" pane.
136
-
0. Select both certificates, right click and select "Export". Save as a p12 file and make note of the password. You can use the same password for both certificates.
138
+
139
+
0. Select each certificate (one at a time), right click and select "Export". Save as a p12 file and make note of the password. You can use the same password for both certificates.
140
+
:::tip
141
+
If you can't see the export option, or exporting as a `.p12` is disabled, you may need to change which keychain or tab you are viewing. You should be on the "My Certificates" tab.
142
+
See https://stackoverflow.com/questions/15662377/unable-to-export-apple-production-push-ssl-certificate-in-p12-format for more information.
143
+
:::
144
+
137
145
0. Copy the contents of the certificate to clipboard as base64, example:
138
146
```sh
139
147
base64 -i CERT.p12 | pbcopy
140
148
```
149
+
141
150
0. Create 7 [Github Secrets](https://docs.github.com/en/actions/security-guides/using-secrets-in-github-actions) for your Actions workflows
142
151
-`BUILD_CERTIFICATE_BASE64` (b64 of your app cert)
143
152
-`INSTALLER_CERTIFICATE_BASE64` (b64 of your installer cert)
144
153
-`P12_PASSWORD` (password for the certificates)
145
154
-`APPLE_ID` (your apple username)
146
-
-`APPLE_PASSWORD` (your app-specific password from earlier)
147
-
-`APPLE_TEAM` (your team id from earlier)
155
+
-`APPLE_PASSWORD` (your app-specific password from the notary step above)
156
+
-`APPLE_TEAM` (your team id from the notary step above)
148
157
-`KEYCHAIN_PASSWORD` (can be any random string, will be used to create a new keychain)
149
158
150
159
0. Add a step to your workflow which installs the certificates and keychain profile. Here is an example:
151
-
```yml
160
+
```txt
152
161
name: App build & sign
153
162
on: push
154
163
jobs:
@@ -190,15 +199,122 @@ It is also posible to store your certificates and notary credentials as Action S
vpk ... --signAppIdentity "Developer ID Application: Your Name" --signInstallIdentity "Developer ID Installer: Your Name" --notaryProfile "velopack-profile"
208
+
vpk pack ... \
209
+
--signAppIdentity "Developer ID Application: Your Name" \
210
+
--signInstallIdentity "Developer ID Installer: Your Name" \
The documentation here for Azure DevOps is provided by the community and is not verified by the Velopack team.
224
+
:::
225
+
1. Launch Keychain Access and open the "My Certificates" pane.
226
+
227
+
0. Select each certificate (one at a time), right click and select "Export". Save as a p12 file and make note of the password. You can use the same password for both certificates.
228
+
:::tip
229
+
If you can't see the export option, or exporting as a `.p12` is disabled, you may need to change which keychain or tab you are viewing. You should be on the "My Certificates" tab.
230
+
See https://stackoverflow.com/questions/15662377/unable-to-export-apple-production-push-ssl-certificate-in-p12-format for more information.
231
+
:::
232
+
233
+
0. Copy the contents of the certificate to clipboard as base64, example:
234
+
```sh
235
+
base64 -i CERT.p12 | pbcopy
236
+
```
237
+
238
+
0. Create 5 [Azure Pipeline Secret Variables](https://learn.microsoft.com/en-us/azure/devops/pipelines/process/set-secret-variables?view=azure-devops&tabs=yaml%2Cbash) for your Pipelines
239
+
-`P12_PASSWORD` (password for the certificates)
240
+
-`APPLE_ID` (your apple username)
241
+
-`APPLE_PASSWORD` (your app-specific password from the notary step above)
242
+
-`APPLE_TEAM` (your team id from the notary step above)
243
+
-`KEYCHAIN_PASSWORD` (can be any random string, will be used to create a new keychain)
0 commit comments