Skip to content
This repository has been archived by the owner on Nov 19, 2018. It is now read-only.

Commit

Permalink
Fixed frame conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
KrauseFx committed Dec 6, 2015
1 parent df0b6a7 commit 2fcbc2f
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions lib/deliver/upload_screenshots.rb
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,15 @@ def collect_screenshots(options)

language = File.basename(lng_folder)
files.each do |path|
if prefer_framed && !path.downcase.include?("_framed.#{extensions}") && !path.downcase.include?("watch")
next
end

if !prefer_framed && path.downcase.include?("_framed.#{extensions}")
next
if path.downcase.include?("_framed.")
# That's cool
else
if path.downcase.include?("watch")
# Watch doesn't support frames (yet)
else
# That might not be cool... if that screenshot is not framed but we only want framed
next if prefer_framed
end
end

screenshots << AppScreenshot.new(path, language)
Expand Down

0 comments on commit 2fcbc2f

Please sign in to comment.