net-proxy/clash-nyanpasu: update SRC_URI

Signed-off-by: 123485k <1758961307@qq.com>
This commit is contained in:
123485k 2025-02-11 01:49:21 +08:00 committed by peeweep
parent 5e5360e7fd
commit aefec0f479
3 changed files with 45 additions and 11 deletions

View File

@ -568,9 +568,9 @@ DIST thiserror-impl-1.0.58.crate 15645 BLAKE2B 9c6f643a582666ee4eb43330340888e71
DIST thread-id-4.2.1.crate 9100 BLAKE2B b342989d20b2b16939dda3b8bf6eeb378a94e5821c0d8f3c0528a720bf912f52e36604cdf6a6165c4521cc8f5e726cb19c20f71ff94915b72953f437bb3cf012 SHA512 91b07c01dbcf9a0b3edd6fd14f9f60ea26ed0cc8b21972e40fa2e34a0fa4abba1c71106994972929a99d9542bb186cc814406ee7979212526a69c5a8a49950c2
DIST thread_local-1.1.8.crate 13962 BLAKE2B fce2feddaaebde42bdb83d814929868f06387a4fa25d5becc73ff0b983395aabe076268569c6a89e2d90ce6e68d2ebca7c3e0ba1c9159c61b32631ce39289a9f SHA512 6d7e3941f43c43ac091db5d1cf2a8a3892b54b0634d9200426eadeb82015566532f04b6040085dbdcb10580ac724b6ded8416931d764d795a5f923aced66c492
DIST tiff-0.9.1.crate 1423953 BLAKE2B d01949cc3a76a32f2e802a151a4c1d4bbe47c7f217f198f940293d02fd6a1a6d3087c66b3fbc099da3e155f959774d2a9d4d8c5f5f00cd6486f5f44571a1dedd SHA512 82419e671c6a896f1d639d46a3c5a019e3bff6c75d961b838f5311e5ecb31c3baafc5f88fe928e88f6b3b31881a867ea4ca9905f43e3e24f77f183260dc27b93
DIST time-0.3.34.crate 118430 BLAKE2B 6d04a20596c9b0961ca104748d9d360f07b16059719d7410fdf1a7a0d5f2aa02aaebf640999464835964bbded2d3257d79c4b0ca3080fbecf13dd2d0aa6962fc SHA512 3997e1b8d9be2f54184ebc9e1355d4b65f0b7bc9439b2b29e4a4acd86ad3a3aa019261112a24d998d76a7f66b266a86536fa50412279911b14d4d7aa7078c116
DIST time-0.3.36.crate 119805 BLAKE2B d4da96368ab8565373d034edce261e0d8867036f2ba87e84b5e4a506a70ed3b62b93ba10734aecb39847e258cf7008b6ae57f92df8d0e5229cd3fec488d14caf SHA512 83da6e27691d1f0ef37ed276528e927686a06dab4811b6e29d625ef7a0f7c30fbb86896d74a2b087726e7a24a951b0a83aa1f5f22d711ead54f447d36ac47133
DIST time-core-0.1.2.crate 7191 BLAKE2B c477ad3410ff29f3bf4a38fc6ac4a043d49b6d2bdf5cf309ffcd2eec3bb6e4c4b62156ee7f069f0b37ea31c163bc75ccbf35abc1db2833cdd4912135e60ddfc9 SHA512 3861724c23cb806829a01186deb5217ae8252c20af622975264e6670cff528f42155039e4937756a9eb312a5580ffab07949437d5504d684a0e70755046cac52
DIST time-macros-0.2.17.crate 24443 BLAKE2B 5045af9352961db0c97cae2f6ca3e8d2c4f89a129c7ac2ec1d8d20804292aa9f2901a61f910a564954614b68f39311bd381deeb66fed8bdac423227d077f3d14 SHA512 c81747f0b74e68d3b3f36d378ac5911dece8c6b511e5ac793807f854cc31c812b927d0df941f55ff90d3d67512d0ac6a5f63f2de4322c81b05da42f46b4a661c
DIST time-macros-0.2.18.crate 24361 BLAKE2B 09fa325be0b1a5b922285f035484b0de8e339306b49595c87f6374e46459d6777c6db4b12c1a0c6ea9795ae8c741188fbb81208d0499a651760b9f5089323fc7 SHA512 557786115add272290be8305ab79c44f5b4425b64eb698492fe300f15879d9e013c66933cae8aa8faad9c109e2917e7a0e43c8a5eed7f4b0f0fdad092089efe4
DIST tinyvec-1.6.0.crate 45991 BLAKE2B e9699d4d80a78978f0ebfd049f5b33d7f23d401cf4f4439ccb168e8c0e322473ad0ea7e2ff0ff69e9aac3e5c4c9ae5a7102185533bfbf96dbe77b3526e700bc9 SHA512 e5acaf353c58c60ae5556130a934f1048abb79cf6668ae467d308bac44b689d8a9997227ea879f4b5fe50f29cde8761801b088d7149bcd063b973056c381921c
DIST tinyvec_macros-0.1.1.crate 5865 BLAKE2B 2bf4f68ca11dc19c72232951605a4c809b34ff38ee365ee4f592a3c41360e23c9330cfba961e2692a0ad568fef4aaaac51c40808d491178cf7a0c4b5a1c5d484 SHA512 10008c7b3a3d50c94b9c370015b76ee082f5dfb6dcacf014dc2f2dbe92f903618d10d0202b21f48fcf98a94ae76fb712db55a5e8ad353645d378cf0e6ec74f7e
DIST to_method-1.1.0.crate 4738 BLAKE2B 3648a6da105b96ed442f0d9c0ad279c60667b77590e861292357effc433108a734ddc0fa756e662887fc9114ed00978e1cab5b4cea8fc7f3b1a363df58cb61b2 SHA512 a5fba8d041f1862460fad430361ada6e622bf0879e4e7fb39d1d1d0aa286426e5de0a48f97c5019b4cc6bd8a04b7e58b3a5a42eb37ecca43e8f224995902c376

