omnilert_desktop_alert
v1.3.3
Published
Omnilert emergency services
Downloads
1,862
Readme
Sure, I'll update the README to include the specific commands for Mac staging and production environments as well.
Creating an Installer on Mac and Windows
Mac
Steps to Create an Installer on Mac
Install Dependencies
- Run the following command to install dependencies:
yarn
- Run the following command to install dependencies:
Bundle the App
- Use the following command to bundle the app:
yarn bundle
- Use the following command to bundle the app:
Build the Distribution
Depending on the specific environment, run the appropriate command:
For the staging environment:
yarn dist-mac:staging
For the production environment:
yarn dist-mac:production
This will place a
dist
folder at the root of your local repository.
Windows
Steps to Create the NSIS Installer
Install Dependencies
- Run the following command to install dependencies:
yarn
- Run the following command to install dependencies:
Bundle the App
- Use the following command to bundle the app:
yarn bundle
- Use the following command to bundle the app:
Build the Application
Depending on the specific environment, run the appropriate command:
For a per-user installation in the production environment:
yarn dist-win-user:production
For a per-user installation in the staging environment:
yarn dist-win-user:staging
For a per-machine installation in the production environment:
yarn dist-win-machine:production
For a per-machine installation in the staging environment:
yarn dist-win-machine:staging
Code Signing on Windows
Contact a manager for access to the Digicert ONE Admin portal: Digicert ONE Admin Portal.
To ensure the application is signed on build, add the following environment variables to your Windows environment (Start > Edit the system environment variables > Environment Variables). Official documentation can be found here.
- SM_HOST:
https://clientauth.one.digicert.com
- SM_CLIENT_CERT_FILE:
<P12 client certificate file path>
- SM_API_KEY:
API key
- SM_CLIENT_CERT_PASSWORD:
P12 client certificate password
Add the above environment variables via the smctl.exe
tool provided by Digicert ONE's KeyLocker solution. This information can be found on the Digicert ONE account.
Installing on Mac and Windows
Mac
After building the Mac distribution, double-click the .dmg
file and drag and drop the app into the Applications folder.
Windows
Installing ODA
Command Line Installation:
- Open the command line interface, navigate to the installer directory, and run the following command:
installer.exe /PAC=yourPersonalAccessCode /S
- Replace
yourPersonalAccessCode
with your actual PAC. - The
/S
switch installs the application silently, bypassing the installer UI, which is typically used for per-machine installations.
- Replace
- Open the command line interface, navigate to the installer directory, and run the following command:
Registry Information:
- Your PAC will be stored in the registry:
- Per-User Installations: Stored in
HKCU
(HKEY_CURRENT_USER) - Per-Machine Installations: Stored in
HKLM
(HKEY_LOCAL_MACHINE)
- Per-User Installations: Stored in
- Your PAC will be stored in the registry:
Command Line Updates
Increment Version Number
- Increment the version number:
yarn publish
Run Bundle Script
- Run the bundle script:
yarn bundle
Publish Updates
Publish updates to the desired build environment:
Staging Updates:
yarn publish:staging
Production Updates:
yarn publish:production
This layout provides clear, step-by-step instructions for creating installers on Mac and Windows, handling code signing, and performing installations and updates. It ensures that the correct commands are run based on the specific environment for both Mac and Windows builds.