aboutsummaryrefslogtreecommitdiff
path: root/toolchain/generate-fastlane-metadata.py
AgeCommit message (Collapse)Author
2022-03-15generate-fastlane-metadata: Don't fail if source URL can not be foundJonah BrĂ¼chert
I hit this issue while building Kaidan using craft, outside of the KDE Android docker container. Hopefully this is the correct way to fix it.
2021-09-27Handle git remotes that aren't called origin in _repository_name()Alex Richardson
I was seeing `error: No such remote 'origin'` in the cmake output. This commit avoids hardcoding `origin` as the upstream URL and instead uses the `git rev-parse @{u}` to get the configured upstream. As a follow-up we may want to check if this should be executed by default, but for now this fixes a warning that I'm seeing with various projects.
2021-07-13Fix typos found by codespellChristophe Giboudeaux
GIT_SILENT
2021-07-03Trim whitespaces from description textsVolker Krause
This fixes spurious differences after a roundtrip through Google Play, breaking change detection and thus triggering unnecessary metadata updates.
2021-07-01Number screenshots in the same way the fastlane tool does thisv5.84.0-rc1v5.84.0Volker Krause
This considerably simplifies comparing our data with that retrieved from Google Play for automatically syncing metadata.
2021-06-27[fastlane] Add mapping for serbianNicolas Fella
Qt maps it this way
2021-05-23Make sure that dir path exists before attempting to copy fileBart De Vries
2021-05-23Attempt to find the Play store icon if it's not explicitly setVolker Krause
This relies on the apparently predominant naming pattern for those files, those of our apps not using this often do not seem to have an appropriate file (512x512 png) to begin with. Explicit override is also possible, by the already existing mechanism of putting a file with the right name into the fastlane/ source directory. Having the icon included here will allow it to be automatically synced to the Play store.
2021-05-17Don't pass through list rich text elements, Google Play can't handle thoseVolker Krause
Instead, restore their plain text fallback output that we used to have already prior to enabling rich text support.
2021-05-16Handle text-less tagsVolker Krause
Contrary to the comment those exist (e.g. ul, ol), this just wasn't noticed as due to the script-enforced formatting those always contain some spaces. This resulted in different structures between English and translated description texts. With this change all language variants show the same structure.
2021-05-15Fall back to English for missing translated elementsVolker Krause
We have to handle both entirely missing top-level elements and arbitrarily incomplete sub-elements in the description body. Until now we were just kept those gaps, resulting in missing titles or incomplete descriptions. F-Droid didn't complain about that, but Google Play does. This fixes e.g. Itinerary's metadata for de and ru.
2021-05-07Extend Android language mappings for translated metadataVolker Krause
This is likely still not complete, but with this at least most of Itinerary's metadata translations are accepted during upload to the Google Play store (the remaining ones are rejected for different reasons). F-Droid seems considerably less picky about this, and works with either form.
2021-02-01Remove fastlane metadata generation from a given APKVolker Krause
This is no longer needed now that the metadata happens as part of the build process rather than afterwards on the signing system. This allows us to simplify the code here a bit.
2021-01-30Support the new Appstream file extension as wellVolker Krause
2021-01-20Consider Appstream donation URLs for creating F-Droid metadataVolker Krause
Those occur for example in Marble.
2020-12-28Consider local fastlane image assetsVolker Krause
This adds support for image assets not represented in the appstream data, such as the banner image for the F-Droid app, and it allows to override appstream screenshots by local ones. The latter is e.g. used by KTrip which provides Android-specific screenshots that way.
2020-12-24Preserve the rich-text subset supported by F-DroidVolker Krause
This should improve the alignment issues currently seen in bullet point lists that we use frequently in the description text.
2020-12-13Fix errors in python code, found by pylama in a strict CIDavid Faure
2020-12-10Check if file exists before removing the fastlane archiveVolker Krause
Locally unlink() seems to work just fine on non-existent files, but on binary factory that seems to be different for some reason.
2020-12-10Clean image folder and archive file before downloading/generating thoseVolker Krause
This matters when reusing output folders (as binary factory does for example), as we then retain outdated screenshots and just keep adding files to an already existing fastlane archive.
2020-12-08Retain screenshot order from the appstream fileVolker Krause
Also, check for the HTTP status code, so we don't end up with 404 error messages in image files here.
2020-12-05Don't fail if we haven't found any categoriesVolker Krause
This should fix the Okular build failure on binary factory.
2020-12-04Fix category extraction from desktop filesVolker Krause
This broke the builds for apps not having categories in their appstream files.
2020-12-01Add fastlane metadata generation for Android buildsVolker Krause
This is currently done on the signing machines as part of the F-Droid nightly pipeline, but should rather happen as part of the build process in the future. Compared to the binary factory script this has a few extensions already: - Besides recovering information from APKs we can now consume appdata files directly, or scan the entire source dir. - Screenshots from appdata files are downloaded. - The 'x-test' language is ignored. - Donation and translation information are added. - Add links to the source code repository, if we can determine that. The result is put into a single archive per APK, so we can easily transfer that to the signing machine via Jenkins alongside the APK.