Skip to content

Commit

Permalink
fix(hook): Ignore non-directory platforms when processing icons and
Browse files Browse the repository at this point in the history
splashscreens. Closes #87
  • Loading branch information
diegonetto committed Aug 19, 2014
1 parent 41d061a commit 2187deb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion templates/hooks/after_prepare/icons_and_splashscreens.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ function copyFile (src, dest, ncpOpts, callback) {
}

// Main
var platforms = fs.readdirSync('platforms');
var platforms = _.filter(fs.readdirSync('platforms'), function (file) {
return fs.statSync(path.resolve('platforms', file)).isDirectory();
});
_.each(platforms, function (platform) {
var base = path.resolve('platforms', platform, BASES[platform]);
glob(base + '/**/*.png', function (err, files) {
Expand Down

0 comments on commit 2187deb

Please sign in to comment.