Skip to content

Commit

Permalink
chore: add auto-req no for building rpm (#882)
Browse files Browse the repository at this point in the history
Signed-off-by: Gaius <[email protected]>
  • Loading branch information
gaius-qi authored Dec 4, 2024
1 parent 436ed92 commit 1917e76
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 20 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,23 +74,23 @@ jobs:
- name: Build archive client(DEB)
shell: bash
run: |
binary_name="client"
binary_name="dragonfly-client"
dirname="$binary_name-${{ env.VERSION }}-${{ matrix.target }}"
cargo deb -p dragonfly-client --no-build --target ${{ matrix.target }} --variant ${{ matrix.target }} --compress-type gzip --output $dirname.deb
echo "CLIENT_DEB_ASSET=$dirname.deb" >> $GITHUB_ENV
- name: Build archive client(RPM)
shell: bash
run: |
binary_name="client"
binary_name="dragonfly-client"
dirname="$binary_name-${{ env.VERSION }}-${{ matrix.target }}"
cargo generate-rpm -p dragonfly-client --target ${{ matrix.target }} --variant ${{ matrix.target }} --payload-compress gzip --output $dirname.rpm
cargo generate-rpm -p dragonfly-client --target ${{ matrix.target }} --variant ${{ matrix.target }} --payload-compress none --output $dirname.rpm
echo "CLIENT_RPM_ASSET=$dirname.rpm" >> $GITHUB_ENV
- name: Build archive client(TAR)
shell: bash
run: |
binary_name="client"
binary_name="dragonfly-client"
dirname="$binary_name-${{ env.VERSION }}-${{ matrix.target }}"
mkdir -p "$dirname"
mv "target/${{ matrix.target }}/release/dfget" "$dirname"
Expand Down
16 changes: 8 additions & 8 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 8 additions & 8 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ members = [
]

[workspace.package]
version = "0.1.121"
version = "0.1.122"
authors = ["The Dragonfly Developers"]
homepage = "https://d7y.io/"
repository = "https://github.com/dragonflyoss/client.git"
Expand All @@ -22,13 +22,13 @@ readme = "README.md"
edition = "2021"

[workspace.dependencies]
dragonfly-client = { path = "dragonfly-client", version = "0.1.121" }
dragonfly-client-core = { path = "dragonfly-client-core", version = "0.1.121" }
dragonfly-client-config = { path = "dragonfly-client-config", version = "0.1.121" }
dragonfly-client-storage = { path = "dragonfly-client-storage", version = "0.1.121" }
dragonfly-client-backend = { path = "dragonfly-client-backend", version = "0.1.121" }
dragonfly-client-util = { path = "dragonfly-client-util", version = "0.1.121" }
dragonfly-client-init = { path = "dragonfly-client-init", version = "0.1.121" }
dragonfly-client = { path = "dragonfly-client", version = "0.1.122" }
dragonfly-client-core = { path = "dragonfly-client-core", version = "0.1.122" }
dragonfly-client-config = { path = "dragonfly-client-config", version = "0.1.122" }
dragonfly-client-storage = { path = "dragonfly-client-storage", version = "0.1.122" }
dragonfly-client-backend = { path = "dragonfly-client-backend", version = "0.1.122" }
dragonfly-client-util = { path = "dragonfly-client-util", version = "0.1.122" }
dragonfly-client-init = { path = "dragonfly-client-init", version = "0.1.122" }
thiserror = "1.0"
dragonfly-api = "=2.0.173"
reqwest = { version = "0.12.4", features = ["stream", "native-tls", "default-tls", "rustls-tls"] }
Expand Down
2 changes: 2 additions & 0 deletions dragonfly-client/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,7 @@ assets = [
{ source = "../LICENSE", dest = "/usr/share/doc/client/LICENSE.md", mode = "644", doc = true },
{ source = "../README.md", dest = "/usr/share/doc/client/README.md", mode = "644", doc = true },
]
auto-req = "no"

[package.metadata.generate-rpm.variants.aarch64-unknown-linux-gnu]
assets = [
Expand All @@ -360,3 +361,4 @@ assets = [
{ source = "../LICENSE", dest = "/usr/share/doc/client/LICENSE.md", mode = "644", doc = true },
{ source = "../README.md", dest = "/usr/share/doc/client/README.md", mode = "644", doc = true },
]
auto-req = "no"

0 comments on commit 1917e76

Please sign in to comment.