Index: chrome/installer/linux/common/installer.include |
diff --git a/chrome/installer/linux/common/installer.include b/chrome/installer/linux/common/installer.include |
index d606238d6476e22444fc65c0d4c1ed76d50e063a..05f0a9bb8f66e80a6467cd3799ece02792fab599 100644 |
--- a/chrome/installer/linux/common/installer.include |
+++ b/chrome/installer/linux/common/installer.include |
@@ -87,6 +87,7 @@ prep_staging_common() { |
install -m 755 -d "${STAGEDIR}/${INSTALLDIR}" \ |
"${STAGEDIR}/usr/bin" \ |
"${STAGEDIR}/usr/share/applications" \ |
+ "${STAGEDIR}/usr/share/appdata" \ |
"${STAGEDIR}/usr/share/gnome-control-center/default-apps" \ |
"${STAGEDIR}/usr/share/man/man1" |
} |
@@ -228,6 +229,16 @@ stage_install_common() { |
# desktop integration |
install -m 755 "${BUILDDIR}/xdg-mime" "${STAGEDIR}${INSTALLDIR}/" |
install -m 755 "${BUILDDIR}/xdg-settings" "${STAGEDIR}${INSTALLDIR}/" |
+ |
+ if [ ${PACKAGE:0:6} = google ]; then |
+ process_template "${BUILDDIR}/installer/common/google-chrome.appdata.xml.template" \ |
+ "${STAGEDIR}/usr/share/appdata/${PACKAGE}.appdata.xml" |
+ else |
+ process_template "${BUILDDIR}/installer/common/chromium-browser.appdata.xml.template" \ |
+ "${STAGEDIR}/usr/share/appdata/${PACKAGE}.appdata.xml" |
+ fi |
+ chmod 644 "${STAGEDIR}/usr/share/appdata/${PACKAGE}.appdata.xml" |
+ |
process_template "${BUILDDIR}/installer/common/desktop.template" \ |
"${STAGEDIR}/usr/share/applications/${PACKAGE}.desktop" |
chmod 644 "${STAGEDIR}/usr/share/applications/${PACKAGE}.desktop" |