display current commit in status bar

it works for users who symlinked their blenderbim/bim folders to git repository or installed blenderbim from release created from makefile
https://i.imgur.com/mEBH9I7.png
This commit is contained in:
Andrej730
2023-07-12 12:15:12 +05:00
parent 3813c26db7
commit dd0a015ec3
3 changed files with 17 additions and 1 deletions
+2
View File
@@ -36,6 +36,7 @@ endif
endif
VERSION:=`date '+%y%m%d'`
LAST_COMMIT_HASH:=$(git rev-parse HEAD)
PYVERSION:=py310
ifeq ($(PYVERSION), py39)
@@ -675,6 +676,7 @@ endif
rm -rf dist/blenderbim/libs/site/packages/numpy.libs
cd dist/blenderbim && $(SED) "s/999999/$(VERSION)/" __init__.py
cd dist/blenderbim/bim && $(SED) "s/8888888/$(LAST_COMMIT_HASH)/" __init__.py
cd dist && zip -r blenderbim-$(VERSION)-$(PYVERSION)-$(PLATFORM).zip ./*
rm -rf dist/blenderbim