Package Details: clash-nyanpasu-nightly-bin 2.0.0_alpha+8b8a9ba-1

Git Clone URL: https://aur.archlinux.org/clash-nyanpasu-nightly-bin.git (read-only, click to copy)
Package Base: clash-nyanpasu-nightly-bin
Description: A Clash GUI based on tauri. Clash Nyanpasu! (∠・ω< )⌒☆​
Upstream URL: https://github.com/LibNyanpasu/clash-nyanpasu
Keywords: clash clash-nyanpasu clash-nyanpasu-bin
Licenses: GPL3
Conflicts: clash-nyanpasu, clash-nyanpasu-appimage, clash-nyanpasu-bin, clash-nyanpasu-git
Submitter: c114514
Maintainer: c114514
Last Packager: c114514
Votes: 2
Popularity: 0.74
First Submitted: 2025-05-16 17:47 (UTC)
Last Updated: 2025-11-06 16:41 (UTC)

Latest Comments

MoonVoid commented on 2025-11-02 13:29 (UTC)

无法安装

fetching devel info...
==> Making package: clash-nyanpasu-nightly-bin 2.0.0_alpha+7363874-1 (Sun Nov  2 13:28:48 2025)
==> Retrieving sources...
  -> Downloading clash-nyanpasu-2.0.0-alpha+7363874-x86_64.deb...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:--  0:00:04 --:--:--     0
curl: (22) The requested URL returned error: 404
==> ERROR: Failure while downloading https://github.com/LibNyanpasu/clash-nyanpasu/releases/download/pre-release/Clash.Nyanpasu_2.0.0-alpha+7363874_amd64.deb
    Aborting...
error: failed to download sources for 'clash-nyanpasu-nightly-bin-2.0.0_alpha+890a986-1': 
error: packages failed to build: clash-nyanpasu-nightly-bin-2.0.0_alpha+890a986-1

c114514 commented on 2025-10-19 03:39 (UTC)

我之前是认为每天手动更新版本号任务有些机械和繁重,所以才改成了现在这样。 要不在Github actions之类的地方写个定时任务,每天拉取一下新版本号,然后更新到PKGBUILD?

@chust 也可以,最好向上游提个 pr ,每次构建完就更新版本好并且自动推送(不过要看上游接不接受)

c114514 commented on 2025-10-19 03:39 (UTC)

我之前是认为每天手动更新版本号任务有些机械和繁重,所以才改成了现在这样。 要不在Github actions之类的地方写个定时任务,每天拉取一下新版本号,然后更新到PKGBUILD?

@chust 也可以,最好向上游提个 pr ,每次构建完就更新版本好并且自动推送(不过要看上游接不接受)

chust commented on 2025-10-19 02:01 (UTC)

我之前是认为每天手动更新版本号任务有些机械和繁重,所以才改成了现在这样。

要不在Github actions之类的地方写个定时任务,每天拉取一下新版本号,然后更新到PKGBUILD?

c114514 commented on 2025-10-18 18:45 (UTC) (edited on 2025-10-18 19:28 (UTC) by c114514)

能否通过读取https://github.com/libnyanpasu/clash-nyanpasu/releases/download/pre-release/latest.json来获取实际版本号,然后下载deb包? nightly的版本每天都在更新,在PKGBUILD里面写版本号的话,跟不上更新,旧版本的包又不会保留,所以安装aur包会失败。

@chust 这样写会导致 paru-git 和 yay-git 无法获取到后续上游的更新,我个人倾向于手动更新版本号

chust commented on 2025-10-18 02:05 (UTC) (edited on 2025-10-18 09:21 (UTC) by chust)

现在安装时会报下面的错误,是因为图标文件名中含空格。我修改了一下PKGBUILD,增加了图标重命名,以及新增了一个矢量图标。 另外由于主程序文件名变成了Clash Nyanpasu,带空格,导致自动启动失效,把相关的名字改回了clash-nyanpasu

gtk-update-icon-cache: The generated cache was invalid.
错误:命令未能被正确执行

修改的版本如下:

pkgname=clash-nyanpasu-nightly-bin
_pkgname=clash-nyanpasu
pkgrel=1
pkgdesc="A Clash GUI based on tauri. Clash Nyanpasu! (∠・ω< )⌒☆​"
arch=('x86_64')
url="https://github.com/LibNyanpasu/clash-nyanpasu"
license=('GPL3')
options=('!strip' '!debug')
depends=('webkit2gtk-4.1' 'gtk3' 'libayatana-appindicator')
conflicts=('clash-nyanpasu-git' 'clash-nyanpasu-appimage' 'clash-nyanpasu' 'clash-nyanpasu-bin' 'mihomo')
provides=('clash-nyanpasu')
makedepends=('curl' 'jq')

