summaryrefslogtreecommitdiff
path: root/libappstream-builder
Commit message (Collapse)AuthorAgeFilesLines
* Convert local icons found in metainfo fileswip/hughsie/icons-in-metainfoRichard Hughes2018-05-034-164/+242
| | | | | | | This allows us to support desktop-less components that specify a cached icon. The icon search code has been split into a new plugin that is run after the appdata and desktop plugins have added the AsbApp to the list of available apps.
* trivial: Sort the plugins in the correct order, i.e. ABC, not CBARichard Hughes2018-05-031-1/+1
|
* trivial: Allow specifying <icon> tags in metainfo filesRichard Hughes2018-05-031-6/+0
|
* Use the launchable to find the desktop filename when using appstream-builderRichard Hughes2018-05-021-1/+13
|
* Don't include the path component in the name when parsing the package filenameRichard Hughes2018-03-272-5/+17
| | | | | | | | If the guessing fails, we fall back to the arch/rpm/deb-derived name but we don't want to show weird things in the logs. Fixes https://github.com/hughsie/appstream-glib/issues/228, many thanks to Andrew Gunnerson for the initial patch.
* Use shell-extensions::uuid for custom shell extensions metadata keyKalev Lember2018-03-131-1/+1
| | | | | ... to match with what the shell extensions plugin in gnome-software does.
* Always resize AppStream icons to fit the destination sizeRichard Hughes2018-03-091-1/+1
| | | | | Padding is no longer being used as it makes the software center look bad. Lets make the application author look bad instead so they can fix the icon.
* Don't abort the build if pngquant failsRichard Hughes2018-03-012-4/+9
| | | | | Sometimes it returns a return code 25088 (which is 0x6200) which isn't an error code in rwpng.h -- we can't really trust pngquant so just log the warning.
* Add custom metadata key for shell extension uuidKalev Lember2018-02-221-1/+2
| | | | | ... and convert the appstream ID to be compatible with what gnome-tweaks uses (@'s replaced with _ and no .shell-extension at the end).
* Treat pngquant exit code of 98 (nothing done) as successRichard Hughes2018-02-211-1/+1
| | | | Fixes https://github.com/hughsie/appstream-glib/issues/223
* Do not use an 'enable' prefix for meson argumentsRichard Hughes2017-12-182-7/+7
|
* Don’t fall back to en if other languages are available.Peter Oliver2017-11-301-3/+1
| | | | Languages may have been pre-added based on the information in `metainfo.xml` files, so just because we didn’t auto-detect a language doesn’t mean that none are present. Fixes #207.
* Generate icons and samples for emoji fonts.Peter Oliver2017-11-211-0/+2
|
* Use pngquant to make the application icons take up less spaceRichard Hughes2017-11-143-0/+41
| | | | Fixes https://github.com/hughsie/appstream-glib/issues/203
* Do not try to extract duplicate files in the icon theme packagesRichard Hughes2017-11-131-0/+5
| | | | Fixes an extraction issue when using OpenSUSE.
* trivial: Disable the fonts self tests in the builderRichard Hughes2017-11-031-2/+19
|
* Only try to set the file permissions on regular filesRichard Hughes2017-11-031-1/+4
| | | | Fixes a build error with the mcomix package in openSUSE.
* trivial: Show a useful error message if decompressing a package failsRichard Hughes2017-11-032-2/+4
|
* Fix the inode mode to be sane on extracted filesRichard Hughes2017-10-201-0/+1
| | | | Fixes https://github.com/hughsie/appstream-glib/issues/190
* Write XML for newer AppStream specification versionsRichard Hughes2017-10-091-0/+1
| | | | | | | | | Any XML parser should ignore the extra tags or attributes, and so it serves no purpose to artificailly hide these when building metadata for older versions of the specification. This also fixes a bug on i386 where 0.6 != 0.6 and I didn't want to use fabs() all over the place for basically no reason.
* libappstream-builder/utils: Drop an unreachable branchPhilip Withnall2017-08-201-4/+0
| | | | | | | | | There’s a precondition check for (search != NULL), so the function will hit an assertion failure before this branch. Coverity CID: 1454189 Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
* meson: introspection optionalPatrick Ohly2017-07-261-18/+20
| | | | | | | | | | | | | | | | Calling g-ir-scanner when cross-compiling with bitbake/OpenEmbedded fails because it calls the wrong ld (the one from the host). More work will be needed in meson.bbclass and/or gobject-introspection.bbclass to make it work. In the meantime, having an option to turn of introspection is useful perhaps also in other cases where the extra work is not needed. For example, fwupd works fine also when it is off. The name of the new meson option matches the --disable-introspection that is used by some autotools-based projects. Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
* Have plugins link with asglib along with asbuilderNeal Gompa2017-07-241-6/+6
| | | | This fixes the build for appstream-glib on Mageia.
* Fix regression when building component types without iconsRichard Hughes2017-06-141-0/+3
| | | | These components are allowed to have no icon since b5b4a855.
* Allow compiling with newer versions of mesonRichard Hughes2017-06-131-1/+4
| | | | | | | | | | In 0.41.0 meson introduced it's own 'dist' target and so we don't need to define this ourselves anymore. Use a version compare to avoid depending on a very new meson. Also, fix up some underlinking which was somehow allowed before. Fixes: https://github.com/hughsie/appstream-glib/issues/170
* Do not add the GNOME-Software-specific categories or icons by defaultRichard Hughes2017-06-075-39/+52
| | | | | This is better done client side. Add a build flag so we can still build metadata for old versions of Fedora.
* Add the missing shell-extension pluginRichard Hughes2017-06-011-0/+18
| | | | I guess this was missed in the move to meson.
* Actually return failure if the AsbTask failsRichard Hughes2017-06-011-58/+38
| | | | Now that we're not threaded we can provide a sane error.
* trivial: Fix a variable with a misleading nameRichard Hughes2017-06-012-8/+8
|
* Remove functionality processing an old metadata fileRichard Hughes2017-06-011-90/+1
| | | | Without the CacheID it's no longer useful.
* trivial: Remove the ability to run threadedRichard Hughes2017-06-011-60/+13
| | | | This leads to just too many crashes; librpm is just not thread safe enough to do this.
* Remove the cache-id functionalityRichard Hughes2017-05-164-252/+34
| | | | | | | | | The results when using the partial update were not always the same as doing a fresh run (some components depend on other components) and even I'm not using this functionality anymore when running appstream-builder on the whole Fedora, achive, even across on all branches. Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1426166
* trivial: Add back the Requires and Requires.private in the .pc filesRichard Hughes2017-05-151-0/+5
|
* trivial: Fix the autogenerated pkgconfig filesRichard Hughes2017-05-111-1/+1
|
* Switch to the meson build system.Richard Hughes2017-05-107-248/+242
|
* Add initial support for Mozilla .xpi translationsRichard Hughes2017-03-171-0/+1
|
* Show a warning if a desktop file is not found when requiredRichard Hughes2017-03-151-0/+12
| | | | This would have helped some head scratching this morning...
* trivial: Reset GError when skipping a fileKalev Lember2017-01-091-0/+1
|
* Limit recursive deps lookup to the same source packageKalev Lember2017-01-091-2/+8
| | | | | Otherwise we may end up inadvertently marking an app as ModernToolkit when all it does is require zenity.
* Revert "trivial: Prevent recusion when a package lists itself as a dep"Kalev Lember2017-01-091-4/+0
| | | | | | | Commit 49749de0bd597e5e9fe5e4b92875d6730a7b6968 fixed this in a more general way. This reverts commit b04fb193dad0e6e977d9bda2487bd50075f8f61c.
* Revert "trivial: Do not recurse for library or filename deps"Kalev Lember2017-01-091-8/+0
| | | | | | | This led to ModernToolkit kudos being skipped for apps where a subpackage links with a modern toolkit library (gtk+ 3 or Qt 5). This reverts commit e7f14579d1f9ab6f0f016caf81c34bb576c9ea92.
* Revert "trivial: Correctly truncate existing logfiles"Richard Hughes2017-01-041-81/+34
| | | | | | | | | | | | This reverts commit cefcad4027ada131d322ec578a8e32f3f5652240. Revert "trivial: Fix a critical warning in the self tests" This reverts commit 3e353879b9e24d3aa9a21d5ef0d295d26febafcd. Revert "Write log files in a better way" This reverts commit 342d570825ed01f11bef0d722baec1fa2801964b.
* trivial: Correctly truncate existing logfilesRichard Hughes2017-01-041-3/+8
|
* trivial: Fix a critical warning in the self testsRichard Hughes2017-01-041-0/+4
|
* trivial: Do not recurse for library or filename depsRichard Hughes2017-01-041-0/+8
|
* Write log files in a better wayRichard Hughes2017-01-041-34/+72
| | | | | Appending to a giant string and then flushing it at the end means we waste memory and also don't get any logs if the builder crashes.
* trivial: Write debug statements into the logsRichard Hughes2017-01-041-2/+1
|
* trivial: Do not follow a foo->bar->foo->bar depchainRichard Hughes2017-01-041-1/+3
|
* trivial: Prevent recusion when a package lists itself as a depRichard Hughes2017-01-041-0/+4
|
* Recursively add subpackage deps into the main packageKalev Lember2017-01-041-10/+86
| | | | | | | | This fixes appstream data generation for packages that have long dep chains and icons are at a deeper level than in the immediate child package. e.g. in Fedora, 'marble' package depends on 'marble-widget-qt5' which depends on 'marble-astro' which depends on 'marble-common' where we can finally find the app's icon.