mirror of
https://github.com/farcasclaudiu/openclaw.git
synced 2026-06-28 13:01:42 +03:00
fix(cli): resolve bundled chrome extension path
This commit is contained in:
committed by
Peter Steinberger
parent
3b40227bc6
commit
0621d0e9e8
@@ -14,7 +14,11 @@ import { formatCliCommand } from "./command-format.js";
|
||||
|
||||
function bundledExtensionRootDir() {
|
||||
const here = path.dirname(fileURLToPath(import.meta.url));
|
||||
return path.resolve(here, "../../assets/chrome-extension");
|
||||
|
||||
// `dist/` lives at `<packageRoot>/dist` in npm installs.
|
||||
// The bundled extension lives at `<packageRoot>/assets/chrome-extension`.
|
||||
// So we need to go up ONE level from `dist`.
|
||||
return path.resolve(here, "../assets/chrome-extension");
|
||||
}
|
||||
|
||||
function installedExtensionRootDir() {
|
||||
|
||||
Reference in New Issue
Block a user