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: README.md
+17-7Lines changed: 17 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,13 @@ If you can't use GitHub, you can use other providers:
9
9
10
10
1. For macOS, you will need a code-signing certificate.
11
11
12
-
Install Xcode (from the App Store), then follow [these instructions](https://developer.apple.com/library/content/documentation/IDEs/Conceptual/AppDistributionGuide/MaintainingCertificates/MaintainingCertificates.html#//apple_ref/doc/uid/TP40012582-CH31-SW6) to make sure you have a "Mac Developer" certificate. If you'd like to export the certificate (for automated building, for instance) [you can](https://developer.apple.com/library/content/documentation/IDEs/Conceptual/AppDistributionGuide/MaintainingCertificates/MaintainingCertificates.html#//apple_ref/doc/uid/TP40012582-CH31-SW7). You would then follow [these instructions](https://www.electron.build/code-signing).
12
+
Install Xcode (from the App Store), then follow [these instructions](https://developer.apple.com/library/content/documentation/IDEs/Conceptual/AppDistributionGuide/MaintainingCertificates/MaintainingCertificates.html#//apple_ref/doc/uid/TP40012582-CH31-SW6) to make sure you have a "Developer ID Application" certificate. If you'd like to export the certificate (for automated building, for instance) [you can](https://developer.apple.com/library/content/documentation/IDEs/Conceptual/AppDistributionGuide/MaintainingCertificates/MaintainingCertificates.html#//apple_ref/doc/uid/TP40012582-CH31-SW7). You would then follow [these instructions](https://www.electron.build/code-signing).
13
+
14
+
This example application is set up to perform code-signing and notarization on Mac OS provided that a `Developer ID
15
+
Application` certificate is installed in the default keychain. The following environment variables are important for the signing process:
16
+
-`CSC_IDENTITY_AUTO_DISCOVERY` - controls whether `electron-builder` tries to sign the application; default is `true`, set to `false` to skip signing
17
+
-`APPLEID` - the Apple ID to use for notarization (required for signing).
18
+
-`APPLEIDPASS` - the password to use with the specified Apple ID for notarization (required for signing). Apple recommends setting up an app-specific password to safeguard the Apple ID password (see [Apple Support](https://support.apple.com/en-us/HT204397)) for more information.
13
19
14
20
2. Adjust `package.json` if needed.
15
21
@@ -49,7 +55,7 @@ If you can't use GitHub, you can use other providers:
49
55
50
56
5. Publish for your platform with:
51
57
52
-
build -p always
58
+
electron-builder -p always
53
59
54
60
or
55
61
@@ -63,12 +69,16 @@ If you can't use GitHub, you can use other providers:
63
69
},
64
70
...
65
71
66
-
6. Release the release on GitHub by going to <https://github.com/YOUR_GIT_HUB_USERNAME/electron-updater-example/releases>, editing the release and clicking "Publish release."
72
+
NOTE: The Mac OS signing/notarization process must be run on Mac OS. This application is set up to build Linux installers using the `electronuserland/builder` Docker image. Run:
73
+
74
+
npm run publish-linux-docker
67
75
68
-
7.Download and install the app from <https://github.com/YOUR_GIT_HUB_USERNAME/electron-updater-example/releases>.
76
+
7.Release the release on GitHub by going to <https://github.com/YOUR_GIT_HUB_USERNAME/electron-updater-example/releases>, editing the release and clicking "Publish release."
69
77
70
-
8.Update the version in `package.json`, commit and push to GitHub.
78
+
8.Download and install the app from <https://github.com/YOUR_GIT_HUB_USERNAME/electron-updater-example/releases>.
71
79
72
-
9.Do steps 5 and 6 again.
80
+
9.Update the version in `package.json`, commit and push to GitHub.
73
81
74
-
10. Open the installed version of the app and see that it updates itself.
82
+
10. Do steps 5 and 6 again.
83
+
84
+
11. Open the installed version of the app and see that it updates itself.
0 commit comments