_pkgver=$(curl -Ls "https://github.com/libnyanpasu/clash-nyanpasu/releases/download/pre-release/latest.json" | jq -r '.version')
pkgver=$(echo "${_pkgver}" | sed 's/-/_/')

source=("${_pkgname}-${_pkgver}-${arch}.deb::https://github.com/LibNyanpasu/clash-nyanpasu/releases/download/pre-release/Clash.Nyanpasu_${_pkgver}_amd64.deb"
"logo.svg::https://github.com/libnyanpasu/clash-nyanpasu/raw/refs/heads/main/frontend/nyanpasu/src/assets/image/logo.svg")
sha256sums=('SKIP'
'07bdec01fa4fab2015ef605371e0760f0ba45d60fbee4795a5f56cd5638f3d23')

package() {
  tar xpf data.tar.gz -C ${pkgdir}

  # Fix icons
  install -Dm644 logo.svg "${pkgdir}/usr/share/icons/hicolor/scalable/apps/${_pkgname}.svg"
  mv "${pkgdir}/usr/share/icons/hicolor/32x32/apps/Clash Nyanpasu.png" "${pkgdir}/usr/share/icons/hicolor/32x32/apps/${_pkgname}.png"
  mv "${pkgdir}/usr/share/icons/hicolor/128x128/apps/Clash Nyanpasu.png" "${pkgdir}/usr/share/icons/hicolor/128x128/apps/${_pkgname}.png"
  mv "${pkgdir}/usr/share/icons/hicolor/256x256@2/apps/Clash Nyanpasu.png" "${pkgdir}/usr/share/icons/hicolor/256x256@2/apps/${_pkgname}.png"
  sed -i "s/Icon=Clash Nyanpasu/Icon=${_pkgname}/" "${pkgdir}/usr/share/applications/Clash Nyanpasu.desktop"

  # Fix program name for autostart
  mv "${pkgdir}/usr/bin/Clash Nyanpasu" "${pkgdir}/usr/bin/${_pkgname}"
  mv "${pkgdir}/usr/lib/Clash Nyanpasu" "${pkgdir}/usr/lib/${_pkgname}"
  sed -i "s/Exec=\"Clash Nyanpasu\"/Exec=${_pkgname}/" "${pkgdir}/usr/share/applications/Clash Nyanpasu.desktop"
}

chust commented on 2025-10-12 11:13 (UTC)

使用下面的PKGBUILD吧,现在的版本过了一天又失效了,还是得能自动更新版本号才行

pkgname=clash-nyanpasu-nightly-bin
_pkgname=clash-nyanpasu
pkgrel=1
pkgdesc="A Clash GUI based on tauri. Clash Nyanpasu! (∠・ω< )⌒☆​"
arch=('x86_64')
url="https://github.com/LibNyanpasu/clash-nyanpasu"
license=('GPL3')
options=(!strip)
depends=('webkit2gtk-4.1' 'gtk3' 'libayatana-appindicator')
conflicts=('clash-nyanpasu-git' 'clash-nyanpasu-appimage' 'clash-nyanpasu' 'clash-nyanpasu-bin')
makedepends=('curl' 'jq')

_pkgver=$(curl -Ls "https://github.com/libnyanpasu/clash-nyanpasu/releases/download/pre-release/latest.json" | jq -r '.version')
pkgver=$(echo "${_pkgver}" | sed 's/-/_/')

source=("${_pkgname}-${_pkgver}-${arch}.deb::https://github.com/LibNyanpasu/clash-nyanpasu/releases/download/pre-release/Clash.Nyanpasu_${_pkgver}_amd64.deb")
sha256sums=('SKIP')

package() {
  tar xpf data.tar.gz -C ${pkgdir}
}

chust commented on 2025-10-10 07:12 (UTC)

能否通过读取https://github.com/libnyanpasu/clash-nyanpasu/releases/download/pre-release/latest.json来获取实际版本号,然后下载deb包? nightly的版本每天都在更新,在PKGBUILD里面写版本号的话,跟不上更新,旧版本的包又不会保留,所以安装aur包会失败。