chiark / gitweb /
update: support Fastlane's official location for screenshots
authorHans-Christoph Steiner <hans@eds.org>
Tue, 10 Oct 2017 10:41:49 +0000 (12:41 +0200)
committerHans-Christoph Steiner <hans@eds.org>
Fri, 13 Oct 2017 12:58:15 +0000 (14:58 +0200)
fastlane/android/metadata/locale/images/*Screenshots

https://github.com/fastlane/fastlane/blob/2.61.0/screengrab/lib/screengrab/runner.rb#L324

closes #357

fdroidserver/update.py

index a77417a6191d6cdff2f8a90272c44c967dba9ffe..526372b815366e241a61ef0fb19e916d47e5193a 100644 (file)
@@ -817,6 +817,9 @@ def insert_localized_app_metadata(apps):
                     shutil.copy(os.path.join(root, f), destdir)
             for d in dirs:
                 if d in SCREENSHOT_DIRS:
+                    if locale == 'images':
+                        locale = segments[-2]
+                        destdir = os.path.join('repo', packageName, locale)
                     for f in glob.glob(os.path.join(root, d, '*.*')):
                         _, extension = common.get_extension(f)
                         if extension in ALLOWED_EXTENSIONS: