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
{{ message }}
This repository was archived by the owner on May 21, 2025. It is now read-only.
-If you get an error when installing the dependencies related to `node-gyp`, try using `sudo` to postinstall the deps
31
-
- For windows, you might need to install the windows-build-tools. To do so, run
37
+
-For errors related to `node-gyp` when installing the dependencies, try using `sudo` to postinstall the dependencies.
38
+
- For Windows, installing `windows-build-tools` may be required. To do so, run:
32
39
33
-
```bash
40
+
```sh
34
41
npm i --global --production windows-build-tools
35
42
```
36
43
@@ -44,7 +51,7 @@ The log output is in the next directories:
44
51
45
52
`process-type` being equal to `main`, `renderer` or `worker`
46
53
47
-
More info [github.com/megahertz/electron-log](https://github.com/megahertz/electron-log)
54
+
More info [github.com/megahertz/electron-log](https://github.com/megahertz/electron-log).
48
55
49
56
### Settings
50
57
@@ -56,18 +63,67 @@ To completely remove the application and start over, remove the settings file to
56
63
57
64
### Production Build
58
65
59
-
```bash
66
+
```sh
60
67
# Run build process
61
68
npm run dist
62
69
70
+
# or
71
+
63
72
# Run build process and publish to GitHub releases
64
73
npm run release
65
74
```
66
75
67
-
To sign the macOS installers, execute `npm run dist:mac`.
68
-
The signing certificate shall be in the root folder and be named `met.p12`.
69
-
The certificate password will be required before signing.
76
+
#### macOs
77
+
78
+
The app needs to be signed and notarized.
79
+
To do so, install the `.p12` file in the local keychain (double click on it).
80
+
81
+
The certificate is obtained from the Apple Developer website.
82
+
The Developer ID Application is required.
83
+
The Developer ID Installer may be required too.
84
+
Once obtained, the `.cer` files have to be converted to `.p12` by providing the certificate passwords/private keys.
85
+
86
+
In addition to that, the following environment variables have to be set to publish:
87
+
88
+
```sh
89
+
# See below to complete these two:
90
+
APPLE_ID=
91
+
APPLE_ID_PASSWORD=
92
+
# See `electron-build` docs on how to complete these two:
93
+
CSC_LINK=
94
+
CSC_KEY_PASSWORD=
95
+
# Github personal access token to upload the files to repo releases.
96
+
GH_TOKEN=
97
+
```
98
+
99
+
Follow [these steps to create an app specific password](https://support.apple.com/en-us/HT204397).
100
+
The `APPLE_ID` variable is the Apple ID used to create the password.
101
+
`APPLE_ID_PASSWORD` is the password Apple created for the app.
102
+
103
+
The GitHub personal access token needs `repo` permissions.
104
+
See the docs on [how to create a personal access access token](https://docs.github.com/en/github/authenticating-to-github/keeping-your-account-and-data-secure/creating-a-personal-access-token) for more information.
105
+
106
+
The signing certificate shall be in the root folder of the repository.
107
+
The certificate password will be required during the signing process.
108
+
The signing process may take several minutes because notarization requieres uploading the app to Apple.
109
+
110
+
In order to verify that the application has been successfully signed and notarized, run:
0 commit comments