mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-02-01 08:13:37 +00:00
fix: implemented gemini appdata suggestion
This commit is contained in:
@@ -39,14 +39,17 @@ export async function getClaudeStatus() {
|
|||||||
} catch {
|
} catch {
|
||||||
// Not in PATH, try common locations based on platform
|
// Not in PATH, try common locations based on platform
|
||||||
const commonPaths = isWindows
|
const commonPaths = isWindows
|
||||||
? [
|
? (() => {
|
||||||
// Windows-specific paths
|
const appData = process.env.APPDATA || path.join(os.homedir(), "AppData", "Roaming");
|
||||||
path.join(os.homedir(), ".local", "bin", "claude.exe"),
|
return [
|
||||||
path.join(os.homedir(), "AppData", "Roaming", "npm", "claude.cmd"),
|
// Windows-specific paths
|
||||||
path.join(os.homedir(), "AppData", "Roaming", "npm", "claude"),
|
path.join(os.homedir(), ".local", "bin", "claude.exe"),
|
||||||
path.join(os.homedir(), ".npm-global", "bin", "claude.cmd"),
|
path.join(appData, "npm", "claude.cmd"),
|
||||||
path.join(os.homedir(), ".npm-global", "bin", "claude"),
|
path.join(appData, "npm", "claude"),
|
||||||
]
|
path.join(appData, ".npm-global", "bin", "claude.cmd"),
|
||||||
|
path.join(appData, ".npm-global", "bin", "claude"),
|
||||||
|
];
|
||||||
|
})()
|
||||||
: [
|
: [
|
||||||
// Unix (Linux/macOS) paths
|
// Unix (Linux/macOS) paths
|
||||||
path.join(os.homedir(), ".local", "bin", "claude"),
|
path.join(os.homedir(), ".local", "bin", "claude"),
|
||||||
|
|||||||
Reference in New Issue
Block a user