mirror of
https://github.com/taigrr/go-selfupdate
synced 2025-01-18 04:33:12 -08:00
Updated readme regarding dir feature
This commit is contained in:
parent
80588a0d78
commit
30a70c6222
14
README.md
14
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}}",
|
||||
|
Loading…
x
Reference in New Issue
Block a user