mirror of
https://github.com/hicccc77/WeFlow.git
synced 2026-04-12 23:15:51 +00:00
12
.github/workflows/release.yml
vendored
12
.github/workflows/release.yml
vendored
@@ -311,10 +311,22 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- name: Update PKGBUILD version
|
||||||
|
run: |
|
||||||
|
NEW_VER=$(echo "${{ github.ref_name }}" | sed 's/^v//')
|
||||||
|
sed -i "s/^pkgver=.*/pkgver=${NEW_VER}/" resources/installer/linux/PKGBUILD
|
||||||
|
sed -i "s/^pkgrel=.*/pkgrel=1/" resources/installer/linux/PKGBUILD
|
||||||
|
|
||||||
- name: Publish AUR package
|
- name: Publish AUR package
|
||||||
uses: KSXGitHub/github-actions-deploy-aur@master
|
uses: KSXGitHub/github-actions-deploy-aur@master
|
||||||
with:
|
with:
|
||||||
pkgname: weflow
|
pkgname: weflow
|
||||||
|
pkgbuild: resources/installer/linux/PKGBUILD
|
||||||
|
updpkgsums: true
|
||||||
|
assets: |
|
||||||
|
resources/installer/linux/weflow.desktop
|
||||||
|
resources/installer/linux/icon.png
|
||||||
|
|
||||||
ssh_private_key: ${{ secrets.AUR_SSH_PRIVATE_KEY }}
|
ssh_private_key: ${{ secrets.AUR_SSH_PRIVATE_KEY }}
|
||||||
commit_username: H3CoF6
|
commit_username: H3CoF6
|
||||||
commit_email: h3cof6@gmail.com
|
commit_email: h3cof6@gmail.com
|
||||||
|
|||||||
30
resources/installer/linux/PKGBUILD
Normal file
30
resources/installer/linux/PKGBUILD
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
# Maintainer: H3CoF6 <h3cof6@gmail.com>
|
||||||
|
pkgname=weflow
|
||||||
|
pkgver=4.3.0
|
||||||
|
pkgrel=1
|
||||||
|
pkgdesc="A local WeChat database decryption and analysis tool"
|
||||||
|
arch=('x86_64')
|
||||||
|
url="https://github.com/hicccc77/weflow"
|
||||||
|
license=('CC-BY-NC-SA-4.0')
|
||||||
|
depends=('alsa-lib' 'gtk3' 'nss' 'glibc')
|
||||||
|
options=('!strip' '!debug')
|
||||||
|
|
||||||
|
source=("WeFlow-${pkgver}-Setup.tar.gz::${url}/releases/download/v${pkgver}/WeFlow-${pkgver}-Setup.tar.gz"
|
||||||
|
"weflow.desktop"
|
||||||
|
"icon.png")
|
||||||
|
|
||||||
|
sha256sums=('2859aca2f57c42f4d1516ed229613623c57d3e78b9cb152fcb2b9c1096ab9340'
|
||||||
|
'2cf03766f5c2f1915ad136f060a66f5788ed32b06defe1956e406c73d7e733b7'
|
||||||
|
'b1c412d9c08ae683e231173c16fe73958ad1063f14c9b3852373385e4fcb6f33')
|
||||||
|
|
||||||
|
package() {
|
||||||
|
install -dm755 "${pkgdir}/opt/${pkgname}"
|
||||||
|
|
||||||
|
cp -a "${srcdir}/WeFlow-${pkgver}-Setup/"* "${pkgdir}/opt/${pkgname}/"
|
||||||
|
|
||||||
|
install -dm755 "${pkgdir}/usr/bin"
|
||||||
|
ln -s "/opt/${pkgname}/weflow" "${pkgdir}/usr/bin/${pkgname}"
|
||||||
|
|
||||||
|
install -Dm644 "${srcdir}/weflow.desktop" -t "${pkgdir}/usr/share/applications/"
|
||||||
|
install -Dm644 "${srcdir}/icon.png" "${pkgdir}/usr/share/pixmaps/${pkgname}.png"
|
||||||
|
}
|
||||||
BIN
resources/installer/linux/icon.png
Normal file
BIN
resources/installer/linux/icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 54 KiB |
9
resources/installer/linux/weflow.desktop
Normal file
9
resources/installer/linux/weflow.desktop
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
[Desktop Entry]
|
||||||
|
Name=WeFlow
|
||||||
|
Comment=一个本地的微信聊天记录导出和年度报告应用
|
||||||
|
Exec=/usr/bin/weflow %U
|
||||||
|
Terminal=false
|
||||||
|
Type=Application
|
||||||
|
Icon=weflow
|
||||||
|
StartupWMClass=WeFlow
|
||||||
|
Categories=Utility;
|
||||||
Reference in New Issue
Block a user