From 6bea964db02a7458d404fc9c07a99890dac34768 Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Wed, 17 Jan 2024 17:10:07 +0500 Subject: [PATCH] update blenderbim build to include translation data --- src/blenderbim/Makefile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/blenderbim/Makefile b/src/blenderbim/Makefile index db77df524a..9d5a2ddd69 100644 --- a/src/blenderbim/Makefile +++ b/src/blenderbim/Makefile @@ -696,6 +696,13 @@ endif # Required for Desktop icon and file association cp -r blenderbim/libs/desktop dist/blenderbim/libs/ + # generate translations module for BBIM build + # note that bpy is typically available only for current Blender python version + pip install bpy + git clone https://github.com/IfcOpenShell/blenderbim-translations.git dist/working + python blenderbim/scripts/bbim_translations.py -i "dist/working" -o "dist/blenderbim/translations.py" + rm -rf dist/working + # Remove dependencies also bundled with Blender rm -rf dist/blenderbim/libs/site/packages/numpy rm -rf dist/blenderbim/libs/site/packages/numpy.libs