diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1af605fa8..3dc441a02 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -209,7 +209,7 @@ jobs: RUSTFLAGS: ${{ matrix.rustflags || '--cfg tokio_unstable' }} - name: Rename binary - run: mv target/${{ matrix.target }}/release/${{ env.PACKAGE }}${{ matrix.postfix }} ${{ env.PACKAGE }}-${{ matrix.release-name || matrix.target }}${{ matrix.postfix }} + run: mv target/${{ matrix.target }}/release/clash-rs${{ matrix.postfix }} ${{ env.PACKAGE }}-${{ matrix.release-name || matrix.target }}${{ matrix.postfix }} - name: Upload binaries uses: actions/upload-artifact@v4 diff --git a/Cargo.lock b/Cargo.lock index b9d455409..d7afaec14 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -989,7 +989,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4b82cf0babdbd58558212896d1a4272303a57bdb245c2bf1147185fb45640e70" [[package]] -name = "clash" +name = "clash-rs" version = "0.1.19" dependencies = [ "clap", diff --git a/clash/Cargo.toml b/clash/Cargo.toml index da0fcffdc..5e5d777b1 100644 --- a/clash/Cargo.toml +++ b/clash/Cargo.toml @@ -1,13 +1,9 @@ [package] -name = "clash" +name = "clash-rs" repository = { workspace = true } version = { workspace = true } edition = { workspace = true } -[[bin]] -name = "clash" -path = "src/main.rs" - [dependencies] clap = { version = "4.5.9", features = ["derive"] }