Browse Source

Add screenshots to the right place

Signed-off-by: Mario Danic <mario@lovelyhq.com>
Mario Danic 7 years ago
parent
commit
78066540dd

+ 0 - 0
screenshots/call_screenshot.png → app/src/Generic/fastlane/metadata/android/en-US/phoneScreenshots/call_screenshot.png


+ 0 - 0
screenshots/calls_screenshot.png → app/src/Generic/fastlane/metadata/android/en-US/phoneScreenshots/calls_screenshot.png


+ 0 - 0
screenshots/calls_search_screenshot.png → app/src/Generic/fastlane/metadata/android/en-US/phoneScreenshots/calls_search_screenshot.png


+ 0 - 0
screenshots/contacts_screenshot.png → app/src/Generic/fastlane/metadata/android/en-US/phoneScreenshots/contacts_screenshot.png


+ 0 - 0
screenshots/server_entry_screenshot.png → app/src/Generic/fastlane/metadata/android/en-US/phoneScreenshots/server_entry_screenshot.png


+ 0 - 0
screenshots/settings_screenshot.png → app/src/Generic/fastlane/metadata/android/en-US/phoneScreenshots/settings_screenshot.png


+ 4 - 7
scripts/metadata/generate_metadata.py

@@ -79,16 +79,13 @@ def main():
         short_desc = e.find('.//string[@name="nc_store_short_desc"]')
         full_desc = e.find('.//string[@name="nc_store_full_desc"]')
         if short_desc is not None:
-            save_file(short_desc.text, LANG_MAP[entry], 'short_description.txt', False)
+            save_file(short_desc.text, LANG_MAP[entry], 'short_description.txt')
         if full_desc is not None:
-            save_file(full_desc.text, LANG_MAP[entry], 'full_description.txt', False)
+            save_file(full_desc.text, LANG_MAP[entry], 'full_description.txt')
 
 
-def save_file(text, directory, filename, dev):
-    if dev:
-        directory_path = os.path.join(PATH, METADATA_DEV_PATH, directory)
-    else:
-        directory_path = os.path.join(PATH, METADATA_PATH, directory)
+def save_file(text, directory, filename):
+    directory_path = os.path.join(PATH, METADATA_PATH, directory)
 
     if not os.path.exists(directory_path):
         os.makedirs(directory_path)