Building and Distributing app for Linux

Hi,

I am building a command line application for Linux. With regards to building a release component the only documentation I have found is for static builds on Linux:

Unfortunately, it doesn’t seem like I can use static linking: The app depends on libudev, and as far as I can see there is not a static version available.

If I don’t use the static SDK, but just build using:

swift build -c release
What are the requirements for the client to run the app? Is there a Swift runtime to install?

Yes, the runtime is provided in slim container images, you can see how it's installed in the corresponding container image file.

1 Like