























Hello,
I wanted to inform you that the development branch has been updated to main. Additionally, to bump the version of the development build, it's now necessary to run pnpm prepare:nightly.
Furthermore, yarn is no longer a required dependency and can be safely removed.
Lastly, could you please clarify the process for updating this package after commits are pushed?
Thank you.
Why not just use mihomo as dependency
Should add pnpm as make dependency?
Upstream changed clash-meta executable to mihomo. In order to fix this package, clash-meta-is-mihomo is now added as a dependency.
Please note that this package and clash-meta-is-mihomo is not compatible with the mihomo package at all.
PKGBUILD suggestion
pkgname=clash-nyanpasu-git
_pkgname=clash-nyanpasu
pkgver=r1102.4015cb3
pkgrel=1
pkgdesc="A Clash GUI based on tauri."
arch=('x86_64' 'aarch64')
url="https://github.com/keiko233/clash-nyanpasu"
license=('GPL3')
depends=('webkit2gtk' 'clash-geoip' 'libayatana-appindicator')
optdepends=(
'clash-meta: use Clash core'
'clash-meta: use Clash.Meta core'
'clash-rs: use ClashRT core')
makedepends=('pnpm' 'cargo-tauri' 'jq' 'moreutils' 'rust' 'quickjs')
source=("git+https://github.com/keiko233/clash-nyanpasu.git#branch=dev"
"${_pkgname}.desktop"
)
provides=(clash-nyanpasu-git clash-nyanpasu)
conflicts=(clash-nyanpasu)
sha512sums=('SKIP' 'SKIP')
options=(!lto)
function pkgver() {
cd "${srcdir}/clash-nyanpasu"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
function prepare(){
system_clashpath=$(which clash || which clash-meta || which clash-rs || false)
if [[ -z $system_clashpath ]]; then
echo no any of clash found, you need install at least one of "clash" "clash-meta" "clash-rs", aborting...
exit 1
fi
cd "${srcdir}/clash-nyanpasu"
install -d src-tauri/sidecar
ln -sf "$system_clashpath" "src-tauri/sidecar/clash-${CARCH}-unknown-linux-gnu"
ln -sf "$system_clashpath" "src-tauri/sidecar/clash-meta-${CARCH}-unknown-linux-gnu"
ln -sf "$system_clashpath" "src-tauri/sidecar/clash-rs-${CARCH}-unknown-linux-gnu"
install -d src-tauri/resources
ln -sf /etc/clash/Country.mmdb src-tauri/resources/Country.mmdb
jq 'del(.scripts.prepare)' package.json|sponge package.json
cd src-tauri
# only build the excutable
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
}
function build(){
cd "${srcdir}/clash-nyanpasu"
# export HOME=$srcdir
export RUSTFLAGS="-L /usr/lib/quickjs"
pnpm install
pnpm run check
cargo-tauri build
}
package(){
cd "${srcdir}/clash-nyanpasu"
install -Dm755 "src-tauri/target/release/${_pkgname}" -t "${pkgdir}/usr/bin"
install -d "${pkgdir}/usr/lib/${_pkgname}/resources"
ln -sf /etc/clash/Country.mmdb -t "${pkgdir}/usr/lib/${_pkgname}/resources"
install -Dm644 src/assets/image/logo.svg "${pkgdir}/usr/share/icons/hicolor/scalable/apps/${_pkgname}.svg"
install -Dm644 "${srcdir}/${_pkgname}.desktop" -t "${pkgdir}/usr/share/applications"
}
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。
@TinyPower Thanks. Please test the new PKGBUILD