A basic sample app, demonstrating how @overwolf/ow-electron packages (Overlay, Game Events) work.
For more details about ow-electron, as well as how to fully utilize it, please refer to the official documentation.
To set up this app, you must first install its dependencies (using yarn, npm, or any other package manager).
From there, you can easily run/interact with it.
To run the app in development mode, simply run the build script, followed by the start script from the package.json.
For example:
# Using npm
npm run build
npm run start
# Using yarn
yarn build
yarn startThis repository also includes a working .vscode/launch.json file, meaning that you can launch the app by simply clicking F5 on your keyboard (for default vscode settings).
To build the app for production, you must run the build script, followed by the build:ow-electron script from the package.json.
For example:
# Using npm
npm run build
npm run build:ow-electron
# Using yarn
yarn build
yarn build:ow-electronAvailable since ow-electron@39.8.10 (Windows only).
Dev Mode lets you run and test the gaming packages (GEP, Overlay, Recorder) locally, without having to sign your app first. Without valid credentials, the app still runs, but the gaming packages stay inactive and production validation kicks in instead.
To enable it, provide credentials using one of the following methods:
# Option A: environment variables (recommended for CI)
# Windows (PowerShell)
$env:OW_CLI_EMAIL = "your-email@example.com"
$env:OW_CLI_API_KEY = "your-api-key-from-console"
# Or dev token
$env:OW_DEV_KEY=your-dev-token
# Linux / macOS
export OW_CLI_EMAIL=your-email@example.com
export OW_CLI_API_KEY=your-api-key-from-console
# Or dev token
export OW_DEV_KEY=your-dev-tokenOption C: set them in .vscode/launch.json, under the env section of the OW-Electron: Main Process configuration:
For full details, see the Dev Mode guide.
Before releasing your app, both Overwolf and you need to sign it: Overwolf signs the gaming package integrity, and you sign the exe with your own code-signing certificate. Without both signatures, the gaming packages will not load at runtime.
To sign your app:
- Set the following environment variables:
OW_CLI_EMAIL=your-email@example.com # Your Overwolf Console account email OW_CLI_API_KEY=your-api-key-from-console # Console > Profile > API Keys OW_BUILD_KEY=your-build-key # Console > Release management > App Keys
- Run the builder:
npx @overwolf/ow-electron-builder
This also requires a registered app (with a UID) in the Overwolf Console, and your own code-signing certificate for the executable.
For full details, see the App Signing guide.
Note: If you plan to host your app on the Overwolf app store, a Digital Code Signature is mandatory as part of the pre-submission checklist. It's strongly recommended to obtain a digital certificate to avoid Windows installation warnings for your users.
In order to add more/remove certain ow-electron "packages" from the project, simply edit the overwolf.packages array in the package.json file, like so:
{
...
"overwolf": {
"packages": [
"gep",
"overlay",
"recorder"
]
},
...
}