summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkali <kali@leap.se>2018-10-10 19:17:56 -0400
committerKali Kaneko (leap communications) <kali@leap.se>2018-10-11 01:20:51 +0200
commitec54fac4629a6c9c0c89be629352f1adeff742c8 (patch)
tree41438fb3736f0ad5a9125df1cebb1b9642fdc24b
parent5a9a10e6582f8f8754f3ffa48aac1b80d1f5de43 (diff)
[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
-rw-r--r--.gitignore1
-rwxr-xr-xsnap/version.sh3
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