Skip to content

fix(aur): dynamic desktop file discovery + manual workflow_dispatch trigger - #2

Merged
zxkmm merged 1 commit into
masterfrom
copilot/fix-naming-issue-aur-script
Jun 30, 2026
Merged

fix(aur): dynamic desktop file discovery + manual workflow_dispatch trigger#2
zxkmm merged 1 commit into
masterfrom
copilot/fix-naming-issue-aur-script

Conversation

Copilot AI commented Jun 30, 2026

Copy link
Copy Markdown

SiYuan 3.7.0 renamed the bundled .desktop file inside the AppImage from siyuan.desktoporg.b3log.siyuan.desktop, breaking the AUR PKGBUILD with sed: can't read squashfs-root/siyuan.desktop: No such file or directory.

Changes

  • Desktop file discovery — Replace hardcoded siyuan.desktop in both build() and package() with a dynamic lookup, making it resilient to any future renames:

    _desktop_file=$(find squashfs-root -maxdepth 1 -name "*.desktop" -print -quit)
  • Manual trigger — Add workflow_dispatch with a required version input (e.g. v3.7.0) so the AUR release can be re-triggered without a new GitHub release event. The checktag, get_version, and get_version_without_v steps now branch on github.event_name to source the version from either the release tag or the manual input.

Copilot AI changed the title fix: AUR PKGBUILD desktop filename + manual trigger with version input fix(aur): dynamic desktop file discovery + manual workflow_dispatch trigger Jun 30, 2026
Copilot finished work on behalf of zxkmm June 30, 2026 04:36
Copilot AI requested a review from zxkmm June 30, 2026 04:36
@zxkmm
zxkmm marked this pull request as ready for review June 30, 2026 04:37
@zxkmm
zxkmm merged commit a80963b into master Jun 30, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants