SIGN IN SIGN UP
tw93 / Pake UNCLAIMED

🤱🏻 Turn any webpage into a desktop app with one command.

0 0 200 Rust
import path from 'path';
import { fileURLToPath } from 'url';
2023-06-22 14:36:02 +08:00
// Convert the current module URL to a file path
const currentModulePath = fileURLToPath(import.meta.url);
2023-06-22 14:36:02 +08:00
// Resolve the parent directory of the current module
2023-07-14 22:14:01 +08:00
export const npmDirectory = path.join(path.dirname(currentModulePath), '..');
export const tauriConfigDirectory = path.join(
npmDirectory,
'src-tauri',
'.pake',
);