summaryrefslogtreecommitdiff
path: root/client
Commit message (Collapse)AuthorAgeFilesLines
* Consider AppStream version as a stringCorentin Noël2021-08-031-3/+2
| | | | | | Always store the AppStream metadata version as a string and compare it like any other version. This allows to have 0.10 > 0.8 for instance.
* as-util: Fix Markdown underlining in appdata-to-newsPhilip Withnall2021-01-301-2/+2
| | | | | | | Markdown underlines are with `=` or `-`, not `~`. This fixes the Markdown rendering of appdata-to-news-ed files in GitLab. Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
* util: Add "validate-version" commandFlorian Müllner2020-03-221-0/+108
| | | | | | The command validates that an AppData or MetaInfo file includes a release for the specified version. For forgetful maintainers (hi!), this can be a useful test during distcheck.
* as-compose: Remove relative path from icon namesDavid Hewitt2019-04-091-8/+4
|
* trivial: Fix some typos spotted using codespellRichard Hughes2019-04-081-2/+2
|
* Allow building on WindowsJehan2019-03-261-1/+8
| | | | Signed-off-by: Richard Hughes <richard@hughsie.com>
* Appdata to AppDatascootergrisen2019-02-111-1/+1
|
* Use the SPDX-License-Identifier in all source filesRichard Hughes2019-02-093-45/+3
|
* Use as_utils_vercmp_full internallyKalev Lember2019-01-041-1/+1
| | | | | | | | | This fixes, among other things, appdata validation when the version goes from 9.5 to 10, or 0.9 to 1. This partially fixes https://github.com/hughsie/appstream-glib/issues/270 We're still failing to correctly compare "Build 9.5" to "Build 10".
* trivial: Do not let libsoup explode in a ball of flames for file:// mirror URLsRichard Hughes2018-12-121-0/+7
|
* trivial: Allow using metainfo.xml files with appdata-to-newsRichard Hughes2018-11-271-1/+2
|
* Throw an error when a launchable desktop-id is invalidBastien Nocera2018-09-111-0/+7
| | | | See https://github.com/flathub/com.adobe.Flash-Player-Projector/issues/2
* Better debug output for appstream-composeBastien Nocera2018-09-111-2/+2
| | | | | When "looking for" a file, mention which type of file we're looking for, making it easier to find the debug message this corresponds to.
* Change order of arguments in matrix-html to match status-htmlsuve2018-08-271-4/+5
|
* Do not parse firmware filesRichard Hughes2018-06-121-83/+0
| | | | Firmware should now be distributed using the LVFS and consumed by fwupd.
* trivial: Allow showing only one type of AsRefString statsRichard Hughes2018-05-211-3/+10
|
* trivial: Do not show a critical warning using appstream-compose on an unknown IDRichard Hughes2018-04-181-1/+8
|
* Never add more than one component to the AppStream store when composingRichard Hughes2018-04-181-0/+6
| | | | | | | | | | If the app has an AppData file with org.gnome.Gimp.appdata.xml that contains <id>org.gnome.Gimp</id> and also a org.gnome.Gimp.desktop then the second gets added as a new component as the .desktop suffix is optional, but allowed for compatibility. Just rename the .desktop component ID in this case to force the app to be subsumed rather than added.
* If the launchable is specified don't guess it when composingRichard Hughes2018-04-181-6/+13
| | | | | This allows us to have an appdata file with <id>org.gnome.Gimp</id> without being forced to rename the gimp.desktop file.
* Add support for component agreementsRichard Hughes2018-04-111-0/+58
| | | | | This enables a lot of software to comply with the GDPR and also allows us to show translated warning and EULA text to unsuspecting users.
* Always resize AppStream icons to fit the destination sizeRichard Hughes2018-03-091-0/+2
| | | | | 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.
* Do not use an 'enable' prefix for meson argumentsRichard Hughes2017-12-181-1/+1
|
* Fix appstream-compose when using new-style desktop IDsRichard Hughes2017-12-071-6/+10
| | | | | | The .desktop suffix is now optional in the AppStream component <id>. Fixes: https://github.com/hughsie/appstream-glib/issues/209
* Prefer /usr/share/metainfo as default path for metainfo filesMatthias Klumpp2017-08-081-1/+1
| | | | | | | | This makes asglib align with the AppStream spec, which sees /usr/share/metainfo as the canonical location for storing metadata, and /usr/share/appdata as legacy (but still must-be-supported) location. Signed-off-by: Richard Hughes <richard@hughsie.com>
* Do not write a timestamp when using news-to-appdataRichard Hughes2017-06-161-2/+4
|
* trivial: Fix an error message in news-to-appdataRichard Hughes2017-06-161-1/+1
|
* Do not add the GNOME-Software-specific categories or icons by defaultRichard Hughes2017-06-071-0/+4
| | | | | This is better done client side. Add a build flag so we can still build metadata for old versions of Fedora.
* Remove functionality processing an old metadata fileRichard Hughes2017-06-011-1/+2
| | | | Without the CacheID it's no longer useful.
* trivial: Remove the ability to run threadedRichard Hughes2017-06-011-9/+5
| | | | This leads to just too many crashes; librpm is just not thread safe enough to do this.
* Remove the cache-id functionalityRichard Hughes2017-05-161-1/+1
| | | | | | | | | 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
* Switch to the meson build system.Richard Hughes2017-05-102-77/+64
|
* Add a 'check-component' command to appstream-utilRichard Hughes2017-05-031-0/+117
| | | | | | | | | | | | | | | | | This allows us to sanity check installed applications to find out why they are not showing in software centers like GNOME Software. $ appstream-util check-component firefox.desktop google-chrome.desktop Using system/*/*/desktop/firefox.desktop/* for firefox.desktop Checking source: /usr/share/applications/firefox.desktop Checking source: /usr/share/appdata/firefox.appdata.xml Using system/*/*/desktop/google-chrome.desktop/* for google-chrome.desktop Checking source: /usr/share/applications/google-chrome.desktop • google-chrome.desktop has no AppData file Failed to check component, 1 problems detected
* trivial: Add a regex command to appstream-util for testing firmware versionsRichard Hughes2017-05-031-0/+29
|
* Support non-numeric version numbers correctlyRichard Hughes2017-05-021-0/+40
| | | | | Fall back to strcmp when both sections are non-numeric. Also add a 'vercmp' command to appstream-util to allow us to use this on the command line.
* Allow using the app origin as a search keywordRichard Hughes2017-04-151-0/+1
|
* Fix a problem with appstream-compose with older AppData filesRichard Hughes2017-03-081-4/+8
| | | | | Do not remove the desktop-provided 'Name' and 'Comment' if there is no AppData-provided version.
* Deprecate app_set_source_file() and app_set_source_kind()Richard Hughes2017-02-271-4/+6
| | | | | | | | | | | | | | | | | | | | Implement these in terms of AsFormat objects to maintain API compatibility. This allows us to have multiple 'formats' that make up an AsApp, for instance, an application might be referenced in: * The .desktop file (for the icon) * The AppData file (for the installed long description) * The AppStream XML file (for the origin information) Doing this allows us to keep track of all formats that make up an AsApp, and this allows us to update the state as each type is removed and added. This allows us to remove the need to "promote" apps to different types, which was unreliable and was the source of several bugs where the AsApp was removed from the AsStore before all the sources had been removed. With this commit, GNOME Software again works reliably.
* trivial: Use the new AsFormatKind definesRichard Hughes2017-02-271-28/+26
| | | | No code changes, and ensure we don't break API/ABI by using #define's.
* util: Add a dummy update_contact to appdata-from-desktopKalev Lember2017-02-011-0/+1
|
* appstream-compose: Support appdata with no desktop filesAlexander Larsson2017-01-181-22/+26
| | | | For instance, this happens for the runtimes
* Support reading metainfo.xml files when using appstream-composeRichard Hughes2017-01-161-18/+25
|
* trivial: Fix a crash when doing validate-root on an app with no iconRichard Hughes2017-01-081-3/+13
|
* trivial: Fix unused variable warningsKalev Lember2016-11-261-4/+0
|
* Use full RELRO in the client executablesRichard Hughes2016-11-231-0/+3
| | | | We could be handling untrusted content, so this seems like a good idea.
* trivial: Add as_ref_string_debug()Richard Hughes2016-11-211-0/+7
| | | | This allows us to debug the reference counted string functionality.
* trivial: Show a total process time when using appstream-util --profileRichard Hughes2016-11-181-0/+3
|
* trivial: Use g_autoptr to avoid a Coverity warningRichard Hughes2016-11-091-18/+10
|
* Allow the client to control what search fields are indexedRichard Hughes2016-11-031-0/+7
| | | | | | | This can be used to improve load speed in GNOME Software. By default everything is indexed, which includes the multi-paragraph long description. Omitting this information makes a huge difference to the creation time of the search token cache.
* Only load native languages when parsing AppStream dataRichard Hughes2016-11-031-0/+1
| | | | | | | This adds an optional flag that allows the node parser to ignore any nodes that do not match the native languages of the user. This increases startup speed of gnome-software by ~40ms but also drops the RSS by a massive 12Mb for the Fedora AppStream file.
* Add as_store_load_search_cache()Richard Hughes2016-11-021-0/+3
| | | | This is really only useful for profiling startup speed.