brioapp / example-electron-license-gate

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

Home Page:https://keygen.sh/blog/how-to-license-and-distribute-an-electron-app/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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 yarn:

yarn

Then start the app:

yarn 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 the app:

yarn build

To package and publish the app:

yarn 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.

https://keygen.sh/blog/how-to-license-and-distribute-an-electron-app/

License:MIT License


Languages

Language:JavaScript 71.4%Language:CSS 15.0%Language:HTML 13.6%