summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--scripts/iot-making-building-blocks-dll.post14
1 files changed, 13 insertions, 1 deletions
diff --git a/scripts/iot-making-building-blocks-dll.post b/scripts/iot-making-building-blocks-dll.post
index f05593d..001cd82 100644
--- a/scripts/iot-making-building-blocks-dll.post
+++ b/scripts/iot-making-building-blocks-dll.post
@@ -2,12 +2,24 @@
echo "############### iot-making-building-blocks-dll.post ################"
+export IBCDATA_DIR=/usr/share/dotnet.tizen/ibcdata
+
if [ -f /opt/share/bb/make_tizenfx_from_bb.sh ]
then
/opt/share/bb/make_tizenfx_from_bb.sh
if [ -f /usr/bin/dotnettool ]
then
- dotnettool --ni-system
+ #remove previous native image
+ dotnettool --ni-reset-system
+
+ # generate native image
+ dotnettool --ibc-dir $IBCDATA_DIR --ni-system
+
+ # remove ibc data files
+ if [ -d $IBCDATA_DIR ]
+ then
+ rm -rf $IBCDATA_DIR
+ fi
else
echo "There is no execute file - /usr/bin/dotnettool"
fi