Skip to content

Commit 40060b4

Browse files
committed
更新构建配置,整理代码
1 parent 5114ac5 commit 40060b4

File tree

4 files changed

+15
-21
lines changed

4 files changed

+15
-21
lines changed

.github/workflows/release.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,16 +56,20 @@ jobs:
5656
[[ "$APP_VERSION" == *-* ]] && PRE=true || PRE=false
5757
echo "pre=$PRE" >> $GITHUB_OUTPUT
5858
59-
- name: Setup OpenSSL
60-
run: sudo apt-get install -y pkg-config libssl-dev lld
61-
6259
- name: Setup Rust
6360
uses: actions-rust-lang/setup-rust-toolchain@v1
6461

65-
- name: Build Linux binaries
62+
- name: Install cross
63+
run: RUSTFLAGS="" cargo install cross --git https://github.com/cross-rs/cross
64+
65+
- name: Build x86_64 binary
6666
run: |
67-
cargo install cross
67+
export CROSS_BUILD_PRE_BUILD="dpkg --add-architecture amd64 && apt-get update -y && apt-get install -y --no-install-recommends libssl-dev:amd64 lld"
6868
cross build --release --target x86_64-unknown-linux-gnu
69+
70+
- name: Build aarch64 binary
71+
run: |
72+
export CROSS_BUILD_PRE_BUILD="dpkg --add-architecture arm64 && apt-get update -y && apt-get install -y --no-install-recommends libssl-dev:arm64 lld"
6973
cross build --release --target aarch64-unknown-linux-gnu
7074
7175
- name: Package assets

Cargo.lock

Lines changed: 3 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "torrent-tidy"
3-
version = "0.1.9"
3+
version = "0.1.10"
44
edition = "2024"
55

66
[workspace]
@@ -16,7 +16,7 @@ strip = true # Strip symbols from binary*, strip = true is equivalent to
1616
debug = false # Disable debug info
1717

1818
[dependencies]
19-
reqwest = { version = "0.12", features = ["json", "cookies", "native-tls-vendored"] }
19+
reqwest = { version = "0.12", features = ["json", "cookies"] }
2020
serde = { version = "1.0", features = ["derive"] }
2121
tokio = { version = "1", features = ["rt-multi-thread", "macros"] }
2222
clap = { version = "4.5", features = ["derive"] }

src/q_bit.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ pub async fn rename_torrent(
9797

9898
if torrent.name != new_name {
9999
client
100-
.post(&format!("{}/api/v2/torrents/rename", webui_url))
100+
.post(format!("{}/api/v2/torrents/rename", webui_url))
101101
.form(&[("hash", &torrent.hash), ("name", &new_name)])
102102
.send()
103103
.await

0 commit comments

Comments
 (0)