Add ref=<app_id> to external links pointing to yaak.app

This commit is contained in:
Gregory Schier
2025-05-16 07:53:22 -07:00
parent 749df338c5
commit 0be7d0283b
10 changed files with 31 additions and 27 deletions

16
src-web/lib/appInfo.ts Normal file
View 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;