mirror of
https://gitcode.com/JianFeeeee/ModelRouter.git
synced 2026-11-07 09:47:23 +00:00
产品名早已是 ModelRouter,但仓库标识符仍沿用旧名。这次统一,读写两侧都做兼容, 已部署的机器不会因为顺序问题立刻失效。 - go module `llmsproxy` → `modelrouter`;全仓 import 与 `cmd/modelrouter` 同步。 - `Makefile BINARY=modelrouter`;发行包名、systemd unit、/usr/share 资源、 `/usr/local/bin` 目标全部改为 modelrouter。 - 默认配置目录 `/etc/llmsproxy` → `/etc/modelrouter`。**读取侧回退**:插件与 `storeDir` 仍会检查旧路径,所以"先换二进制、后改 unit"不会立即失效。 - 环境变量 `LLMSPROXY_*`(PLUGIN_DIR / XDISPLAY_BASE / ARCH / LIVE_ZEN / BUILD_DIR)改为 `MODELROUTER_*`;`LLMS_PROXY_MASTER_KEY` → `MODELROUTER_MASTER_KEY`。旧名在读取侧继续接受。 - 桌面端内嵌核心 `bin/llmsproxy` → `bin/modelrouter`,并保留旧文件名回退, 避免升级到一半的 profile 被判成"core binary missing"。 - 新增 `packaging/migrate-to-modelrouter.sh`:**默认 dry-run**,复制而非移动、 旧目录永不删除、支持 `--rollback`;随 release tar 分发并由 core-dist 校验。 - `deploy.sh` 增加改名保护:发现旧 `/etc/llmsproxy` 而新配置不存在时**中止**, 否则会部署出一个"能启动但没有 key、没有源"的空实例。 - 临时目录前缀 `/tmp/llmsproxy-*` → `/tmp/modelrouter-*`;清理逻辑同时回收两代。 兼容别名(`__llmsproxy_*` 全局、`llmsproxy` SDK 别名、旧路径/旧 env)刻意保留, 它们是升级路径而非遗留;docs/plugins.md 已标注为废弃。 本提交未包含:`adapters/opencodezen.lua`、`adapter_opencodezen_test.go`、 `adapter_opencodezen_live_test.go`(OpenCode UA/免费池的既有改动,另批提交)。
94 lines
2.3 KiB
JSON
94 lines
2.3 KiB
JSON
{
|
|
"name": "modelrouter-gui",
|
|
"version": "2.0.49",
|
|
"description": "ModelRouter Desktop — embedded ModelRouter core with tray",
|
|
"author": "ModelRouter",
|
|
"main": "main.js",
|
|
"license": "Proprietary",
|
|
"scripts": {
|
|
"start": "electron . --no-sandbox",
|
|
"dev": "electron . --no-sandbox --dev",
|
|
"core:linux": "node scripts/prepare-core.js linux",
|
|
"core:win": "node scripts/prepare-core.js win",
|
|
"dist:linux": "npm run core:linux && electron-builder --linux deb rpm AppImage",
|
|
"dist:debian": "npm run core:linux && electron-builder --linux deb",
|
|
"dist:win": "npm run core:win && electron-builder --win nsis",
|
|
"dist:dir": "npm run core:linux && electron-builder --dir"
|
|
},
|
|
"devDependencies": {
|
|
"electron": "^33.0.0",
|
|
"electron-builder": "^26.15.3"
|
|
},
|
|
"build": {
|
|
"appId": "com.modelrouter.gui",
|
|
"productName": "ModelRouter",
|
|
"linux": {
|
|
"target": [
|
|
"deb",
|
|
"rpm",
|
|
"AppImage"
|
|
],
|
|
"category": "Network",
|
|
"icon": "build/icon.png",
|
|
"maintainer": "ModelRouter",
|
|
"synopsis": "ModelRouter Desktop",
|
|
"desktop": {
|
|
"entry": {
|
|
"StartupWMClass": "modelrouter-gui"
|
|
}
|
|
},
|
|
"extraResources": [
|
|
{
|
|
"from": "bin/modelrouter",
|
|
"to": "bin/modelrouter"
|
|
},
|
|
{
|
|
"from": "build/icon.png",
|
|
"to": "build/icon.png"
|
|
}
|
|
]
|
|
},
|
|
"directories": {
|
|
"output": "../build/gui-dist"
|
|
},
|
|
"mac": {
|
|
"target": "dmg",
|
|
"icon": "build/icon.png",
|
|
"extraResources": [
|
|
{
|
|
"from": "build/icon.png",
|
|
"to": "build/icon.png"
|
|
}
|
|
]
|
|
},
|
|
"win": {
|
|
"target": "nsis",
|
|
"icon": "build/icon.ico",
|
|
"extraResources": [
|
|
{
|
|
"from": "bin/modelrouter.exe",
|
|
"to": "bin/modelrouter.exe"
|
|
},
|
|
{
|
|
"from": "bin/lua51.dll",
|
|
"to": "bin/lua51.dll"
|
|
},
|
|
{
|
|
"from": "build/icon.png",
|
|
"to": "build/icon.png"
|
|
}
|
|
]
|
|
},
|
|
"files": [
|
|
"main.js",
|
|
"plugin-sync.js",
|
|
"preload.js",
|
|
"renderer/**/*",
|
|
"build/**/*",
|
|
"!node_modules/**/*"
|
|
],
|
|
"asar": true
|
|
},
|
|
"homepage": "https://gitcode.com/JianFeeeee/ModelRouter"
|
|
}
|