update license validation & urls

Signed-off-by: FTCHD <144691102+FTCHD@users.noreply.github.com>
This commit is contained in:
FTCHD
2025-08-14 22:46:14 +02:00
parent cc3b35a4ea
commit 8c9ebecd67
4 changed files with 102 additions and 81 deletions
+7 -9
View File
@@ -73,24 +73,22 @@ async function validateInstance() {
try {
await validateLicense(licenseKey)
} catch (e) {
usePersistedStore.setState({ licenseValid: false })
if (e instanceof Error) {
await ask(e.message, {
title: 'Error',
await message(e.message, {
title: 'Error Validating License',
kind: 'error',
okLabel: 'Exit',
cancelLabel: '',
okLabel: 'OK',
})
await exit(0)
return
}
await ask('An error occurred while validating your license. Please try again.', {
await message('An error occurred while validating your license. Please try again.', {
title: 'Error',
kind: 'error',
okLabel: 'Exit',
cancelLabel: '',
okLabel: 'OK',
})
await exit(0)
}
}