Is there way to install artifact outside current build, using absolute path?
As I’ve tried specifying it in addInstallArtifact options dest_dir, but it wants relative path.
There is zig build -p /path/of/your/prefix (or zig build --prefix /path/of/your/prefix), which can be set to any absolute or relative path. It is zig-out by default, and changing it changes the location of everything which otherwise would be in zig-out. There is also the DESTDIR environment variable, but I don’t think you should use it, unless you want to distribute the installed files.
2 Likes