From: wei li Date: Fri, 24 Sep 2021 02:29:16 +0000 (+0000) Subject: Revert "[Service][VD] Apply DeviceHome as squashfs format" X-Git-Tag: submit/tizen/20210924.160020~1^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F26%2F264526%2F1;p=platform%2Fframework%2Fweb%2Fwrtjs.git Revert "[Service][VD] Apply DeviceHome as squashfs format" This reverts commit 8f6f792b009118f15a3a4ab2f40b7b1051144e35. Change-Id: Id67fb3094bd6ba99968ccb9d53fed744ca129264 --- diff --git a/device_home/config.xml b/device_home/config.xml index d354aef4..c2a3e423 100755 --- a/device_home/config.xml +++ b/device_home/config.xml @@ -13,7 +13,7 @@ - + DeviceHomeService DeviceHomeService diff --git a/packaging/wrtjs.spec b/packaging/wrtjs.spec index 3129a728..1e5a9411 100755 --- a/packaging/wrtjs.spec +++ b/packaging/wrtjs.spec @@ -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 diff --git a/tizen/build/build_app.sh b/tizen/build/build_app.sh index 2c1a7d3f..fc900a7f 100755 --- a/tizen/build/build_app.sh +++ b/tizen/build/build_app.sh @@ -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}