Revert "[Service][VD] Apply DeviceHome as squashfs format" 26/264526/1
authorwei li <wei90727.li@samsung.com>
Fri, 24 Sep 2021 02:29:16 +0000 (02:29 +0000)
committerwei li <wei90727.li@samsung.com>
Fri, 24 Sep 2021 02:29:16 +0000 (02:29 +0000)
This reverts commit 8f6f792b009118f15a3a4ab2f40b7b1051144e35.

Change-Id: Id67fb3094bd6ba99968ccb9d53fed744ca129264

device_home/config.xml
packaging/wrtjs.spec
tizen/build/build_app.sh

index d354aef..c2a3e42 100755 (executable)
@@ -13,7 +13,7 @@
     <tizen:privilege name="http://tizen.org/privilege/filesystem.write"/>
     <tizen:privilege name="http://tizen.org/privilege/internet"/>
     <tizen:privilege name="http://tizen.org/privilege/mediastorage"/>
-    <tizen:service id="9z6IujVul3.DeviceHome" type="global">
+    <tizen:service id="9z6IujVul3.DeviceHome" type="global" auto-restart="true" on-boot="true">
         <tizen:content src="service.js"/>
         <tizen:name>DeviceHomeService</tizen:name>
         <tizen:description>DeviceHomeService</tizen:description>
index 3129a72..1e5a941 100755 (executable)
@@ -33,9 +33,6 @@ BuildRequires: pkgconfig(dlog)
 
 %if "%{?profile}" == "tv"
 BuildRequires: app-signer
-%if 0%{?_use_d2d}
-BuildRequires: squashfs
-%endif
 %endif
 BuildRequires: hash-signer, zip
 BuildRequires: pkgconfig(libtzplatform-config)
@@ -186,20 +183,14 @@ cp -r %{app_dir}/* %{buildroot}%{_resourcedir}/
 %endif
 
 %if 0%{?_use_d2d}
-%if "%{?tizen_profile_name}" == "tv"
-  %define _d2d_app_file_name device_home.tmg
-  %define _d2d_app_extension tmg
-%else
-  %define _d2d_app_file_name device_home.wgt
-  %define _d2d_app_extension wgt
-%endif
+  %define _d2d_wgt_file_name device_home.wgt
   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}
+  tizen/build/build_app.sh %{buildroot} device_home %{_d2d_wgt_file_name} wgt platform %{?profile}
 
   install -d %{buildroot}%{_appdir}/.preload-rw-wgt/
-  install -m 0644 %{buildroot}/%{_d2d_app_file_name} %{buildroot}%{_appdir}/.preload-rw-wgt/
-  rm -f %{buildroot}/%{_d2d_app_file_name}
+  install -m 0644 %{buildroot}/%{_d2d_wgt_file_name} %{buildroot}%{_appdir}/.preload-rw-wgt/
+  rm -f %{buildroot}/%{_d2d_wgt_file_name}
 %endif
 
 %if 0%{?_use_nmt}
@@ -241,7 +232,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 %{_appdir}/.preload-rw-wgt/%{_d2d_wgt_file_name}
 %endif
 %endif
 
@@ -254,7 +245,7 @@ rm -fr %{buildroot}
 %manifest packaging/wrtjs.manifest
 %license LICENSE
 %if 0%{?_use_d2d}
-  %{_appdir}/.preload-rw-wgt/%{_d2d_app_file_name}
+  %{_appdir}/.preload-rw-wgt/%{_d2d_wgt_file_name}
 %endif
 %if "%{?tizen_profile_name}" != "tv"
   %caps(cap_setgid,cap_sys_admin=ei) %{_bindir}/wrt-loader
index 2c1a7d3..fc900a7 100755 (executable)
@@ -26,7 +26,7 @@ if [ "${file_extension}" == "tpk" ]; then
   install -m 0644 packaging/tizen-manifest-tpk.xml ${source_path}/tizen-manifest.xml
   install -m 0644 LICENSE ${source_path}/license
   cp -rf out/gen/app ${source_path}/shared/res/wrt/app
-elif [ "${file_extension}" == "wgt" -o "${file_extension}" == "tmg" ]; then
+elif [ "${file_extension}" == "wgt" ]; then
   # DeviceHome
   cp -rf device_home ${source_path}
 else
@@ -37,19 +37,14 @@ fi
 # Test signing
 /usr/bin/hash-signer.sh -a -d -p ${privilege} -b ${output_path} ${source_dir_name}
 
-if [ "${file_extension}" == "wgt" ]; then
 pushd ${source_path}
 echo "* zip"
-zip -yr ${file_name} .
-mv ${file_name} ../
+zip -yr $file_name .
+mv $file_name ../
 popd
-elif [ "${file_extension}" == "tmg" ]; then
-echo "mksquashfs ${source_path} ${output_path}/${file_name} -comp gzip"
-mksquashfs ${source_path} ${output_path}/${file_name} -comp gzip
-fi
 
 # tpkresigning from app-signer package
-if [ "${profile}" == "tv" -a "${privilege}" != "public" -a "${file_extension}" == "wgt" ]; then
+if [ "${profile}" == "tv" -a "${privilege}" != "public" ]; then
   tpkresigner -a -d -p ${privilege} -n %{4} ${output_path}/${file_name}
 fi
 ls ${output_path}