From 841fe4bf269523431ad314b10d068f42c7d97281 Mon Sep 17 00:00:00 2001 From: Leo Arias Date: Sat, 15 Jul 2017 20:23:49 +0000 Subject: Prepare the version of the snap package for the release tags --- snap/snapcraft.yaml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'snap/snapcraft.yaml') diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index f0f3310a..df52a837 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -1,5 +1,6 @@ name: solc -version: master +version: develop +version-script: git describe --exact-match --tags 2> /dev/null || echo "develop" summary: The Solidity Contract-Oriented Programming Language description: | Solidity is a contract-oriented, high-level language whose syntax is similar @@ -27,3 +28,8 @@ parts: plugin: cmake build-packages: [build-essential, libboost-all-dev] stage-packages: [libicu55] + prepare: | + if git describe --exact-match --tags 2> /dev/null + then + touch ../src/prerelease.txt + fi -- cgit v1.2.3