From ec54fac4629a6c9c0c89be629352f1adeff742c8 Mon Sep 17 00:00:00 2001 From: kali Date: Wed, 10 Oct 2018 19:17:56 -0400 Subject: [feat] get version from file in snap this is the simplest way to get the version string from within the snap, since passing a ldflag to the golang plugin was going to be much more convoluted. - Resolves: #27 --- .gitignore | 1 + snap/version.sh | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index d8c97e9..b5b4fb6 100644 --- a/.gitignore +++ b/.gitignore @@ -18,3 +18,4 @@ stage *.snap *.tar.bz2 snap/.snapcraft +snap/version.txt diff --git a/snap/version.sh b/snap/version.sh index 655cb9c..92b0ab4 100755 --- a/snap/version.sh +++ b/snap/version.sh @@ -1,5 +1,4 @@ #!/bin/sh - git clone https://0xacab.org/leap/bitmask-systray 2> /dev/null > /dev/null -git -C bitmask-systray describe --tags +git -C bitmask-systray describe --tags | tee version.txt rm -rf bitmask-systray -- cgit v1.2.3