Update to 26.1.13

This commit is contained in:
Nebulosa 2026-01-18 03:11:48 +03:00
parent cea05fa99e
commit c5a67c5950
3 changed files with 25 additions and 24 deletions

View file

@ -1,6 +1,6 @@
pkgbase = 3x-ui-xray-core
pkgdesc = Xray, Penetrates Everything. Also the best v2ray-core (for *x-ui)
pkgver = 25.12.8
pkgver = 26.1.13
pkgrel = 1
url = https://github.com/XTLS/Xray-core
install = 3x-ui-xray-core.install
@ -14,8 +14,8 @@ pkgbase = 3x-ui-xray-core
provides = x-ui-xray-core
conflicts = x-ui-xray-core
options = !debug
source = https://github.com/XTLS/Xray-core/archive/v25.12.8/3x-ui-xray-core-25.12.8.tar.gz
sha256sums = d4519b2d9bb1871f4d7612aa7a8db1c451573b5a44ac824219bb44d63f404e61
b2sums = 6514d908754ee7f95d2bcf2ec05e1b4c7167f5375e1d8f30f7f027ea04e0dd54c202bef4bf83c710cc7ccc4efccc066c0d173522f05d93d6b21edcea91d423b5
source = https://github.com/XTLS/Xray-core/archive/v26.1.13/3x-ui-xray-core-26.1.13.tar.gz
sha256sums = c814c9b2e6c92e08d3db929792c56e2863a1a0e252c774ec048095efea6b67a1
b2sums = c224b60febb4486d6c8d9fe9aab9670910a1031dac8ffcf5b43c4c8c098652462e04645fe199e30f576b2688823e4f42e6474095eff13f7286161ca6b0a1977b
pkgname = 3x-ui-xray-core

View file

@ -1,22 +1,23 @@
post_install() {
echo "==> Downloading latest geo files..."
echo ":: Downloading latest geo files..."
repos=(
"Loyalsoldier/v2ray-rules-dat"
"chocolate4u/Iran-v2ray-rules:_IR"
"runetfreedom/russia-v2ray-rules-dat:_RU"
)
for repo in "${repos[@]}"; do
user_suffix="${repo%%:*}"
suffix="${repo#*:}"
[ "$suffix" = "$repo" ] && suffix=""
for f in geoip geosite; do
curl -fSL "https://github.com/$user_suffix/releases/latest/download/$f.dat" \
-o "/usr/lib/x-ui/bin/${f}${suffix}.dat" || echo "Failed to fetch $f from $user_suffix"
update_geofiles() {
case "${1}" in
"main") dat_files=(geoip geosite); dat_source="Loyalsoldier/v2ray-rules-dat";;
"IR") dat_files=(geoip_IR geosite_IR); dat_source="chocolate4u/Iran-v2ray-rules" ;;
"RU") dat_files=(geoip_RU geosite_RU); dat_source="runetfreedom/russia-v2ray-rules-dat";;
esac
for dat in "${dat_files[@]}"; do
# Remove suffix for remote filename (e.g., geoip_IR -> geoip)
remote_file="${dat%%_*}"
curl -sfLRo ${xui_folder}/bin/${dat}.dat -z ${xui_folder}/bin/${dat}.dat \
https://github.com/${dat_source}/releases/latest/download/${remote_file}.dat
done
done
}
update_geofiles "main"
update_geofiles "IR"
update_geofiles "RU"
}
post_upgrade() {
@ -26,4 +27,4 @@ post_upgrade() {
pre_remove() {
find /usr/lib/x-ui/bin -maxdepth 1 -type f -name 'geoip{,_IR,_RU}.dat' -delete
find /usr/lib/x-ui/bin -maxdepth 1 -type f -name 'geosite{,_IR,_RU}.dat' -delete
}
}

View file

@ -1,7 +1,7 @@
# Maintainer: Nebulosa <nebulosa2007-at-yandex-dot-ru>
pkgname=3x-ui-xray-core
pkgver=25.12.8
pkgver=26.1.13
pkgrel=1
pkgdesc="Xray, Penetrates Everything. Also the best v2ray-core (for *x-ui)"
arch=(aarch64 armv7h i686 x86_64)
@ -14,8 +14,8 @@ conflicts=(x-ui-xray-core)
options=(!debug)
install=$pkgname.install
source=($url/archive/v$pkgver/$pkgname-$pkgver.tar.gz)
sha256sums=('d4519b2d9bb1871f4d7612aa7a8db1c451573b5a44ac824219bb44d63f404e61')
b2sums=('6514d908754ee7f95d2bcf2ec05e1b4c7167f5375e1d8f30f7f027ea04e0dd54c202bef4bf83c710cc7ccc4efccc066c0d173522f05d93d6b21edcea91d423b5')
sha256sums=('c814c9b2e6c92e08d3db929792c56e2863a1a0e252c774ec048095efea6b67a1')
b2sums=('c224b60febb4486d6c8d9fe9aab9670910a1031dac8ffcf5b43c4c8c098652462e04645fe199e30f576b2688823e4f42e6474095eff13f7286161ca6b0a1977b')
build() {
cd Xray-core-$pkgver