// create default icon if there is no icon at all
bf::path icon_path = common_icon_location / app->appid;
icon_path += ".png";
- bf::copy_file(kDefaultIconPath, icon_path, error);
+ bf::copy_file(kDefaultIconPath, icon_path, bf::copy_option::overwrite_if_exists, error);
if (error) {
LOG(ERROR) << "Failed to create default icon for web application";
return Status::ICON_ERROR;
AddStep<wgt::security::StepCheckWgtBackgroundCategory>();
AddStep<ci::security::StepRollbackInstallationSecurity>();
AddStep<ci::filesystem::StepRemoveGlobalAppSymlinks>();
+ AddStep<wgt::filesystem::StepWgtPatchIcons>();
AddStep<wgt::pkgmgr::StepGenerateXml>();
AddStep<ci::pkgmgr::StepRegisterApplication>();
AddStep<ci::pkgmgr::StepRunParserPlugin>(ci::Plugin::ActionType::Install);
AddStep<ci::filesystem::StepCopyTep>();
AddStep<ci::security::StepUpdateSecurity>();
AddStep<ci::filesystem::StepRemoveGlobalAppSymlinks>();
+ AddStep<wgt::filesystem::StepWgtPatchIcons>();
AddStep<wgt::pkgmgr::StepGenerateXml>();
AddStep<ci::pkgmgr::StepRunParserPlugin>(
ci::Plugin::ActionType::Upgrade);