Skip to content

keygen-sh/example-electron-license-gate

Repository files navigation

Example Electron License Gate

A minimal Electron app, showcasing how to add a license "gate" in front of your app's main window. The gate will only be "unlocked" for licensed users. This example includes license validation and auto-updates for valid licenses, and an unlicensed "evaluation mode."

image

Running the example app

First up, install dependencies with npm:

npm install --frozen-lockfile

Then start the app:

npm run start

Demo license keys

The following license keys are available for demo purposes.

Status License key
VALID 161DEA-E348CE-9EEA17-8BBFBD-4A26EA-V3
EXPIRED C47144-EEADCF-920428-7F327A-2CBE9C-V3
SUSPENDED 08887C-DEA1F9-6AD1BE-692693-6037D2-V3
NOT_FOUND 000000-000000-000000-000000-000000-V3

Building and packaging

To build, package and publish the app:

npm run dist

Questions?

Reach out at support@keygen.sh if you have any questions or concerns!

About

An example of adding a license gate to an Electron app, requiring a valid license to "unlock" the main application window.

Topics

Resources

License

Stars

Watchers

Forks