From db6685f1cebc8c63caa61a5618e1fb0ae1240a8b Mon Sep 17 00:00:00 2001 From: hyrious Date: Mon, 17 Apr 2023 17:59:20 +0800 Subject: [PATCH] chore(desktop): fix upload script logic --- scripts/deployment/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/deployment/utils.js b/scripts/deployment/utils.js index 2979c21e62d..ce963506b87 100644 --- a/scripts/deployment/utils.js +++ b/scripts/deployment/utils.js @@ -53,7 +53,7 @@ const getFilesAndSizeInDir = p => { */ const getArtifactsFiles = (regex, fileList) => { for (const regx of regex) { - if (fileList.some(file => regx.test(file))) continue; + if (fileList.some(file => regx.test(file.name))) continue; throw new Error(`Can't find a file that matches the ${regx} RegExp`); } return fileList.filter(file => regex.some(regx => regx.test(file.name)));