refactor: replace 'pnpm check' with 'pnpm prepare' in workflow files and update CONTRIBUTING.md

This commit is contained in:
Tunglies
2025-06-10 23:43:04 +08:00
Unverified
parent 7001ef2030
commit 25cfd162f6
9 changed files with 15 additions and 16 deletions

View File

@@ -308,7 +308,7 @@ jobs:
- name: Pnpm install and check
run: |
pnpm i
pnpm check ${{ matrix.target }}
pnpm prepare ${{ matrix.target }}
# - name: Release ${{ env.TAG_CHANNEL }} Version
# run: pnpm release-version ${{ env.TAG_NAME }}
@@ -378,7 +378,7 @@ jobs:
- name: Pnpm install and check
run: |
pnpm i
pnpm check ${{ matrix.target }}
pnpm prepare ${{ matrix.target }}
# - name: Release ${{ env.TAG_CHANNEL }} Version
# run: pnpm release-version ${{ env.TAG_NAME }}
@@ -507,7 +507,7 @@ jobs:
- name: Pnpm install and check
run: |
pnpm i
pnpm check ${{ matrix.target }}
pnpm prepare ${{ matrix.target }}
# - name: Release ${{ env.TAG_CHANNEL }} Version
# run: pnpm release-version ${{ env.TAG_NAME }}

View File

@@ -204,7 +204,7 @@ jobs:
- name: Pnpm install and check
run: |
pnpm i
pnpm check ${{ matrix.target }}
pnpm prepare ${{ matrix.target }}
- name: Release ${{ env.TAG_CHANNEL }} Version
run: pnpm release-version ${{ env.TAG_NAME }}
@@ -274,7 +274,7 @@ jobs:
- name: Pnpm install and check
run: |
pnpm i
pnpm check ${{ matrix.target }}
pnpm prepare ${{ matrix.target }}
- name: Release ${{ env.TAG_CHANNEL }} Version
run: pnpm release-version ${{ env.TAG_NAME }}
@@ -403,7 +403,7 @@ jobs:
- name: Pnpm install and check
run: |
pnpm i
pnpm check ${{ matrix.target }}
pnpm prepare ${{ matrix.target }}
- name: Release ${{ env.TAG_CHANNEL }} Version
run: pnpm release-version ${{ env.TAG_NAME }}

View File

@@ -53,7 +53,7 @@ jobs:
- name: Pnpm install and check
run: |
pnpm i
pnpm check ${{ matrix.target }}
pnpm prepare ${{ matrix.target }}
- name: Build Web Assets
run: pnpm run web:build

View File

@@ -50,7 +50,7 @@ jobs:
- name: Pnpm install and check
run: |
pnpm i
pnpm check ${{ matrix.target }}
pnpm prepare ${{ matrix.target }}
- name: Rust Cache
uses: Swatinem/rust-cache@v2

View File

@@ -58,7 +58,7 @@ jobs:
- name: Pnpm install and check
run: |
pnpm i
pnpm check ${{ matrix.target }}
pnpm prepare ${{ matrix.target }}
- name: Tauri build
uses: tauri-apps/tauri-action@v0

View File

@@ -95,7 +95,7 @@ jobs:
- name: Pnpm install and check
run: |
pnpm i
pnpm check ${{ matrix.target }}
pnpm prepare ${{ matrix.target }}
- name: Tauri build
uses: tauri-apps/tauri-action@v0
@@ -159,7 +159,7 @@ jobs:
- name: Pnpm install and check
run: |
pnpm i
pnpm check ${{ matrix.target }}
pnpm prepare ${{ matrix.target }}
- name: "Setup for linux"
run: |-
@@ -279,7 +279,7 @@ jobs:
- name: Pnpm install and check
run: |
pnpm i
pnpm check ${{ matrix.target }}
pnpm prepare ${{ matrix.target }}
- name: Download WebView2 Runtime
run: |

View File

@@ -52,9 +52,9 @@ You have two options for downloading the clash binary:
- Automatically download it via the provided script:
```shell
pnpm run check
pnpm run prepare
# Use '--force' to force update to the latest version
# pnpm run check --force
# pnpm run prepare --force
```
- Manually download it from the [Mihomo release](https://github.com/MetaCubeX/mihomo/releases). After downloading, rename the binary according to the [Tauri configuration](https://tauri.app/v1/api/config#bundleconfig.externalbin).

View File

@@ -11,7 +11,7 @@
"web:dev": "vite",
"web:build": "tsc --noEmit && vite build",
"web:serve": "vite preview",
"check": "node scripts/check.mjs",
"prepare": "node scripts/prepare.mjs",
"updater": "node scripts/updater.mjs",
"updater-fixed-webview2": "node scripts/updater-fixed-webview2.mjs",
"portable": "node scripts/portable.mjs",
@@ -19,7 +19,6 @@
"fix-alpha-version": "node scripts/fix-alpha_version.mjs",
"release-version": "node scripts/release-version.mjs",
"publish-version": "node scripts/publish-version.mjs",
"prepare": "husky",
"fmt": "cargo fmt --manifest-path ./src-tauri/Cargo.toml",
"clippy": "cargo clippy --manifest-path ./src-tauri/Cargo.toml",
"format": "prettier --write .",