mirror of
https://github.com/octoleo/syncthing.git
synced 2025-01-22 22:58:25 +00:00
Tagged date is that of the commit, not build
This commit is contained in:
parent
3ed783983f
commit
7a41362d90
2
build.sh
2
build.sh
@ -4,7 +4,7 @@ export COPYFILE_DISABLE=true
|
|||||||
|
|
||||||
distFiles=(README.md LICENSE) # apart from the binary itself
|
distFiles=(README.md LICENSE) # apart from the binary itself
|
||||||
version=$(git describe --always --dirty)
|
version=$(git describe --always --dirty)
|
||||||
date=$(date +%s)
|
date=$(git show -s --format=%ct)
|
||||||
user=$(whoami)
|
user=$(whoami)
|
||||||
host=$(hostname)
|
host=$(hostname)
|
||||||
host=${host%%.*}
|
host=${host%%.*}
|
||||||
|
@ -41,7 +41,7 @@ func init() {
|
|||||||
stamp, _ := strconv.Atoi(BuildStamp)
|
stamp, _ := strconv.Atoi(BuildStamp)
|
||||||
BuildDate = time.Unix(int64(stamp), 0)
|
BuildDate = time.Unix(int64(stamp), 0)
|
||||||
|
|
||||||
date := BuildDate.UTC().Format(time.RFC3339)
|
date := BuildDate.UTC().Format("2006-01-02 15:04:05 MST")
|
||||||
LongVersion = fmt.Sprintf("syncthing %s (%s %s-%s) %s@%s %s", Version, runtime.Version(), runtime.GOOS, runtime.GOARCH, BuildUser, BuildHost, date)
|
LongVersion = fmt.Sprintf("syncthing %s (%s %s-%s) %s@%s %s", Version, runtime.Version(), runtime.GOOS, runtime.GOARCH, BuildUser, BuildHost, date)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user