View File

@ -574,8 +574,8 @@ CRATES="
thread_local@1.1.8
tiff@0.9.1
time-core@0.1.2
time-macros@0.2.17
time@0.3.34
time-macros@0.2.18
time@0.3.36
tinyvec@1.6.0
tinyvec_macros@0.1.1
to_method@1.1.0
@ -767,6 +767,9 @@ SRC_URI="
${CARGO_CRATE_URIS}
"
SRC_URI+="https://github.com/liuyujielol/gentoo-go-deps/releases/download/${P}/${P}-node_modules-pnpm.tar.xz"
PATCHES=(
"${FILESDIR}"/clash-nyanpasu-1.5.1-fix-rust-1.80-compile-failure.patch
)
LICENSE="GPL-3"
# Dependent crate licenses
@ -799,7 +802,6 @@ RDEPEND="
mihomo? ( net-proxy/mihomo )
"
BDEPEND="
<dev-util/tauri-cli-2.0.0_alpha1
app-misc/jq
dev-lang/typescript
dev-lang/quickjs
@ -818,23 +820,24 @@ src_prepare() {
touch "${S}/backend/tauri/resources/Country.mmdb"
jq 'del(.scripts.prepare)' package.json|sponge package.json
cd ./backend/tauri
local tauri_conf_json="backend/tauri/tauri.conf.json"
# only build the excutable
jq '.tauri.bundle.active = false' tauri.conf.json|sponge tauri.conf.json
jq '.tauri.bundle.active = false' ${tauri_conf_json}|sponge ${tauri_conf_json}
# disable updater
jq '.tauri.updater.active = false' tauri.conf.json|sponge tauri.conf.json
jq '.tauri.updater.active = false' ${tauri_conf_json}|sponge ${tauri_conf_json}
default
}
src_compile() {
cargo-tauri build $(usex debug "-d" "") || die "cargo-tauri build failed"
#pnpm build || die
set -- pnpm tauri -v build $(usev debug "--debug") -c ./backend/tauri/tauri.conf.json
einfo "${@}"
"${@}" || die "tauri build failed"
}
src_install() {
dobin backend/target/$(usex debug "debug" "release")/clash-nyanpasu
newicon -s 32 backend/tauri/icons/32x32.png clash-nyanpasu.png
newicon -s 128 backend/tauri/icons/128x128.png clash-nyanpasu.png
newicon -s 256 backend/tauri/icons/128x128@2x.png clash-nyanpasu.png

View File

@ -0,0 +1,31 @@
diff --git a/backend/Cargo.lock b/backend/Cargo.lock
index 0997bacc..860e0629 100644
--- a/backend/Cargo.lock
+++ b/backend/Cargo.lock
@@ -6075,9 +6075,9 @@ dependencies = [
[[package]]
name = "time"
-version = "0.3.34"
+version = "0.3.36"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c8248b6521bb14bc45b4067159b9b6ad792e2d6d754d6c41fb50e29fefe38749"
+checksum = "5dfd88e563464686c916c7e46e623e520ddc6d79fa6641390f2e3fa86e83e885"
dependencies = [
"deranged",
"itoa 1.0.11",
@@ -6096,9 +6096,9 @@ checksum = "ef927ca75afb808a4d64dd374f00a2adf8d0fcff8e7b184af886c3c87ec4a3f3"
[[package]]
name = "time-macros"
-version = "0.2.17"
+version = "0.2.18"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7ba3a3ef41e6672a2f0f001392bb5dcd3ff0a9992d618ca761a11c3121547774"
+checksum = "3f252a68540fde3a3877aeea552b832b40ab9a69e318efd078774a01ddee1ccf"
dependencies = [
"num-conv",
"time-core",
--
2.48.1