show build number in profile

This commit is contained in:
Roman Volosovskyi 2018-06-04 14:05:29 +03:00
parent beb7cd2b84
commit 89e0bf4eca
No known key found for this signature in database
GPG Key ID: 0238A4B5ECEE70DE
3 changed files with 9 additions and 3 deletions

View File

@ -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") "")))

View File

@ -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)]

View File

@ -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))