From 30a70c622202cc53d77221bb0cc1d36ca2892ed0 Mon Sep 17 00:00:00 2001 From: Mark Sanborn Date: Sat, 8 Mar 2014 09:14:52 -0800 Subject: [PATCH] Updated readme regarding dir feature --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index 20da02d..d1545b5 100644 --- a/README.md +++ b/README.md @@ -31,3 +31,17 @@ Enable your Golang applications to self update. Inspired by Chrome based on Her go-selfupdate myapp 1.2 This will create a folder in your project called, *public* you can then rsync or transfer this to your webserver or S3. + +If you are cross compiling you can specify a directory: + + go-selfupdate /tmp/mybinares/ 1.2 + +The directory should contain files with the name, $GOOS-$ARCH. Example: + + windows-386 + darwin-amd64 + linux-arm + +If you are using [goxc](https://github.com/laher/goxc) you can output the files with this naming format by specifying this config: + + "OutPath": "{{.Dest}}{{.PS}}{{.Version}}{{.PS}}{{.Os}}-{{.Arch}}",