This commit is contained in:
Tw93
2025-08-16 22:37:08 +08:00
parent f76d567895
commit 6f9450d598
9 changed files with 653 additions and 147 deletions

5
bin/utils/dir.ts vendored
View File

@@ -1,4 +1,5 @@
import path from 'path';
import os from 'os';
import { fileURLToPath } from 'url';
// Convert the current module URL to a file path
@@ -12,3 +13,7 @@ export const tauriConfigDirectory = path.join(
'src-tauri',
'.pake',
);
export function getUserHomeDir(): string {
return os.homedir();
}