From: j-h.choi Date: Mon, 15 Jun 2020 08:44:06 +0000 (+0900) Subject: Added the '--ibc-dir' option in dotnettool X-Git-Tag: accepted/tizen/6.0/unified/hotfix/20201103.045923^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0ba92e1b38f087dd21d4dafceeb0fc2823ae459d;p=profile%2Ftv%2Fmeta-tv.git Added the '--ibc-dir' option in dotnettool Change-Id: I95fcf11174496d5c61170be53d35fa8bb1e31775 --- diff --git a/scripts/tv-dotnet-generate-ni.post b/scripts/tv-dotnet-generate-ni.post index ccb2938..1147b82 100644 --- a/scripts/tv-dotnet-generate-ni.post +++ b/scripts/tv-dotnet-generate-ni.post @@ -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