refactor: replace 'pnpm check' with 'pnpm prepare' in workflow files and update CONTRIBUTING.md
This commit is contained in:
6
.github/workflows/alpha.yml
vendored
6
.github/workflows/alpha.yml
vendored
@@ -308,7 +308,7 @@ jobs:
|
|||||||
- name: Pnpm install and check
|
- name: Pnpm install and check
|
||||||
run: |
|
run: |
|
||||||
pnpm i
|
pnpm i
|
||||||
pnpm check ${{ matrix.target }}
|
pnpm prepare ${{ matrix.target }}
|
||||||
|
|
||||||
# - name: Release ${{ env.TAG_CHANNEL }} Version
|
# - name: Release ${{ env.TAG_CHANNEL }} Version
|
||||||
# run: pnpm release-version ${{ env.TAG_NAME }}
|
# run: pnpm release-version ${{ env.TAG_NAME }}
|
||||||
@@ -378,7 +378,7 @@ jobs:
|
|||||||
- name: Pnpm install and check
|
- name: Pnpm install and check
|
||||||
run: |
|
run: |
|
||||||
pnpm i
|
pnpm i
|
||||||
pnpm check ${{ matrix.target }}
|
pnpm prepare ${{ matrix.target }}
|
||||||
|
|
||||||
# - name: Release ${{ env.TAG_CHANNEL }} Version
|
# - name: Release ${{ env.TAG_CHANNEL }} Version
|
||||||
# run: pnpm release-version ${{ env.TAG_NAME }}
|
# run: pnpm release-version ${{ env.TAG_NAME }}
|
||||||
@@ -507,7 +507,7 @@ jobs:
|
|||||||
- name: Pnpm install and check
|
- name: Pnpm install and check
|
||||||
run: |
|
run: |
|
||||||
pnpm i
|
pnpm i
|
||||||
pnpm check ${{ matrix.target }}
|
pnpm prepare ${{ matrix.target }}
|
||||||
|
|
||||||
# - name: Release ${{ env.TAG_CHANNEL }} Version
|
# - name: Release ${{ env.TAG_CHANNEL }} Version
|
||||||
# run: pnpm release-version ${{ env.TAG_NAME }}
|
# run: pnpm release-version ${{ env.TAG_NAME }}
|
||||||
|
|||||||
6
.github/workflows/autobuild.yml
vendored
6
.github/workflows/autobuild.yml
vendored
@@ -204,7 +204,7 @@ jobs:
|
|||||||
- name: Pnpm install and check
|
- name: Pnpm install and check
|
||||||
run: |
|
run: |
|
||||||
pnpm i
|
pnpm i
|
||||||
pnpm check ${{ matrix.target }}
|
pnpm prepare ${{ matrix.target }}
|
||||||
|
|
||||||
- name: Release ${{ env.TAG_CHANNEL }} Version
|
- name: Release ${{ env.TAG_CHANNEL }} Version
|
||||||
run: pnpm release-version ${{ env.TAG_NAME }}
|
run: pnpm release-version ${{ env.TAG_NAME }}
|
||||||
@@ -274,7 +274,7 @@ jobs:
|
|||||||
- name: Pnpm install and check
|
- name: Pnpm install and check
|
||||||
run: |
|
run: |
|
||||||
pnpm i
|
pnpm i
|
||||||
pnpm check ${{ matrix.target }}
|
pnpm prepare ${{ matrix.target }}
|
||||||
|
|
||||||
- name: Release ${{ env.TAG_CHANNEL }} Version
|
- name: Release ${{ env.TAG_CHANNEL }} Version
|
||||||
run: pnpm release-version ${{ env.TAG_NAME }}
|
run: pnpm release-version ${{ env.TAG_NAME }}
|
||||||
@@ -403,7 +403,7 @@ jobs:
|
|||||||
- name: Pnpm install and check
|
- name: Pnpm install and check
|
||||||
run: |
|
run: |
|
||||||
pnpm i
|
pnpm i
|
||||||
pnpm check ${{ matrix.target }}
|
pnpm prepare ${{ matrix.target }}
|
||||||
|
|
||||||
- name: Release ${{ env.TAG_CHANNEL }} Version
|
- name: Release ${{ env.TAG_CHANNEL }} Version
|
||||||
run: pnpm release-version ${{ env.TAG_NAME }}
|
run: pnpm release-version ${{ env.TAG_NAME }}
|
||||||
|
|||||||
2
.github/workflows/clippy.yml
vendored
2
.github/workflows/clippy.yml
vendored
@@ -53,7 +53,7 @@ jobs:
|
|||||||
- name: Pnpm install and check
|
- name: Pnpm install and check
|
||||||
run: |
|
run: |
|
||||||
pnpm i
|
pnpm i
|
||||||
pnpm check ${{ matrix.target }}
|
pnpm prepare ${{ matrix.target }}
|
||||||
|
|
||||||
- name: Build Web Assets
|
- name: Build Web Assets
|
||||||
run: pnpm run web:build
|
run: pnpm run web:build
|
||||||
|
|||||||
2
.github/workflows/cross_check.yaml
vendored
2
.github/workflows/cross_check.yaml
vendored
@@ -50,7 +50,7 @@ jobs:
|
|||||||
- name: Pnpm install and check
|
- name: Pnpm install and check
|
||||||
run: |
|
run: |
|
||||||
pnpm i
|
pnpm i
|
||||||
pnpm check ${{ matrix.target }}
|
pnpm prepare ${{ matrix.target }}
|
||||||
|
|
||||||
- name: Rust Cache
|
- name: Rust Cache
|
||||||
uses: Swatinem/rust-cache@v2
|
uses: Swatinem/rust-cache@v2
|
||||||
|
|||||||
2
.github/workflows/dev.yml
vendored
2
.github/workflows/dev.yml
vendored
@@ -58,7 +58,7 @@ jobs:
|
|||||||
- name: Pnpm install and check
|
- name: Pnpm install and check
|
||||||
run: |
|
run: |
|
||||||
pnpm i
|
pnpm i
|
||||||
pnpm check ${{ matrix.target }}
|
pnpm prepare ${{ matrix.target }}
|
||||||
|
|
||||||
- name: Tauri build
|
- name: Tauri build
|
||||||
uses: tauri-apps/tauri-action@v0
|
uses: tauri-apps/tauri-action@v0
|
||||||
|
|||||||
6
.github/workflows/release.yml
vendored
6
.github/workflows/release.yml
vendored
@@ -95,7 +95,7 @@ jobs:
|
|||||||
- name: Pnpm install and check
|
- name: Pnpm install and check
|
||||||
run: |
|
run: |
|
||||||
pnpm i
|
pnpm i
|
||||||
pnpm check ${{ matrix.target }}
|
pnpm prepare ${{ matrix.target }}
|
||||||
|
|
||||||
- name: Tauri build
|
- name: Tauri build
|
||||||
uses: tauri-apps/tauri-action@v0
|
uses: tauri-apps/tauri-action@v0
|
||||||
@@ -159,7 +159,7 @@ jobs:
|
|||||||
- name: Pnpm install and check
|
- name: Pnpm install and check
|
||||||
run: |
|
run: |
|
||||||
pnpm i
|
pnpm i
|
||||||
pnpm check ${{ matrix.target }}
|
pnpm prepare ${{ matrix.target }}
|
||||||
|
|
||||||
- name: "Setup for linux"
|
- name: "Setup for linux"
|
||||||
run: |-
|
run: |-
|
||||||
@@ -279,7 +279,7 @@ jobs:
|
|||||||
- name: Pnpm install and check
|
- name: Pnpm install and check
|
||||||
run: |
|
run: |
|
||||||
pnpm i
|
pnpm i
|
||||||
pnpm check ${{ matrix.target }}
|
pnpm prepare ${{ matrix.target }}
|
||||||
|
|
||||||
- name: Download WebView2 Runtime
|
- name: Download WebView2 Runtime
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
@@ -52,9 +52,9 @@ You have two options for downloading the clash binary:
|
|||||||
|
|
||||||
- Automatically download it via the provided script:
|
- Automatically download it via the provided script:
|
||||||
```shell
|
```shell
|
||||||
pnpm run check
|
pnpm run prepare
|
||||||
# Use '--force' to force update to the latest version
|
# 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).
|
- 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).
|
||||||
|
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
"web:dev": "vite",
|
"web:dev": "vite",
|
||||||
"web:build": "tsc --noEmit && vite build",
|
"web:build": "tsc --noEmit && vite build",
|
||||||
"web:serve": "vite preview",
|
"web:serve": "vite preview",
|
||||||
"check": "node scripts/check.mjs",
|
"prepare": "node scripts/prepare.mjs",
|
||||||
"updater": "node scripts/updater.mjs",
|
"updater": "node scripts/updater.mjs",
|
||||||
"updater-fixed-webview2": "node scripts/updater-fixed-webview2.mjs",
|
"updater-fixed-webview2": "node scripts/updater-fixed-webview2.mjs",
|
||||||
"portable": "node scripts/portable.mjs",
|
"portable": "node scripts/portable.mjs",
|
||||||
@@ -19,7 +19,6 @@
|
|||||||
"fix-alpha-version": "node scripts/fix-alpha_version.mjs",
|
"fix-alpha-version": "node scripts/fix-alpha_version.mjs",
|
||||||
"release-version": "node scripts/release-version.mjs",
|
"release-version": "node scripts/release-version.mjs",
|
||||||
"publish-version": "node scripts/publish-version.mjs",
|
"publish-version": "node scripts/publish-version.mjs",
|
||||||
"prepare": "husky",
|
|
||||||
"fmt": "cargo fmt --manifest-path ./src-tauri/Cargo.toml",
|
"fmt": "cargo fmt --manifest-path ./src-tauri/Cargo.toml",
|
||||||
"clippy": "cargo clippy --manifest-path ./src-tauri/Cargo.toml",
|
"clippy": "cargo clippy --manifest-path ./src-tauri/Cargo.toml",
|
||||||
"format": "prettier --write .",
|
"format": "prettier --write .",
|
||||||
|
|||||||
Reference in New Issue
Block a user