@medplum/agent 2.1.19 → 2.1.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +22 -15
  2. package/dist/cjs/index.cjs +589 -591
  3. package/package.json +2 -5
package/README.md CHANGED
@@ -9,28 +9,35 @@ On-prem agent for device connectivity.
9
9
 
10
10
  ## Building
11
11
 
12
- Build everything:
12
+ Published releases are built using Github Actions. See the [installer build script](../../scripts/build-agent-installer.sh) for details.
13
13
 
14
- ```bash
15
- npm run build:all
16
- ```
14
+ The following tools are used to build the agent:
17
15
 
18
- Or, build individual components:
16
+ - [Node.js](https://nodejs.org/en/)
17
+ - [Vercel pkg](https://github.com/vercel/pkg) to build the `.exe` file
18
+ - [NSIS](https://nsis.sourceforge.io/) to build the installer
19
+ - [Shawl](https://github.com/mtkennerly/shawl) for the Microsoft Windows service wrapper
20
+ - [JSign](https://ebourg.github.io/jsign/) to sign the executable files
19
21
 
20
- Build the JS output:
22
+ The following environment variables are required:
21
23
 
22
- ```bash
23
- npm run build
24
- ```
24
+ - `SM_HOST` - DigiCert Signing Manager host
25
+ - `SM_API_KEY` - DigiCert Signing Manager API key
26
+ - `SM_CLIENT_CERT_FILE_BASE64` - DigiCert Signing Manager client certificate file (base64 encoded)
27
+ - `SM_CLIENT_CERT_PASSWORD` - DigiCert Signing Manager client certificate password
28
+ - `SM_CERT_ALIAS` - DigiCert Signing Manager certificate alias
25
29
 
26
- Build the `.exe` file using [Vercel `pkg`](https://github.com/vercel/pkg):
30
+ The `SM_CLIENT_CERT_FILE_BASE64` environment variable can be generated from the certificate file:
27
31
 
28
32
  ```bash
29
- npm run build:exe
33
+ base64 Certificate_pkcs12.p12
30
34
  ```
31
35
 
32
- Build the installer using [NSIS](https://nsis.sourceforge.io/) (requires `makensis` on your PATH):
36
+ References:
33
37
 
34
- ```bash
35
- npm run build:installer
36
- ```
38
+ - [Sign with SMCTL](https://docs.digicert.com/en/software-trust-manager/sign-with-digicert-signing-tools/sign-with-smctl.html)
39
+ - [GitHub Actions script integration with PKCS11](https://docs.digicert.com/en/software-trust-manager/ci-cd-integrations/script-integrations/github-actions-integration-with-pkcs11.html)
40
+ - [Sign with jSign](https://docs.digicert.com/en/software-trust-manager/signing-tools/jsign.html)
41
+ - [JSign](https://ebourg.github.io/jsign/)
42
+ - [Shawl](https://github.com/mtkennerly/shawl)
43
+ - [NSIS](https://nsis.sourceforge.io/)