From fcb5c2bdd0239c47eec95aa3af94417e9d495995 Mon Sep 17 00:00:00 2001 From: Raphael Darley Date: Thu, 2 Nov 2023 11:52:23 +0000 Subject: [PATCH] fix(cli): switch name parsing to allow periods in name Co-authored-by: LongYinan --- cli/src/api/artifacts.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cli/src/api/artifacts.ts b/cli/src/api/artifacts.ts index 86548735..c6d192b8 100644 --- a/cli/src/api/artifacts.ts +++ b/cli/src/api/artifacts.ts @@ -43,7 +43,10 @@ export async function collectArtifacts(userOptions: ArtifactsOptions) { debug.info(`Read [${colors.yellowBright(filePath)}]`) const sourceContent = await readFileAsync(filePath) const parsedName = parse(filePath) - const [_binaryName, platformArchABI] = parsedName.name.split('.') + const terms = parsedName.name.split('.') + const platformArchABI = terms.pop()! + const _binaryName = terms.join('.') + if (_binaryName !== binaryName) { debug.warn( `[${_binaryName}] is not matched with [${binaryName}], skip`,