Skip to content

arch_detector can't detect valid archs #31

@giginet

Description

@giginet

Sometimes, file returns the following output.

/path/to/myexecutable.artifactbundle/myexecutable-v0.2.1-macos/x86_64-apple-macosx/bin/myexecutable: Mach-O universal binary with 2 architectures: [x86_64:Mach-O 64-bit executable x86_64] [arm64]
/path/to/myexecutable.artifactbundle/myexecutable-v0.2.1-macos/x86_64-apple-macosx/bin/myexecutable (for architecture x86_64):     Mach-O 64-bit executable x86_64
/path/to/myexecutable.artifactbundle/myexecutable-v0.2.1-macos/x86_64-apple-macosx/bin/myexecutable (for architecture arm64):      Mach-O 64-bit executable arm64

For this output, it should returns x86_64 and arm64, but with the current regex, it returns x86_64

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions