refactor: 简化项目配置,改用环境变量端口并专注 MSI 发布

- 重命名项目为 openbridgeTokenUsageViewer (camelCase 风格)
- 移除 DJB2 hash 端口计算,改用 PROJECT_SERVER_PORT 环境变量 (默认 3000)
- 删除 src/lib/project-port.ts 冗余模块
- 打包目标从 "all" 改为 "msi",专注 Windows 安装程序发布
This commit is contained in:
2026-01-22 14:19:43 +08:00
parent b520cdaf35
commit fa625ca301
11 changed files with 39 additions and 117 deletions

View File

@@ -1,5 +1,5 @@
[package]
name = "openbridge-token-usage-viewer"
name = "openbridgeTokenUsageViewer"
version = "0.1.0"
description = "OpenBridge Token Usage Viewer"
authors = ["imbytecat"]
@@ -11,7 +11,7 @@ edition = "2021"
# The `_lib` suffix may seem redundant but it is necessary
# to make the lib name unique and wouldn't conflict with the bin name.
# This seems to be only an issue on Windows, see https://github.com/rust-lang/cargo/issues/8519
name = "openbridge_token_usage_viewer_lib"
name = "openbridgeTokenUsageViewer_lib"
crate-type = ["staticlib", "cdylib", "rlib"]
[build-dependencies]