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.
Copy file name to clipboardExpand all lines: README.md
+41-28Lines changed: 41 additions & 28 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,12 +11,11 @@
11
11
12
12
## Development
13
13
14
-
Create a local `.env` file with the following content
14
+
Create a local `.env` file with the following content:
15
15
16
16
```shell
17
17
ENABLED_CHAINS=
18
18
ROPSTEN_NODE_URL=
19
-
20
19
```
21
20
22
21
### Requirements
@@ -25,7 +24,7 @@ ROPSTEN_NODE_URL=
25
24
26
25
### Launch
27
26
28
-
```bash
27
+
```sh
29
28
# Install dependencies
30
29
npm i
31
30
@@ -35,10 +34,10 @@ npm run dev
35
34
36
35
#### Troubleshooting
37
36
38
-
-If you get an error when installing the dependencies related to `node-gyp`, try using `sudo` to postinstall the deps
39
-
- 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:
40
39
41
-
```bash
40
+
```sh
42
41
npm i --global --production windows-build-tools
43
42
```
44
43
@@ -52,7 +51,7 @@ The log output is in the next directories:
52
51
53
52
`process-type` being equal to `main`, `renderer` or `worker`
54
53
55
-
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).
56
55
57
56
### Settings
58
57
@@ -64,53 +63,67 @@ To completely remove the application and start over, remove the settings file to
64
63
65
64
### Production Build
66
65
67
-
```bash
66
+
```sh
68
67
# Run build process
69
68
npm run dist
70
69
70
+
# or
71
+
71
72
# Run build process and publish to GitHub releases
72
73
npm run release
73
74
```
74
75
75
-
#### MacOs
76
+
#### macOs
76
77
77
-
You'll need to sign and notarize the app. To do, install the `met.p12` file in your local keychain.
78
-
In addition to that, you'll have to set the following env variables in order to publish
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).
79
80
80
-
```shell
81
-
# See below to complete these two fields
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:
82
90
APPLE_ID=
83
91
APPLE_ID_PASSWORD=
84
-
# See electron-build docs on how to complete these two
92
+
# See `electron-build` docs on how to complete these two:
85
93
CSC_LINK=
86
94
CSC_KEY_PASSWORD=
87
-
# Github token from your developer settings
95
+
# Github personal access token to upload the files to repo releases.
88
96
GH_TOKEN=
89
97
```
90
98
91
-
You'll need to follow [these steps to create an app specific password](https://support.apple.com/en-us/HT204397) and you'll set the generated value in `APPLE_ID_PASSWORD` together with your apple id in `APPLE_ID`.
92
-
For the github token, create an access token with the `repo` permission. [Steps to create an access token here](https://docs.github.com/en/github/authenticating-to-github/keeping-your-account-and-data-secure/creating-a-personal-access-token)
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.
93
102
94
-
The signing certificate shall be in the root folder and be named `met.p12`. They will also have to be in your keychain
95
-
The certificate password will be required before signing.
96
-
Keep in mind that the process might take ~10 minutes because notarizing takes time.
97
-
You might be prompted your keychain password during the process in order to access the installed certificate.
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.
98
105
99
-
To publish the application, run
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.
100
109
101
-
```shell
102
-
npm run release
103
-
```
104
-
In order to verify that the application has been successfully sign and notarized, run
110
+
In order to verify that the application has been successfully signed and notarized, run:
0 commit comments