Fix the git versioning for the snapcraft.yaml

This commit is contained in:
Zach Bacon 2020-01-03 05:22:52 -05:00
parent ff0dbf8fe6
commit 7a7c86d315
No known key found for this signature in database
GPG Key ID: 0F1C8FECF5BCF671
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ parts:
source: https://github.com/visualboyadvance-m/visualboyadvance-m.git source: https://github.com/visualboyadvance-m/visualboyadvance-m.git
override-pull: | override-pull: |
snapcraftctl pull snapcraftctl pull
last_commit="$(git describe)" last_commit="$(git describe | sed 's/^v//; s/-.*-/-/')"
snapcraftctl set-version "${last_commit}" snapcraftctl set-version "${last_commit}"
sed -i.bak -e 's|Icon=visualboyadvance-m|Icon=/usr/share/icons/hicolor/scalable/apps/visualboyadvance-m.svg|g' src/wx/visualboyadvance-m.desktop sed -i.bak -e 's|Icon=visualboyadvance-m|Icon=/usr/share/icons/hicolor/scalable/apps/visualboyadvance-m.svg|g' src/wx/visualboyadvance-m.desktop
plugin: cmake plugin: cmake