d9fbecf5a7
Move audio scrub/volume and brush drafts off root React ticks, coalesce overlay layout IPC, cache machine fingerprint and asset URLs, share one scene overlay host, and stop idle Pixi ticker. Also harden console against EPIPE on window load failures. Co-authored-by: Cursor <cursoragent@cursor.com>
25 lines
1013 B
TypeScript
25 lines
1013 B
TypeScript
import path from 'node:path';
|
|
|
|
export function licenseEncryptedPath(userData: string): string {
|
|
return path.join(userData, 'license.sealed');
|
|
}
|
|
|
|
/** Fallback, если нет OS keychain (WSL без gnome-keyring и т.п.); только при DND_LICENSE_INSECURE_FILE_STORAGE=1. */
|
|
export function licenseFallbackSealedPath(userData: string): string {
|
|
return path.join(userData, 'license.sealed.fallback');
|
|
}
|
|
|
|
/** Устаревший per-user UUID; актуальный deviceId — fingerprint машины (см. machineFingerprint.ts). */
|
|
export function deviceIdPath(userData: string): string {
|
|
return path.join(userData, 'device.id');
|
|
}
|
|
|
|
/** Кэш hashed machine fingerprint — без повторного reg/wmic/ioreg на каждом старте. */
|
|
export function machineFingerprintCachePath(userData: string): string {
|
|
return path.join(userData, 'machine.fingerprint');
|
|
}
|
|
|
|
export function preferencesPath(userData: string): string {
|
|
return path.join(userData, 'preferences.json');
|
|
}
|