1.) run yarn to install dependencies
3.) run our bundle script
2.) run our mac distribution script
This will place a dist folder at the root of your local repo.
NOTE: If the electron-builder
package is not set to version "electron-builder": "24.0.0"
or greater, the build will fail.
-
Install Dependencies
- Run the following command to install dependencies:
-
Bundle the App
- Use yarn to bundle the app:
-
Build the Application
-
Per-User Install
- Run the following command for a per-user installation:
-
Per-Machine Install
- Run the following command for a per-machine installation:
-
Contact a manager for a omnilert-oda-signing.pfx
and paste it into the root of the project.
To ensure the application is signed on build, add the following environment variables to your Windows environment (Start > Edit the system environment varialbes > Environment Variables).
- CSC_LINK: path to .pfx
- CSC_KEY_PASSWORD: certificate password
Contact a Omnilert manager for the CSC_KEY_PASSWORD.
After building the Mac distribution, Double-clicking the dmg file will prompt the user to drag and drop our app into the applications folder.
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
-
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)
- Your PAC will be stored in the registry: