From 416b90e1fe2be1eab1fb6b4a32cb36e90f1dc46d Mon Sep 17 00:00:00 2001 From: Woongsuk Cho Date: Tue, 16 Oct 2018 19:19:29 +0900 Subject: [PATCH] add update script to regenerate ni file Change-Id: I5aa4b67bc9fb64ea10df34485146feeaf982881c --- NativeLauncher/CMakeLists.txt | 1 + NativeLauncher/scripts/595.dotnet-launcher.regen_ni.patch.sh | 12 ++++++++++++ packaging/dotnet-launcher.spec | 3 +++ 3 files changed, 16 insertions(+) create mode 100644 NativeLauncher/scripts/595.dotnet-launcher.regen_ni.patch.sh diff --git a/NativeLauncher/CMakeLists.txt b/NativeLauncher/CMakeLists.txt index e249f70..401403d 100644 --- a/NativeLauncher/CMakeLists.txt +++ b/NativeLauncher/CMakeLists.txt @@ -121,4 +121,5 @@ IF(NOT DEFINED NO_TIZEN) INSTALL(FILES dotnet.loader DESTINATION ${LOADERDIR}) INSTALL(FILES dotnet.launcher DESTINATION ${LOADERDIR}) INSTALL(FILES dotnet.debugger DESTINATION ${LOADERDIR}) + INSTALL(FILES scripts/595.dotnet-launcher.regen_ni.patch.sh DESTINATION ${RW_UPGRADE_SCRIPTS_DIR}) ENDIF(NOT DEFINED NO_TIZEN) diff --git a/NativeLauncher/scripts/595.dotnet-launcher.regen_ni.patch.sh b/NativeLauncher/scripts/595.dotnet-launcher.regen_ni.patch.sh new file mode 100644 index 0000000..c7ea639 --- /dev/null +++ b/NativeLauncher/scripts/595.dotnet-launcher.regen_ni.patch.sh @@ -0,0 +1,12 @@ +#!/bin/bash +# +# RW Update Script for 4.0 -> 4.0 +# - Shell script for regenerating application ni file for .NET +PATH=/bin:/usr/bin:/sbin:/usr/sbin +source /usr/share/upgrade/rw-update-macro.inc +get_version_info + + : +if [[ "$OLD_VER" == "4.0"* ]]; then + /usr/bin/nitool --regen-all-app +fi diff --git a/packaging/dotnet-launcher.spec b/packaging/dotnet-launcher.spec index 1df3394..f780dde 100644 --- a/packaging/dotnet-launcher.spec +++ b/packaging/dotnet-launcher.spec @@ -36,6 +36,7 @@ Requires(preun): /usr/bin/systemctl %define _install_plugin_dir /usr/etc/package-manager/parserlib %define _install_mdplugin_dir /etc/package-manager/parserlib/metadata %define _native_lib_dir /usr/share/dotnet.tizen/lib +%define _rw_update_scripts_dir /usr/share/upgrade/scripts ExcludeArch: aarch64 @@ -62,6 +63,7 @@ cmake \ -DINSTALL_MDPLUGIN_DIR=%{_install_mdplugin_dir} \ -DVERSION=%{version} \ -DNATIVE_LIB_DIR=%{_native_lib_dir} \ + -DRW_UPGRADE_SCRIPTS_DIR=%{_rw_update_scripts_dir} \ NativeLauncher make %{?jobs:-j%jobs} VERBOSE=1 @@ -83,4 +85,5 @@ ln -sf %{_libdir}/libsqlite3.so.0 %{buildroot}%{_native_lib_dir}/libsqlite3.so #%{_install_plugin_dir}/libui-application.so %{_install_mdplugin_dir}/libprefer_dotnet_aot_plugin.so %{_bindir}/dotnet-launcher +%attr(700,root,root) %{_rw_update_scripts_dir}/595.dotnet-launcher.regen_ni.patch.sh -- 2.7.4