Skip to content

Commit

Permalink
chore: update build scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
Mufanc committed Mar 7, 2024
1 parent 508949a commit 6ac0914
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion PKGBUILD.proto
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
4 changes: 2 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 6ac0914

Please sign in to comment.