Repository navigation
Offline license mode (.lic import) - #3
Merged
Merged
Conversation
Adds an "Import offline license" path to the activation dialog. The file is verified locally with verifyOfflineLicense against KEYMINT_PUBLIC_KEY, the product ID and the existing installation ID, stored in the encrypted store, and re-checked on launch and every 24 hours. Expiry is checked against max(system time, last trusted time). Online activation is unchanged.
… windows tsc only emits JavaScript, but main loads dist/renderer/*.html, so npm run dev (and electron-builder) opened blank windows.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds offline licenses using
verifyOfflineLicensefromkeymint1.7.0.KEYMINT_PUBLIC_KEY,KEYMINT_PRODUCT_IDand the existing installation ID (getHostId()), then kept in the encrypted store.now = max(system time, lastTrustedAt);lastTrustedAtis stored after each successful check.deactivatewith an offline license just forgets the file.npm test(tsc +node --test) covers the glue with a throwaway key; added to CI. README: short "Offline Licenses" section.Verified: build + unit tests; the glue agrees with 33/34 shared server fixtures (the other uses
clockSkew: 0; the starter keeps the default 60 s); ran the app and drove import over DevTools: wrong machine, expired and valid files give the right messages, the main window opens and shows the expiry, and it stays licensed after a relaunch.Not in this PR:
npm run builddoesn't copysrc/renderer/*.htmlintodist/, sonpm run devopens blank windows on main too. I copied the files by hand to run it.