Skip to content

Commit

Permalink
snap: fix version determination
Browse files Browse the repository at this point in the history
  • Loading branch information
Saviq committed Jan 7, 2025
1 parent 551f2e9 commit ef1b001
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,12 @@ parts:
override-stage: |
sed -i 's@/usr/lib/[a-z0-9_-]\+/@@' ${CRAFT_PART_INSTALL}/usr/share/vulkan/*/*.json
craftctl default
craftctl set version=$( apt-cache policy libgl1-mesa-dri | sed -rne 's/^\s+Candidate:\s+([^-]*)-.+$/\1/p' )
craftctl set version=$(
dpkg-parsechangelog \
--file ${CRAFT_PART_INSTALL}/usr/share/doc/libgl1-mesa-dri/changelog* \
--show-field Version \
| sed -rne 's/(^[0-9.]+).*/\1/p'
)
x11:
# X11 support (not much cost to having this)
Expand Down

0 comments on commit ef1b001

Please sign in to comment.