From d5dd37b165b11a2922d16bf3f2aba6c8c457e6c8 Mon Sep 17 00:00:00 2001 From: Keagan McClelland Date: Wed, 20 Oct 2021 12:15:26 -0600 Subject: [PATCH] change relevant git files --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index b8ee96519..b3cf8be23 100644 --- a/Makefile +++ b/Makefile @@ -8,7 +8,8 @@ UI_SRC := $(shell find ui/src) SETUP_WIZARD_SRC := $(shell find setup-wizard/src) DIAGNOSTIC_UI_SRC := $(shell find diagnostic-ui/src) PATCH_DB_CLIENT_SRC = $(shell find patch-db/client -not -path patch-db/client/dist) -TMP_FILE := $(mktemp) +GIT_REFS := $(shell find .git/refs/heads) +TMP_FILE := $(shell mktemp) all: eos.img @@ -56,7 +57,7 @@ ui/node_modules: ui/package.json ui/www: $(UI_SRC) ui/node_modules patch-db/client patch-db/client/dist ui/config.json config-git-hash npm --prefix ui run build-prod -ui/config.json: .git/packed-refs .git/HEAD +ui/config.json: .git/HEAD $(GIT_REFS) jq '.mocks.enabled = false' ui/config-sample.json > ui/config.json jq '.gitHash = "$(shell git rev-parse HEAD)"' ui/config.json > $(TMP_FILE) && mv $(TMP_FILE) ui/config.json