From: 조웅석/Common Platform Lab(SR)/Principal Engineer/삼성전자 Date: Thu, 12 Nov 2020 03:51:07 +0000 (+0900) Subject: add rw update script to support FOTA (#294) X-Git-Tag: accepted/tizen/unified/20201201.124759~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7aa4eef7bdf2ea4ce4d85dedeb21e087a45619a5;p=platform%2Fcore%2Fdotnet%2Flauncher.git add rw update script to support FOTA (#294) regenerate application's native image when FOTA done --- diff --git a/packaging/715.dotnet_regen_app_ni.path.sh b/packaging/715.dotnet_regen_app_ni.path.sh new file mode 100644 index 0000000..8e0761a --- /dev/null +++ b/packaging/715.dotnet_regen_app_ni.path.sh @@ -0,0 +1,6 @@ +#!/bin/bash +# +# RW Update Script to regenerate dotnet application native image file + +/usr/bin/dotnettool --ni-regen-all-app + diff --git a/packaging/dotnet-launcher.spec b/packaging/dotnet-launcher.spec index 80988f6..d031cc2 100644 --- a/packaging/dotnet-launcher.spec +++ b/packaging/dotnet-launcher.spec @@ -64,6 +64,9 @@ Requires(preun): /usr/bin/systemctl %define _default_base_addr_start 0x3000000 +%define _rw_update_scripts_dir /usr/share/upgrade/scripts +%define _rw_dotnet_update_script 715.dotnet_regen_app_ni.path.sh + %description Launchpad plugin for launching dotnet apps @@ -159,6 +162,10 @@ mv packaging/10.Dotnet.Launcher.preload %{buildroot}%{_tizen_preload_dir} # for gbs-support cp -a %{buildroot}%{_bindir}/dotnet %{buildroot}%{_bindir}/dotnet-corerun +# to support fota upgrade +mkdir -p %{buildroot}/%{_rw_update_scripts_dir} +install -m 0755 packaging/%{_rw_dotnet_update_script} %{buildroot}/%{_rw_update_scripts_dir}/%{_rw_dotnet_update_script} + %post mkdir -p /opt/etc/skel/.dotnet chsmack -t -a User::App::Shared /opt/etc/skel/.dotnet @@ -193,6 +200,7 @@ chsmack -a User /usr/bin/dotnet-nui-loader %{_dotnet_dir} %{_ibc_data_dir} %{_tizen_preload_dir} +%{_rw_update_scripts_dir}/%{_rw_dotnet_update_script} %files devel %manifest dotnet-launcher.manifest