Added the '--ibc-dir' option in dotnettool 63/236163/2
authorj-h.choi <j-h.choi@samsung.com>
Mon, 15 Jun 2020 08:44:06 +0000 (17:44 +0900)
committerj-h.choi <j-h.choi@samsung.com>
Thu, 18 Jun 2020 03:38:07 +0000 (12:38 +0900)
Change-Id: I95fcf11174496d5c61170be53d35fa8bb1e31775

scripts/tv-dotnet-generate-ni.post

index ccb2938..1147b82 100644 (file)
@@ -1,9 +1,20 @@
 #!/bin/sh
 echo "############### tv-dotnet-generate-ni.post ################"
 # Generate NI for dlls and exes under platform directories
-nitool --system
 
+export IBCDATA_DIR=/usr/share/dotnet.tizen/ibcdata
 
+# 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