Open mcandre opened 4 years ago
I would also like this ability. wonder where this is set...
seems to be set in ./docker/base/build.sh
which is a complicated shell script so injecting a template might be tricky:
NAME
is first set here:
then used throughout:
which allows the post-build step to simply copy ./build/*
out of the container.
one idea is to update build.sh
so that:
./build/$OS/$ARCH/$NAME
)xgo.go
(e.g. copy -r container:/build/* ./tmp
)xgo.go
iterates through the folder structure to pars the OS,ARCH,NAME values out of the file system and pass those component parts to a gotemplate parameterone of the main reasons I'm interested in this is to be able to generate binaries with a consistent name across platforms.
would be nice to run mytool
on every environment after an install rather than mytool-os-arch
Hi, thank you for maintaining xgo! What an incredibly powerful, fast way to build ports for Go apps!
Could we please get an option similar to gox's
-output
, for customizing the names of the file tree?For example, I would prefer to place the OS, arch pair information as directories leading up to the application name:
windows/amd64/octane.exe