An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: AUR: move to another repo and use some var from PKGBUILD side instead of github pipeline side (#12649)
zxkmmbfcef7728b9b
diff --git a/.github/workflows/auto_aur_release_stable.yml b/.github/workflows/auto_aur_release_stable.ymlindex a8f97fc65a..1d592dfbd4 100644--- a/.github/workflows/auto_aur_release_stable.yml+++ b/.github/workflows/auto_aur_release_stable.yml@@ -8,7 +8,6 @@ jobs:build:runs-on: ubuntu-lateststeps:-- name: Check tag aka check release typeid: checktagrun: |@@ -29,10 +28,6 @@ jobs:id: get_version_without_vrun: echo ::set-output name=TAG_VERSION_WITHOUT_V::$(echo "${{ github.event.release.tag_name }}" | sed 's/^v//')- - name: Extract package_file_name- id: get_package_file_name- run: echo ::set-output name=PACKAGE_FILE_NAME::siyuan-${{ steps.get_version_without_v.outputs.TAG_VERSION_WITHOUT_V }}-linux.AppImage-- name: Create PKGBUILDrun: |cat << EOF >> PKGBUILD@@ -40,35 +35,37 @@ jobs:# auto running on siyuan official repo# PKGBUILD is modified from https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=siyuan-appimage# which is made by vvxxp8 <concatenate[g] the characters[x] in square[b] brackets[1] in[5] order[3] at gmail dot com>-- pkgname=siyuan_stable- pkgver=${{ steps.get_version.outputs.TAG_VERSION }}- pkgrel=0+ # had agreement with the author to use the PKGBUILD+ # for change request, PLEASE MAKE A PR ON GITHUB REPO, keep commenting here would be ignored++ pkgname=siyuan-bin+ pkgver=${{ steps.get_version_without_v.outputs.TAG_VERSION_WITHOUT_V }}+ pkgrel=1pkgdesc="auto upload to AUR when SiYuan stable release"arch=("x86_64")url="https://b3log.org/siyuan"license=("AGPL-3.0-only")- _pkgname=${{ steps.get_package_file_name.outputs.PACKAGE_FILE_NAME }}- noextract=(${{ steps.get_package_file_name.outputs.PACKAGE_FILE_NAME }})+ _pkgname=siyuan-\${pkgver}-linux.AppImage+ noextract=(siyuan-\${pkgver}-linux.AppImage)options=("!strip" "!debug")depends=("fuse2")optdepends=('pandoc: docx export')- source=("\${_pkgname}::https://github.com/siyuan-note/siyuan/releases/download/${{ steps.get_version.outputs.TAG_VERSION }}/${{ steps.get_package_file_name.outputs.PACKAGE_FILE_NAME }}")+ source=("https://github.com/siyuan-note/siyuan/releases/download/v\${pkgver}/siyuan-\${pkgver}-linux.AppImage")sha256sums=('SKIP')-+_installdir=/opt/appimagesprepare() {chmod a+x \${_pkgname}./\${_pkgname} --appimage-extract >/dev/nullsed -i "s+AppRun+\${_installdir}/siyuan.AppImage+" "squashfs-root/siyuan.desktop"- sed -i "s+^Icon=.*+Icon=siyuan_stable+" "squashfs-root/siyuan.desktop"+ sed -i "s+^Icon=.*+Icon=siyuan-bin+" "squashfs-root/siyuan.desktop"}package() {install -Dm755 \${_pkgname} "\${pkgdir}/\${_installdir}/siyuan.AppImage"- install -Dm644 "squashfs-root/resources/stage/icon.png" "\${pkgdir}/usr/share/icons/hicolor/512x512/apps/siyuan_stable.png"- install -Dm644 "squashfs-root/siyuan.desktop" "\${pkgdir}/usr/share/applications/siyuan_stable.desktop"+ install -Dm644 "squashfs-root/resources/stage/icon.png" "\${pkgdir}/usr/share/icons/hicolor/512x512/apps/siyuan-bin.png"+ install -Dm644 "squashfs-root/siyuan.desktop" "\${pkgdir}/usr/share/applications/siyuan-bin.desktop"if [ ! -f "${pkgdir}/usr/bin/siyuan" ]; thenmkdir -p "${pkgdir}/usr/bin"@@ -82,7 +79,7 @@ jobs:- name: Publish AUR packageuses: KSXGitHub/[email protected]with:- pkgname: siyuan_stable+ pkgname: siyuan-binpkgbuild: ./PKGBUILDcommit_username: ${{ secrets.AUR_USERNAME }}commit_email: ${{ secrets.AUR_EMAIL }}