mitchellh / gox

A dead simple, no frills Go cross compile tool
Mozilla Public License 2.0
4.6k stars 355 forks source link

Output directory #70

Open mainrs opened 8 years ago

mainrs commented 8 years ago

Support for specifying an output directory would be nice...

lukeramsden commented 7 years ago

That would be great

kekoav commented 7 years ago

This is already supported by using the -output command line flag. From the command -help

-output="foo"       Output path template. See below for more info

...

Output path template:

  The output path for the compiled binaries is specified with the
  "-output" flag. The value is a string that is a Go text template.
  The default value is "{{.Dir}}_{{.OS}}_{{.Arch}}". The variables and
  their values should be self-explanatory

gox -output "my_output_dir/{{.Dir}}_{{.OS}}_{{.Arch}}" will write to the my_output_dir directory

RecuencoJones commented 4 years ago

This would be worth mentioning in the documentation and help commands!