From 6ac09148d96c41c21f1c833ac85de62d40162196 Mon Sep 17 00:00:00 2001 From: Mufanc Date: Thu, 7 Mar 2024 16:59:32 +0800 Subject: [PATCH] chore: update build scripts --- PKGBUILD.proto | 2 +- build.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/PKGBUILD.proto b/PKGBUILD.proto index 93496ec..256899a 100644 --- a/PKGBUILD.proto +++ b/PKGBUILD.proto @@ -43,5 +43,5 @@ package() { rm "$res"/sharp-lib/* # 替换 desktop 名称 - sed -i -E "s#(Name=.*)#Name=QQ (wrap)#" "$pkgdir/usr/share/applications/qq.desktop" + sed -i -E "s#(Name=.*)#Name=QQ*#" "$pkgdir/usr/share/applications/qq.desktop" } diff --git a/build.sh b/build.sh index aad5e5f..6879a71 100755 --- a/build.sh +++ b/build.sh @@ -1,5 +1,5 @@ -export SOURCE=$(curl -s https://im.qq.com/rainbow/linuxQQDownload/ | grep -Eo '"deb":"[^"]+"' | grep -Eo 'https://.*_amd64\.deb') -export PKGVER=$(echo "$SOURCE" | awk -F "linuxqq_|-" '{print $2}') +export SOURCE=$(curl -s https://im.qq.com/rainbow/linuxQQDownload/ | grep -Eo '"deb":"[^"]+"' | grep -Eo 'https://.*_amd64.*\.deb') +export PKGVER=$(echo "$SOURCE" | awk -F '_' '{print $2}') export PKGROOT=$(realpath "$(dirname "$0")") envsubst "$(env | grep -Po '^[A-Z_]+(?==)' | sed 's/^/$/g')" < PKGBUILD.proto > PKGBUILD