0

Is it possible to create a build tool plugin that runs after the build and copies build artifacts to another location in the package directory?

For example, say I have an executable target named tool. Each time that I build tool, I'd like to copy the build artifact from .build/release/tool to ./tool so that it's available at the root of the package.

As far as I can tell, this can't be done. But I may be missing something.

(Crosspost: https://forums.swift.org/t/swift-package-plugin-copy-build-artifact/60765)

Clay Ellis
  • 4,960
  • 2
  • 37
  • 45

0 Answers0