Skip to content

Commit

Permalink
Use device names and locales compatible with iTunes connect metadata …
Browse files Browse the repository at this point in the history
…format
  • Loading branch information
fulldecent committed Jan 8, 2014
1 parent 6e01a6d commit afb5b83
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ By default each screenshot is named like so:

en-ipad-portrait-screen1.png

The first part is the locale identifier, the second is the device (ios35, ios4, ipad), the third is the device orientation, and the fourth is an identifier that you choose for each screen shot when you call `captureLocalizedScreenshot()`.
The first part is the locale identifier, the second is the device (ios35in, ios4in, ipad), the third is the device orientation, and the fourth is an identifier that you choose for each screen shot when you call `captureLocalizedScreenshot()`.

## Usage

Expand Down
2 changes: 1 addition & 1 deletion automation/capture.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,5 @@ function captureLocalizedScreenshot(name) {
preferencesValueForKey("AppleLanguages")[0];

var parts = [language, model, orientation, name];
target.captureScreenWithName(parts.join("-"));
target.captureScreenWithName(parts.join("+"));
}
5 changes: 3 additions & 2 deletions ui-screen-shooter.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,9 @@ set -e
destination="$1"

# The locale identifiers for the languages you want to shoot
# see https://gist.github.com/jacobbubu/1836273
languages="en_US fr ja"
# Use the format like en-US cmn-Hans for filenames compatible with iTunes
# connect upload tool
languages="en-US cmn-Hans"

# The iOS version we want to run the script against
ios_version="7.0"
Expand Down

0 comments on commit afb5b83

Please sign in to comment.