-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
自动更新AUR包 #4930
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
自动更新AUR包 #4930
Conversation
sha512sums_x86_64=('SKIP') | ||
sha512sums_aarch64=('SKIP') | ||
sha512sums_armv7h=('SKIP') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ℹ️ 此处的 sha512sums
被统一指定为 ('SKIP')
是否合理?除 SHA512 外,AUR 的 PKGBUILD
是否还支持其他哈希算法,例如 SHA256 ?
GitHub 官方现已支持自动为所有 Release Assets 计算 SHA256 值,可以通过 GitHub CLI 从 GitHub GraphQL API 中获取,在此处指定能够提升发行安全性,确保其底层使用的 deb
与官方一致。
21:43:33 D:\Repository 0ms pwsh
$ gh release view 'autobuild' --repo clash-verge-rev/clash-verge-rev --json assets --jq '.assets' |
> ConvertFrom-Json |
> Where-Object -Property name -Match '.deb' |
> Select-Object -Property name, digest
name digest
---- ------
Clash.Verge_2.4.3+autobuild.1003.c5023b4_amd64.deb sha256:fd0eb9938a7b743f073c5a4755b587827d31c8a1d827b495e315b6d367571554
Clash.Verge_2.4.3+autobuild.1003.c5023b4_arm64.deb sha256:2a8b4297277e06058d635daa7e3b20372a5d2f9da0e69ad264e5c55bb1b482fd
Clash.Verge_2.4.3+autobuild.1003.c5023b4_armhf.deb sha256:f4f4a254abb1bd39461e021e9bfb2b2063ac417db07a22830eddea1c9715df7e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Arch Linux Wiki 有提及,PKGBUILD
支持包括 SHA256 在内的哈希算法,可以考虑加 Steps 把官方 SHA256 值刷进去。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Arch Linux Wiki 有提及,
PKGBUILD
支持包括 SHA256 在内的哈希算法,可以考虑加 Steps 把官方 SHA256 值刷进去。
updpkgsums: true
就是干这个的
https://aur.archlinux.org/packages/clash-verge-rev-bin https://aur.archlinux.org/packages/clash-verge-rev-autobuild-bin 社区已经有人在做 AUR 推送了。我不太确定官方接受是否是件好事,并且我们没有 arch 环境来测试。 |
需要在
secrets
中配置以下信息AUR_USERNAME
:aur账户名AUR_EMAIL
:aur账户邮箱AUR_SSH_PRIVATE_KEY
:aur ssh私钥