lib/deliver/upload_screenshots.rb in deliver-1.11.2 vs lib/deliver/upload_screenshots.rb in deliver-1.11.3
- old
+ new
@@ -68,10 +68,10 @@
if language == Loader::APPLE_TV_DIR_NAME
screenshots.concat(collect_screenshots_for_languages(File.join(path, language)))
next
end
- files = Dir.glob(File.join(lng_folder, "*.#{extensions}"), File::FNM_CASEFOLD)
+ files = Dir.glob(File.join(lng_folder, "*.#{extensions}"), File::FNM_CASEFOLD).sort
next if files.count == 0
prefer_framed = Dir.glob(File.join(lng_folder, "*_framed.#{extensions}"), File::FNM_CASEFOLD).count > 0
UI.important("Framed screenshots are detected! 🖼 Non-framed screenshot files may be skipped. 🏃") if prefer_framed