forked from Mirrors/flatpak-builder
Don't export app-info files
Also, pick up the non-exported files when updating the appdata branchtingping/wmclass
parent
fbcdb07768
commit
dd1e967b60
|
@ -183,14 +183,12 @@ collect_exports (GFile *base, const char *app_id, gboolean is_runtime, GCancella
|
|||
g_autoptr(GFile) export = NULL;
|
||||
const char *app_paths[] = {
|
||||
"share/applications", /* Copy desktop files */
|
||||
"share/app-info", /* Copy appstream files */
|
||||
"share/icons/hicolor", /* Icons */
|
||||
"share/dbus-1/services", /* D-Bus service files */
|
||||
"share/gnome-shell/search-providers", /* Search providers */
|
||||
NULL,
|
||||
};
|
||||
const char *runtime_paths[] = {
|
||||
"share/app-info", /* Copy appstream files */
|
||||
NULL,
|
||||
};
|
||||
const char **paths;
|
||||
|
|
|
@ -1581,7 +1581,7 @@ copy_icon (const char *id,
|
|||
g_autofree char *icon_name = g_strconcat (id, ".png", NULL);
|
||||
g_autoptr(GFile) icons_dir =
|
||||
g_file_resolve_relative_path (root,
|
||||
"export/share/app-info/icons/xdg-app");
|
||||
"files/share/app-info/icons/xdg-app");
|
||||
g_autoptr(GFile) size_dir =g_file_get_child (icons_dir, size);
|
||||
g_autoptr(GFile) icon_file = g_file_get_child (size_dir, icon_name);
|
||||
g_autoptr(GFile) dest_dir = g_file_get_child (dest, "icons");
|
||||
|
@ -1632,7 +1632,7 @@ extract_appstream (OstreeRepo *repo,
|
|||
if (!ostree_repo_read_commit (repo, ref, &root, NULL, NULL, error))
|
||||
return FALSE;
|
||||
|
||||
xmls_dir = g_file_resolve_relative_path (root, "export/share/app-info/xmls");
|
||||
xmls_dir = g_file_resolve_relative_path (root, "files/share/app-info/xmls");
|
||||
appstream_basename = g_strconcat (id, ".xml.gz", NULL);
|
||||
appstream_file = g_file_get_child (xmls_dir, appstream_basename);
|
||||
|
||||
|
|
Loading…
Reference in New Issue