some tweaking...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2022-01-29 00:34:49 +03:00
parent 903cec53c0
commit 6306a48f0e
2 changed files with 9 additions and 2 deletions

View File

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

View File

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