added licensing stuff and free trial timer
This commit is contained in:
@ -96,4 +96,20 @@ window.electronAPI = {
|
||||
await writeTextFile(path, content);
|
||||
return true;
|
||||
},
|
||||
|
||||
activateLicense: (key: string): Promise<any> => {
|
||||
return invoke('activate_license', { licenseKey: key });
|
||||
},
|
||||
|
||||
getAppStatus: (): Promise<any> => {
|
||||
return invoke('get_app_status');
|
||||
},
|
||||
|
||||
deactivateLicense: (): Promise<void> => {
|
||||
return invoke('deactivate_license');
|
||||
},
|
||||
|
||||
hasLicenseFeature: (feature: string): Promise<boolean> => {
|
||||
return invoke('has_license_feature', { feature });
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user