fix(aur): dynamic desktop file discovery + manual workflow_dispatch trigger - #2
Merged
Merged
Conversation
…r with version 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 created this pull request from a session on behalf of
zxkmm
June 30, 2026 04:36
View session
zxkmm
marked this pull request as ready for review
June 30, 2026 04:37
zxkmm
approved these changes
Jun 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
SiYuan 3.7.0 renamed the bundled
.desktopfile inside the AppImage fromsiyuan.desktop→org.b3log.siyuan.desktop, breaking the AUR PKGBUILD withsed: can't read squashfs-root/siyuan.desktop: No such file or directory.Changes
Desktop file discovery — Replace hardcoded
siyuan.desktopin bothbuild()andpackage()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_dispatchwith a requiredversioninput (e.g.v3.7.0) so the AUR release can be re-triggered without a new GitHub release event. Thechecktag,get_version, andget_version_without_vsteps now branch ongithub.event_nameto source the version from either the release tag or the manual input.