show build number in profile

This commit is contained in:
Roman Volosovskyi
2018-06-05 11:16:04 +03:00
parent beb7cd2b84
commit 89e0bf4eca
3 changed files with 9 additions and 3 deletions
+1 -1
View File
@@ -12,4 +12,4 @@
(reg-sub
:get-app-version
(fn [{:keys [web3-node-version]}]
(str build/version " (" (or web3-node-version "N/A") ")")))
(str build/version " (" build/build-no ")\nnode " (or web3-node-version "N/A") "")))
+5
View File
@@ -21,6 +21,11 @@
(println (analyzer/message env (str "\u001B[31mWARNING\u001B[0m: " s))))
(System/exit 1))))
(defmacro get-build-no []
(-> (shell/sh "bash" "-c" "sh ./scripts/build_no.sh")
:out
(string/replace "\n" "")))
(defmacro git-short-version []
(let [version-file-path "VERSION"
version-file (io/file version-file-path)]
+3 -2
View File
@@ -1,4 +1,5 @@
(ns status-im.utils.build
(:require-macros [status-im.utils.build :refer [git-short-version]]))
(:require-macros [status-im.utils.build :as build]))
(def version (git-short-version))
(def version (build/git-short-version))
(def build-no (build/get-build-no))