Skip to content

Commit

Permalink
Merge pull request #5096 from cb1kenobi/timob-15922_3_2_X
Browse files Browse the repository at this point in the history
[TIMOB-15922] Fixed bug with passing the wrong path into the exists check for app icons.
  • Loading branch information
pec1985 committed Dec 9, 2013
2 parents 13a8776 + 49acef0 commit b8c2f0d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions iphone/cli/commands/_build.js
Original file line number Diff line number Diff line change
Expand Up @@ -1795,9 +1795,9 @@ iOSBuilder.prototype.createInfoPlist = function createInfoPlist(next) {
Array.isArray(plist.CFBundleIconFiles) || (plist.CFBundleIconFiles = []);
['.png', '@2x.png', '-72.png', '-60.png', '-60@2x.png', '-76.png', '-76@2x.png', '-Small-50.png', '-72@2x.png', '-Small-50@2x.png', '-Small.png', '-Small@2x.png', '-Small-40.png', '-Small-40@2x.png'].forEach(function (name) {
name = iconName + name;
if (fs.existsSync(this.projectDir, 'Resources', name) ||
fs.existsSync(this.projectDir, 'Resources', 'iphone', name) ||
fs.existsSync(this.projectDir, 'Resources', this.platformName, name)) {
if (fs.existsSync(path.join(this.projectDir, 'Resources', name)) ||
fs.existsSync(path.join(this.projectDir, 'Resources', 'iphone', name)) ||
fs.existsSync(path.join(this.projectDir, 'Resources', 'ios', name))) {
if (plist.CFBundleIconFiles.indexOf(name) == -1) {
plist.CFBundleIconFiles.push(name);
}
Expand Down

0 comments on commit b8c2f0d

Please sign in to comment.