5 source_path=${output_path}/${source_dir_name}
14 echo "output_path=$output_path"
15 echo "source_dir_name=$source_dir_name"
16 echo "source_path=$source_path"
17 echo "file_name=$file_name"
18 echo "privilege=$privilege"
19 echo "profile=$profile"
21 if [ "${file_extension}" == "tpk" ]; then
24 install -d ${source_path}/shared/res/wrt
25 install -d ${source_path}/license
26 install -m 0644 packaging/tizen-manifest-tpk.xml ${source_path}/tizen-manifest.xml
27 install -m 0644 LICENSE ${source_path}/license
28 cp -rf out/gen/app ${source_path}/shared/res/wrt/app
29 elif [ "${file_extension}" == "wgt" ]; then
31 cp -rf device_home ${source_path}
33 echo "Please add proper file extension."
38 /usr/bin/hash-signer.sh -a -d -p ${privilege} -b ${output_path} ${source_dir_name}
46 # tpkresigning from app-signer package
47 if [ "${profile}" == "tv" -a "${privilege}" != "public" ]; then
48 tpkresigner -a -d -p ${privilege} -n %{4} ${output_path}/${file_name}