mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-03-24 02:11:10 +01:00
Decouple core Yaak logic from Tauri (#354)
This commit is contained in:
@@ -11,9 +11,10 @@ import path from 'path';
|
||||
import { fileURLToPath } from 'url';
|
||||
|
||||
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
||||
const rootDir = path.join(__dirname, '..');
|
||||
|
||||
// Load .env.local if it exists
|
||||
const envLocalPath = path.join(__dirname, '..', '.env.local');
|
||||
const envLocalPath = path.join(rootDir, '.env.local');
|
||||
if (fs.existsSync(envLocalPath)) {
|
||||
const envContent = fs.readFileSync(envLocalPath, 'utf8');
|
||||
const envVars = envContent
|
||||
@@ -39,7 +40,7 @@ const additionalArgs = process.argv.slice(2);
|
||||
const args = [
|
||||
'dev',
|
||||
'--no-watch',
|
||||
'--config', './src-tauri/tauri.development.conf.json',
|
||||
'--config', 'crates-tauri/yaak-app/tauri.development.conf.json',
|
||||
'--config', config,
|
||||
...additionalArgs
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user