fullpath = os.path.join(root, f)
archive_name = os.path.join(archive_root, f)
if(profile == "tv"):
+ #If profile is tv final zip file will be signed by kuep certificate as it contains .sh and .tpk
if f.endswith('.sh'):
+ print('signing of ' + fullpath + ' is started')
os.system('./scripts_tpk/kuep_net_signer.sh -s -tizen_major_ver 6 ' + fullpath)
print('signing of ' + fullpath + ' successfully done')
zf.write(fullpath, archive_name, zipfile.ZIP_DEFLATED)
# copying data and shared data
WORKDIR=`pwd`
cd $2
- fileCount="$(git status -s | grep -c "post-install/post-inst.sh" )"
if [ "$3" == "tv" ]; then
+ fileCount="$(git status -s | grep -c "post-install/post-inst.sh" )"
if [ $fileCount -gt 0 ] ; then
- echo -e "${reset}Signing of post-inst.sh started"
+ #post-inst.sh file signed by kuep certificate if there is any new change in file for tv profile
+ echo -e $green"Signing of post-inst.sh started"$reset
sed -i '/##UEP*/d' post-install/post-inst.sh
./../../../scripts_tpk/kuep_net_signer.sh -s -tizen_major_ver 6 post-install/post-inst.sh
- echo -e "${reset}Signing of post-inst.sh done"
+ echo -e $green"Signing of post-inst.sh done"$reset
fi
fi
find . -type f ! -iname "*.c" ! -iname "*.cpp" ! -iname "*.h" ! -iname "CMakeLists.txt" -exec cp -p --parents {} $1/shared/res/. ";"
fi
cd $WORKDIR
fi
- fileCount="$(git status -s | grep -c "scripts_tpk/spec.sh" )"
if [ "$3" == "tv" ]; then
+ fileCount="$(git status -s | grep -c "scripts_tpk/spec.sh" )"
if [ $fileCount -gt 0 ] ; then
+ #spec.sh file signed by kuep certificate if there is any new change in file for tv profile
echo -e "${reset}Signing of spec.sh started"
sed -i '/##UEP*/d' scripts_tpk/spec.sh
./scripts_tpk/kuep_net_signer.sh -s -tizen_major_ver 6 scripts_tpk/spec.sh
fi
if [ $PROFILE_TYPE == "tv" ]; then
+ #If profile is tv then kuep signing for tpk is required
+ echo $green"kuep signing of tpk has been started"$reset
RunCommand "./kuep_net_signer.sh -s -tizen_major_ver 6 $WORKSPACE_PATH/$PROJECT_NAME/$BUILD_TYPE/$PROJECT_NAME"
+ echo $green"kuep signing of tpk has been completed successfully"$reset
fi
RunCommand "tizen package --type tpk --sign test -- $WORKSPACE_PATH/$PROJECT_NAME/$BUILD_TYPE" "packaging of $PROJECT_NAME"