show build number in profile
This commit is contained in:
parent
beb7cd2b84
commit
89e0bf4eca
|
@ -12,4 +12,4 @@
|
||||||
(reg-sub
|
(reg-sub
|
||||||
:get-app-version
|
:get-app-version
|
||||||
(fn [{:keys [web3-node-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") "")))
|
||||||
|
|
|
@ -21,6 +21,11 @@
|
||||||
(println (analyzer/message env (str "\u001B[31mWARNING\u001B[0m: " s))))
|
(println (analyzer/message env (str "\u001B[31mWARNING\u001B[0m: " s))))
|
||||||
(System/exit 1))))
|
(System/exit 1))))
|
||||||
|
|
||||||
|
(defmacro get-build-no []
|
||||||
|
(-> (shell/sh "bash" "-c" "sh ./scripts/build_no.sh")
|
||||||
|
:out
|
||||||
|
(string/replace "\n" "")))
|
||||||
|
|
||||||
(defmacro git-short-version []
|
(defmacro git-short-version []
|
||||||
(let [version-file-path "VERSION"
|
(let [version-file-path "VERSION"
|
||||||
version-file (io/file version-file-path)]
|
version-file (io/file version-file-path)]
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
(ns status-im.utils.build
|
(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))
|
||||||
|
|
Loading…
Reference in New Issue