mirror of
https://github.com/qingchencloud/clawpanel.git
synced 2026-05-07 06:22:53 +08:00
chore: release v0.9.6
This commit is contained in:
@@ -1532,7 +1532,15 @@ const handlers = {
|
||||
if (isMac) {
|
||||
cliInstalled = fs.existsSync('/opt/homebrew/bin/openclaw') || fs.existsSync('/usr/local/bin/openclaw')
|
||||
} else if (isWindows) {
|
||||
try { cliInstalled = fs.existsSync(path.join(process.env.APPDATA || '', 'npm', 'openclaw.cmd')) }
|
||||
try {
|
||||
const paths = [
|
||||
path.join(process.env.APPDATA || '', 'npm', 'openclaw.cmd'),
|
||||
path.join(process.env.APPDATA || '', 'npm', 'openclaw'),
|
||||
path.join(process.env.ProgramFiles || '', 'nodejs', 'openclaw.cmd'),
|
||||
path.join(process.env.ProgramFiles || '', 'nodejs', 'openclaw'),
|
||||
]
|
||||
cliInstalled = paths.some(p => fs.existsSync(p)) || !!findOpenclawBin()
|
||||
}
|
||||
catch { cliInstalled = false }
|
||||
} else {
|
||||
cliInstalled = !!findOpenclawBin()
|
||||
|
||||
Reference in New Issue
Block a user