mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-11-24 14:32:13 +08:00
refactor(service)!: remove the development service channel workflow (#8727)
* perf(traffic): shorten sidebar graph animation * refactor(service)!: remove the development service channel workflow Delete the verge-dev/dev-sidecar features, the dev.mjs script family, and the CLASH_VERGE_DEV_SERVICE_DIR staging chain. Debug builds keep the isolated .dev application data directory and dev sidecar IPC names through #[cfg(debug_assertions)] instead of the removed feature. Point clash_verge_service_ipc at tag v2.8.2. * chore(service): track the development-channel removal draft Point clash_verge_service_ipc at the removal branch while its PR is open; flip to tag v2.8.2 once the service side merges. * chore(service): track the released service 2.8.2 The removal branch merged as clash-verge-rev/clash-verge-service-ipc#105 (with the digest opt-in from clash-verge-rev/clash-verge-service-ipc#106 and the 2.8.2 release bump on top), so track the service repository's main directly instead of the draft branch.
This commit is contained in:
+4
-7
@@ -81,23 +81,20 @@ pnpm run prebuild
|
||||
pnpm run prebuild --force # Re-download and overwrite Mihomo core and service binaries
|
||||
```
|
||||
|
||||
### Prepare the Development Service Source
|
||||
### Service Development
|
||||
|
||||
`pnpm dev` builds the development service from a sibling checkout of [`clash-verge-service-ipc`](https://github.com/clash-verge-rev/clash-verge-service-ipc). The binaries downloaded by `pnpm prebuild` do not replace this source checkout.
|
||||
|
||||
Check the `clash_verge_service_ipc` dependency in [`src-tauri/Cargo.toml`](src-tauri/Cargo.toml), then clone the service repository alongside `clash-verge-rev` and check out the matching tag. If the sibling directory already exists, reuse it and check its version rather than overwriting it. Without this checkout, `pnpm dev` fails when it tries to access `../clash-verge-service-ipc/Cargo.toml`.
|
||||
The app consumes the published `clash_verge_service_ipc` crate from its git tag (see [`src-tauri/Cargo.toml`](src-tauri/Cargo.toml)). To work on the Service itself, clone [`clash-verge-service-ipc`](https://github.com/clash-verge-rev/clash-verge-service-ipc) alongside `clash-verge-rev`, check out the matching tag, and temporarily point the dependency at the local path before building.
|
||||
|
||||
### Run the Development Server
|
||||
|
||||
Run these commands from the root of `clash-verge-rev`:
|
||||
|
||||
```bash
|
||||
pnpm dev # Build the development service and start the desktop app
|
||||
pnpm dev:diff # Alias of pnpm dev
|
||||
pnpm dev # Start the desktop app in debug mode
|
||||
pnpm dev:tauri # Run Tauri directly with the tauri-dev feature
|
||||
```
|
||||
|
||||
For frontend-only development, use `pnpm web:dev`. It does not start the Rust backend or build the development service.
|
||||
For frontend-only development, use `pnpm web:dev`. It does not start the Rust backend.
|
||||
|
||||
### Build the Project
|
||||
|
||||
|
||||
Reference in New Issue
Block a user