#!/bin/sh echo "############### wearable-dotnet-generate-ni.post ################" DLL_LIST=" /usr/share/dotnet.tizen/netcoreapp/System.Collections.dll /usr/share/dotnet.tizen/netcoreapp/System.Collections.Concurrent.dll /usr/share/dotnet.tizen/netcoreapp/System.Console.dll /usr/share/dotnet.tizen/netcoreapp/System.Diagnostics.Debug.dll /usr/share/dotnet.tizen/netcoreapp/System.IO.FileSystem.dll /usr/share/dotnet.tizen/netcoreapp/System.Linq.dll /usr/share/dotnet.tizen/netcoreapp/System.Linq.Expressions.dll /usr/share/dotnet.tizen/netcoreapp/System.ObjectModel.dll /usr/share/dotnet.tizen/netcoreapp/System.Private.DataContractSerialization.dll /usr/share/dotnet.tizen/netcoreapp/System.Private.Uri.dll /usr/share/dotnet.tizen/netcoreapp/System.Private.Xml.dll /usr/share/dotnet.tizen/netcoreapp/System.Reflection.Extensions.dll /usr/share/dotnet.tizen/netcoreapp/System.Reflection.Metadata.dll /usr/share/dotnet.tizen/netcoreapp/System.Runtime.dll /usr/share/dotnet.tizen/netcoreapp/System.Runtime.Extensions.dll /usr/share/dotnet.tizen/netcoreapp/System.Runtime.InteropServices.dll /usr/share/dotnet.tizen/netcoreapp/System.Security.Cryptography.Algorithms.dll /usr/share/dotnet.tizen/netcoreapp/System.Security.Cryptography.Primitives.dll /usr/share/dotnet.tizen/netcoreapp/System.Text.RegularExpressions.dll /usr/share/dotnet.tizen/netcoreapp/System.Threading.dll /usr/share/dotnet.tizen/netcoreapp/System.Threading.Tasks.dll /usr/share/dotnet.tizen/netcoreapp/System.Threading.Thread.dll /usr/share/dotnet.tizen/netcoreapp/System.Threading.Timer.dll /usr/share/dotnet.tizen/framework/ElmSharp.dll /usr/share/dotnet.tizen/framework/Tizen.dll /usr/share/dotnet.tizen/framework/Tizen.Applications.Common.dll /usr/share/dotnet.tizen/framework/Tizen.Applications.UI.dll /usr/share/dotnet.tizen/framework/Tizen.Applications.Service.dll /usr/share/dotnet.tizen/framework/Tizen.System.Information.dll /usr/share/dotnet.tizen/framework/XSF.dll " export IBCDATA_DIR=/usr/share/dotnet.tizen/ibcdata export COMPlus_UseIBCFile=1 export COMPlus_IBCFileDir=$IBCDATA_DIR # remove previous native image dotnettool --ni-reset-system # generate SPC native image and remove origin dotnettool --ni-dll /usr/share/dotnet.tizen/netcoreapp/System.Private.CoreLib.dll if [ -f '/usr/share/dotnet.tizen/netcoreapp/System.Private.CoreLib.dll.Backup' ] then echo "remove origin file : System.Private.CoreLib.dll.Backup" rm -f /usr/share/dotnet.tizen/netcoreapp/System.Private.CoreLib.dll.Backup touch /usr/share/dotnet.tizen/netcoreapp/System.Private.CoreLib.dll.Backup fi # generate native image for target in $DLL_LIST; do dotnettool --ni-dll $target; if [ -f ${target//.dll/.ni.dll} ] then echo "remove origin file : $target" rm -f $target fi done; # remove ibc data if [ -d $IBCDATA_DIR ] then echo "remove ibc data and directory" rm -rf $IBCDATA_DIR fi