Add interactive navctl menu for install, uninstall, and update.

Provide navctl.py with a numbered menu, persist install path in config, and support curl bootstrap without pre-cloning the repo.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-07-12 12:01:01 +08:00
parent fc23a95e5c
commit f508f210f9
11 changed files with 608 additions and 278 deletions
+2 -2
View File
@@ -315,8 +315,8 @@ def main() -> None:
args = parse_args()
if not (ROOT / "app.py").is_file():
_fail(
"请在 LocalNav 项目目录内运行,或使用 scripts/install.py 自动克隆安装\n"
" python scripts/install.py"
"请在 LocalNav 项目目录内运行,或使用部署管理脚本\n"
" python scripts/navctl.py"
)
print(f"LocalNav 项目部署 · {platform.system()} {platform.release()}")