mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-04-21 08:11:24 +02:00
Add ref=<app_id> to external links pointing to yaak.app
This commit is contained in:
16
src-web/lib/appInfo.ts
Normal file
16
src-web/lib/appInfo.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
import { getIdentifier } from '@tauri-apps/api/app';
|
||||
import { invokeCmd } from './tauri';
|
||||
|
||||
export interface AppInfo {
|
||||
isDev: boolean;
|
||||
version: string;
|
||||
name: string;
|
||||
appDataDir: string;
|
||||
appLogDir: string;
|
||||
identifier: string;
|
||||
}
|
||||
|
||||
export const appInfo = {
|
||||
...(await invokeCmd('cmd_metadata')),
|
||||
identifier: await getIdentifier(),
|
||||
} as AppInfo;
|
||||
Reference in New Issue
Block a user