From 6306a48f0ea152b9163c83f28b4d85a6ff76170f Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Sat, 29 Jan 2022 00:34:49 +0300 Subject: [PATCH] some tweaking... Signed-off-by: Alex A. Naanou --- Viewer/Makefile | 4 +++- Viewer/version.js.tpl | 7 ++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/Viewer/Makefile b/Viewer/Makefile index f23cc90e..a5b49aea 100755 --- a/Viewer/Makefile +++ b/Viewer/Makefile @@ -624,9 +624,11 @@ $(BUILD_INFO): $(CSS_FILES) $(NODE_DIR) $(PROJECT_FILES) \ @echo "electron: $(ELECTRON_VERSION)" | tee -a "$@" -version.js: package.json +version.js: package.json version.js.tpl cat version.js.tpl \ | sed 's/\$$VERSION/$(APP_VERSION)/' \ + | sed 's/\$$BUILD/$(DATE)/' \ + | sed 's/\$$COMMIT/$(COMMIT)/' \ > version.js diff --git a/Viewer/version.js.tpl b/Viewer/version.js.tpl index 4715bd7e..5f042b73 100644 --- a/Viewer/version.js.tpl +++ b/Viewer/version.js.tpl @@ -4,6 +4,11 @@ * do not edit directly. * Edit version.js.tpl instead. * +* Build: $BUILD +* Commit: $COMMIT +* +* NOTE: the build/commit data is of the time the version.js was built +* but may not be the current/latest... * **********************************************************************/ ((typeof define)[0]=='u'?function(f){module.exports=f(require)}:define) @@ -24,4 +29,4 @@ module.version = '$VERSION' /********************************************************************** -* vim:set ts=4 sw=4 : */ return module }) +* vim:set ts=4 sw=4 ft=javascript : */ return module })