From 73ff0a3f74a47833bf9d0a28df82e40c310bb685 Mon Sep 17 00:00:00 2001 From: "j-h.choi" Date: Mon, 30 Oct 2023 13:53:26 +0900 Subject: [PATCH] [Build] Create vconf related to .NET as a file in RO location --- packaging/csapi-tizenfx.spec | 6 ++++++ packaging/csapi-tizenfx.spec.in | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/packaging/csapi-tizenfx.spec b/packaging/csapi-tizenfx.spec index 0cf3614f20d..4ab38a8e760 100644 --- a/packaging/csapi-tizenfx.spec +++ b/packaging/csapi-tizenfx.spec @@ -9,6 +9,7 @@ %define DOTNET_ASSEMBLY_RES_PATH %{DOTNET_ASSEMBLY_PATH}/res %define DOTNET_TOOLS_PATH /usr/share/dotnet.tizen/tools %define DOTNET_PRELOAD_PATH /usr/share/dotnet.tizen/preload +%define DOTNET_LIBRARY_PATH /usr/share/dotnet.tizen/lib %define DOTNET_NUGET_SOURCE /nuget %define TIZEN_NET_RUNTIME_IDENTIFIERS 4.0.0:5.0.0:5.5.0:6.0.0:6.5.0:7.0.0:8.0.0 @@ -182,6 +183,7 @@ mkdir -p %{buildroot}%{DOTNET_ASSEMBLY_RES_PATH} mkdir -p %{buildroot}%{DOTNET_NUGET_SOURCE} mkdir -p %{buildroot}%{DOTNET_TOOLS_PATH} mkdir -p %{buildroot}%{DOTNET_PRELOAD_PATH} +mkdir -p %{buildroot}%{DOTNET_LIBRARY_PATH} # Install Runtime Assemblies install -p -m 644 Artifacts/bin/public/*.dll %{buildroot}%{DOTNET_ASSEMBLY_PATH} @@ -221,6 +223,10 @@ install -p -m 755 packaging/500.tizenfx_upgrade.sh %{buildroot}%{UPGRADE_SCRIPT_ /usr/bin/vconftool set -t string db/dotnet/tizen_rid_version %{TIZEN_NET_RUNTIME_IDENTIFIERS} -f /usr/bin/vconftool set -t string db/dotnet/tizen_tfm_support %{TIZEN_NET_TARGET_FRAMEWORK_MONIKERS} -f /usr/bin/vconftool set -t string db/dotnet/runtime_version %{DOTNET_CORE_RUNTIME_VERSION} -f +touch %{buildroot}%{DOTNET_LIBRARY_PATH}/dotnet_vconf.info +echo "db/dotnet/tizen_rid_version %{TIZEN_NET_RUNTIME_IDENTIFIERS}" >> %{buildroot}%{DOTNET_LIBRARY_PATH}/dotnet_vconf.info +echo "db/dotnet/tizen_tfm_support %{TIZEN_NET_TARGET_FRAMEWORK_MONIKERS}" >> %{buildroot}%{DOTNET_LIBRARY_PATH}/dotnet_vconf.info +echo "db/dotnet/runtime_version %{DOTNET_CORE_RUNTIME_VERSION}" >> %{buildroot}%{DOTNET_LIBRARY_PATH}/dotnet_vconf.info %files %license LICENSE diff --git a/packaging/csapi-tizenfx.spec.in b/packaging/csapi-tizenfx.spec.in index c7e14fe430c..d3a848f3f75 100644 --- a/packaging/csapi-tizenfx.spec.in +++ b/packaging/csapi-tizenfx.spec.in @@ -8,6 +8,7 @@ %define DOTNET_ASSEMBLY_RES_PATH %{DOTNET_ASSEMBLY_PATH}/res %define DOTNET_TOOLS_PATH /usr/share/dotnet.tizen/tools %define DOTNET_PRELOAD_PATH /usr/share/dotnet.tizen/preload +%define DOTNET_LIBRARY_PATH /usr/share/dotnet.tizen/lib %define DOTNET_NUGET_SOURCE /nuget %define TIZEN_NET_RUNTIME_IDENTIFIERS @rid_version@ @@ -181,6 +182,7 @@ mkdir -p %{buildroot}%{DOTNET_ASSEMBLY_RES_PATH} mkdir -p %{buildroot}%{DOTNET_NUGET_SOURCE} mkdir -p %{buildroot}%{DOTNET_TOOLS_PATH} mkdir -p %{buildroot}%{DOTNET_PRELOAD_PATH} +mkdir -p %{buildroot}%{DOTNET_LIBRARY_PATH} # Install Runtime Assemblies install -p -m 644 Artifacts/bin/public/*.dll %{buildroot}%{DOTNET_ASSEMBLY_PATH} @@ -220,6 +222,10 @@ install -p -m 755 packaging/500.tizenfx_upgrade.sh %{buildroot}%{UPGRADE_SCRIPT_ /usr/bin/vconftool set -t string db/dotnet/tizen_rid_version %{TIZEN_NET_RUNTIME_IDENTIFIERS} -f /usr/bin/vconftool set -t string db/dotnet/tizen_tfm_support %{TIZEN_NET_TARGET_FRAMEWORK_MONIKERS} -f /usr/bin/vconftool set -t string db/dotnet/runtime_version %{DOTNET_CORE_RUNTIME_VERSION} -f +touch %{buildroot}%{DOTNET_LIBRARY_PATH}/dotnet_vconf.info +echo "db/dotnet/tizen_rid_version %{TIZEN_NET_RUNTIME_IDENTIFIERS}" >> %{buildroot}%{DOTNET_LIBRARY_PATH}/dotnet_vconf.info +echo "db/dotnet/tizen_tfm_support %{TIZEN_NET_TARGET_FRAMEWORK_MONIKERS}" >> %{buildroot}%{DOTNET_LIBRARY_PATH}/dotnet_vconf.info +echo "db/dotnet/runtime_version %{DOTNET_CORE_RUNTIME_VERSION}" >> %{buildroot}%{DOTNET_LIBRARY_PATH}/dotnet_vconf.info %files %license LICENSE