From 7a7c86d315be0d25976622a3c2158a8997f8babb Mon Sep 17 00:00:00 2001 From: Zach Bacon Date: Fri, 3 Jan 2020 05:22:52 -0500 Subject: [PATCH] Fix the git versioning for the snapcraft.yaml --- snapcraft.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snapcraft.yaml b/snapcraft.yaml index 47115530..a1ad0ecf 100644 --- a/snapcraft.yaml +++ b/snapcraft.yaml @@ -50,7 +50,7 @@ parts: source: https://github.com/visualboyadvance-m/visualboyadvance-m.git override-pull: | snapcraftctl pull - last_commit="$(git describe)" + last_commit="$(git describe | sed 's/^v//; s/-.*-/-/')" 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 plugin: cmake