From 52bd86a906c6cd717637e4fb85a9beb2c17f1c90 Mon Sep 17 00:00:00 2001 From: alexandercerutti Date: Sat, 11 Aug 2018 10:16:55 +0200 Subject: [PATCH] Added check for icon file in pass model --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 47187dc..a083257 100644 --- a/index.js +++ b/index.js @@ -42,7 +42,7 @@ class Pass { // list without dynamic components like manifest, signature or pass files (will be added later in the flow) and hidden files. let noDynList = removeHidden(files).filter(f => !/(manifest|signature|pass)/i.test(f)); - if (!noDynList.length) { + if (!noDynList.length || !noDynList.some(f => f.includes("icon"))) { throw new Error(`Provided model (${path.parse(this.model).name}) matched but unitialized. Refer to https://apple.co/2IhJr0Q and documentation to fill the model correctly.`); }