feat: add simplified windows x86 support
This commit is contained in:
+2
-5
@@ -2,13 +2,10 @@
|
||||
|
||||
const fs = require('fs');
|
||||
const path = require('path');
|
||||
const os = require('os');
|
||||
const { getConfigDir } = require('./platform-paths');
|
||||
|
||||
// 生产环境用 /etc/clawd/,开发环境用 ~/.clawd/
|
||||
const CONFIG_DIR = process.env.CLAWD_CONFIG_DIR
|
||||
|| (process.getuid && process.getuid() === 0
|
||||
? '/etc/clawd'
|
||||
: path.join(os.homedir(), '.clawd'));
|
||||
const CONFIG_DIR = getConfigDir();
|
||||
|
||||
const CONFIG_FILE = path.join(CONFIG_DIR, 'config.json');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user