diff options
author | kali <kali@leap.se> | 2018-10-10 19:17:56 -0400 |
---|---|---|
committer | Kali Kaneko (leap communications) <kali@leap.se> | 2018-10-11 01:20:51 +0200 |
commit | ec54fac4629a6c9c0c89be629352f1adeff742c8 (patch) | |
tree | 41438fb3736f0ad5a9125df1cebb1b9642fdc24b | |
parent | 5a9a10e6582f8f8754f3ffa48aac1b80d1f5de43 (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-- | .gitignore | 1 | ||||
-rwxr-xr-x | snap/version.sh | 3 |
2 files changed, 2 insertions, 2 deletions
@@ -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 |