[Service][VD] Change path of DeviceHome tmg 37/264737/8
authorDongHyun Song <dh81.song@samsung.com>
Wed, 29 Sep 2021 04:41:32 +0000 (13:41 +0900)
committerDongHyun Song <dh81.song@samsung.com>
Wed, 29 Sep 2021 08:53:24 +0000 (17:53 +0900)
Installation by wrt-service-broker, change the tmg file path to
/home/owner/apps_rw/xwalk-service/device_home.tmg
(User::App::Shared)

This path will be allowable to use mount by privileged-service.

Related chromium-efl patch:
https://review.tizen.org/gerrit/#/c/platform/framework/web/chromium-efl/+/264755/

Change-Id: Idee01a75854592fb60b8c37656b7d1f3c5fd751c
Signed-off-by: DongHyun Song <dh81.song@samsung.com>
packaging/wrtjs.spec

index 6e21167..9576b3a 100644 (file)
@@ -39,7 +39,6 @@ BuildRequires: pkgconfig(dlog)
 BuildRequires: app-signer
 %if 0%{?_use_d2d}
 BuildRequires: squashfs
-BuildRequires: vd-wgt-backend
 %endif
 %endif
 BuildRequires: hash-signer, zip
@@ -199,16 +198,18 @@ cp -r %{app_dir}/* %{buildroot}%{_resourcedir}/
 %if "%{?tizen_profile_name}" == "tv"
   %define _d2d_app_file_name device_home.tmg
   %define _d2d_app_extension tmg
+  %define _d2d_install_path %{TZ_SYS_HOME}/owner/apps_rw/xwalk-service
 %else
   %define _d2d_app_file_name device_home.wgt
   %define _d2d_app_extension wgt
+  %define _d2d_install_path %{_appdir}/.preload-rw-wgt
 %endif
   install -m 0644 key.pem device_home/signaling_server/gen/
   install -m 0644 cert.pem device_home/signaling_server/gen/
   tizen/build/build_app.sh %{buildroot} device_home %{_d2d_app_file_name} %{_d2d_app_extension} platform %{?profile}
 
-  install -d %{buildroot}%{_appdir}/.preload-rw-wgt/
-  install -m 0755 %{buildroot}/%{_d2d_app_file_name} %{buildroot}%{_appdir}/.preload-rw-wgt/
+  install -d %{buildroot}/%{_d2d_install_path}
+  install -m 0755 %{buildroot}/%{_d2d_app_file_name} %{buildroot}/%{_d2d_install_path}/
   rm -f %{buildroot}/%{_d2d_app_file_name}
 %endif
 
@@ -258,7 +259,7 @@ fi
 %post
 %if "%{?_local_build}" == "1"
 %if 0%{?_use_d2d}
-  pkgcmd -i -t wgt -p %{_appdir}/.preload-rw-wgt/%{_d2d_app_file_name}
+  pkgcmd -i -t wgt -p %{_d2d_install_path}/%{_d2d_app_file_name}
 %endif
 %endif
 
@@ -271,7 +272,7 @@ rm -fr %{buildroot}
 %manifest packaging/wrtjs.manifest
 %license LICENSE
 %if 0%{?_use_d2d}
-  %{_appdir}/.preload-rw-wgt/%{_d2d_app_file_name}
+  %{_d2d_install_path}/%{_d2d_app_file_name}
 %endif
 %if "%{?tizen_profile_name}" != "tv"
   %caps(cap_setgid,cap_sys_admin=ei) %{_bindir}/wrt-loader