Skip to content

Commit

Permalink
fix(cli): switch name parsing to allow periods in name
Browse files Browse the repository at this point in the history
Co-authored-by: LongYinan <lynweklm@gmail.com>
  • Loading branch information
RaphaelDarley and Brooooooklyn committed Nov 2, 2023
1 parent afdd406 commit fcb5c2b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cli/src/api/artifacts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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`,
Expand Down

0 comments on commit fcb5c2b

Please sign in to comment.