Skip to content

Building

Carter Roeser edited this page Apr 12, 2024 · 2 revisions

Building the Agent

To build the agent, you must specify the platform to build for, and must build tarballs / installers in separate steps.

Building for a Specific Platform

To build the agent for a specific platform, run the following command:

oclif pack tarballs --targets=<platform>-<arch>

For example, to build the agent for Linux x64, run the following command:

oclif pack tarballs --targets=linux-x64

Building Tarballs

To build tarballs for all platforms, run the following command:

oclif pack tarballs

Building MacOS Installers

To build installers for MacOS, run the following command:

oclif pack macos

This requires that the Apple Developer certificate specified in the package.json file is installed on your system. You will be prompted to unlock your keychain to sign the installer.

Building Windows Installers

To build installers for Windows, run the following command:

oclif pack windows

Signing with the Certum certificate cannot be performed via oclif and must be done manually. To sign the installers, run the following command:

signtool sign /n "Carter Roeser" /fd SHA256 /tr http://time.certum.pl /td sha256 /v <path-to-installer>

Building Debian Packages

To build Debian packages, first, set the RMAGENT_DEB_KEY environment variable to the GPG key ID to sign the package with. Then run the following command:

oclif pack deb

This requires that the GPG key specified in the RMAGENT_DEB_KEY environment variable is installed on your system. You will be prompted to enter the passphrase for the key.

Debian packages must be built on a Debian-based system, such as Ubuntu.

Clone this wiki locally