2025-08-23 19:57:42 +08:00
|
|
|
{
|
|
|
|
|
"$schema": "https://schema.tauri.app/config/2",
|
2025-08-23 20:05:50 +08:00
|
|
|
"productName": "CC Switch",
|
Release v3.6.0: Major architecture refactoring and feature enhancements
New Features:
- Provider duplication and manual sorting via drag-and-drop
- Custom endpoint management for aggregator providers
- Usage query with auto-refresh interval and test script API
- Config editor improvements (JSON format button, real-time TOML validation)
- Auto-sync on directory change for WSL environment support
- Load live config when editing active provider to protect manual modifications
- New provider presets: DMXAPI, Azure Codex, AnyRouter, AiHubMix, MiniMax
- Partner promotion mechanism (Zhipu GLM Z.ai)
Architecture Improvements:
- Backend: 5-phase refactoring (error handling → command split → services → concurrency)
- Frontend: 4-stage refactoring (tests → hooks → components → cleanup)
- Testing: 100% hooks unit test coverage, integration tests for critical flows
Documentation:
- Complete README rewrite with detailed architecture overview
- Separate Chinese (README_ZH.md) and English (README.md) versions
- Comprehensive v3.6.0 changelog with categorized changes
- New bilingual screenshots and partner banners
Bug Fixes:
- Fixed configuration sync issues (apiKeyUrl priority, MCP sync, import sync)
- Fixed usage query interval timing and refresh button animation
- Fixed UI issues (edit mode alignment, language switch state)
- Fixed endpoint speed test and provider duplicate insertion position
- Force exit on config error to prevent silent fallback
Technical Details:
- Updated to Tauri 2.8.x, TailwindCSS 4.x, TanStack Query v5.90.x
- Removed legacy v1 migration logic for better startup performance
- Standardized command parameters (unified to camelCase `app`)
- Result pattern for graceful error handling
2025-11-07 16:27:51 +08:00
|
|
|
"version": "3.6.0",
|
2025-08-27 11:00:53 +08:00
|
|
|
"identifier": "com.ccswitch.desktop",
|
2025-08-23 19:57:42 +08:00
|
|
|
"build": {
|
2025-08-23 20:41:14 +08:00
|
|
|
"frontendDist": "../dist",
|
2025-08-23 21:00:50 +08:00
|
|
|
"devUrl": "http://localhost:3000",
|
2025-08-23 20:41:14 +08:00
|
|
|
"beforeDevCommand": "pnpm run dev:renderer",
|
|
|
|
|
"beforeBuildCommand": "pnpm run build:renderer"
|
2025-08-23 19:57:42 +08:00
|
|
|
},
|
|
|
|
|
"app": {
|
|
|
|
|
"windows": [
|
|
|
|
|
{
|
2025-09-05 10:19:14 +08:00
|
|
|
"label": "main",
|
2025-08-25 23:30:25 +08:00
|
|
|
"title": "",
|
2025-08-23 20:05:50 +08:00
|
|
|
"width": 900,
|
|
|
|
|
"height": 650,
|
|
|
|
|
"minWidth": 800,
|
|
|
|
|
"minHeight": 600,
|
2025-08-23 19:57:42 +08:00
|
|
|
"resizable": true,
|
2025-08-25 23:06:54 +08:00
|
|
|
"fullscreen": false,
|
|
|
|
|
"titleBarStyle": "Transparent"
|
2025-08-23 19:57:42 +08:00
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"security": {
|
2025-09-05 10:19:14 +08:00
|
|
|
"csp": "default-src 'self'; img-src 'self' data:; script-src 'self'; style-src 'self' 'unsafe-inline'; connect-src 'self' ipc: http://ipc.localhost https: http:"
|
2025-08-23 19:57:42 +08:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"bundle": {
|
|
|
|
|
"active": true,
|
2025-08-29 14:40:40 +08:00
|
|
|
"targets": "all",
|
2025-09-08 16:58:41 +08:00
|
|
|
"createUpdaterArtifacts": true,
|
2025-08-23 19:57:42 +08:00
|
|
|
"icon": [
|
|
|
|
|
"icons/32x32.png",
|
|
|
|
|
"icons/128x128.png",
|
|
|
|
|
"icons/128x128@2x.png",
|
|
|
|
|
"icons/icon.icns",
|
|
|
|
|
"icons/icon.ico"
|
2025-09-23 14:41:28 +08:00
|
|
|
],
|
|
|
|
|
"windows": {
|
|
|
|
|
"wix": {
|
|
|
|
|
"template": "wix/per-user-main.wxs"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2025-09-08 16:58:41 +08:00
|
|
|
"plugins": {
|
|
|
|
|
"updater": {
|
2025-09-09 22:26:37 +08:00
|
|
|
"pubkey": "dW50cnVzdGVkIGNvbW1lbnQ6IG1pbmlzaWduIHB1YmxpYyBrZXk6IEM4MDI4QzlBNTczOTI4RTMKUldUaktEbFhtb3dDeUM5US9kT0FmdGR5Ti9vQzcwa2dTMlpibDVDUmQ2M0VGTzVOWnd0SGpFVlEK",
|
2025-09-09 15:13:06 +08:00
|
|
|
"endpoints": [
|
2025-09-10 15:26:21 +08:00
|
|
|
"https://github.com/farion1231/cc-switch/releases/latest/download/latest.json"
|
2025-09-09 15:13:06 +08:00
|
|
|
]
|
2025-09-08 16:58:41 +08:00
|
|
|
}
|
|
|
|
|
}
|
2025-08-23 19:57:42 +08:00
|
|
|
}
|