Skip to content

Support SPM resource bundles #223

@djbe

Description

@djbe

As documented in the Mint readme, SPM now supports resource bundles (since 5.3).

With SwiftGen 6.5 we've switched over to fully using SPM for this, but apparently during installation Mint is getting rid of the resource bundles:

Tried it locally as well, and indeed the build folder only contains:

-rwxr-xr-x  1 davidjennes  admin   5.0M Oct  4 15:23 swiftgen

Where it should contain:

drwxr-xr-x  3 davidjennes  admin    96B Oct  4 15:15 SwiftGen_SwiftGenCLI.bundle
-rwxr-xr-x  1 davidjennes  admin   5.2M Oct  4 15:15 swiftgen

To make things a bit spicier, we don't control the name of the bundle, we just use Bundle.module in Swift code. And in this specific case, it is a resource bundle for a framework the binary depends on (called SwiftGenCLI). It is defined here in Package.swift.

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