Skip to content

Support bundling CLI applications #108

@stackotter

Description

@stackotter

Swift Bundler should have the ability to bundle CLI applications. There are enough options that don't apply to CLI applications that I almost thing they should be under a different key in Bundler.toml. But then, having an application be both a graphical application and a cli application depending on an overlay would be impossible (e.g. for SwiftCrossUI apps built against the TermKitBackend).

When we implement this, it should be possible to bundle Swift Bundler with itself, which will be great cause people will no longer need to build it themselves (which can take a long time).

We should also post in the following Swift Forums thread once the feature is added: https://forums.swift.org/t/building-and-distributing-app-for-linux/83003/2

On Linux and Windows, the existing bundlers can be updated to support bundling CLIs. On macOS we'll likely need a new pkg bundler, and a simple one similar to linuxGeneric (that just produces a directory structure with all of the dependencies).

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions