Browse Source

Add release code name

I figured we're missing out on being cool and awesome by not having an
alphabetically based release code name like the big guys. This commit
fixes that. I've unilaterally decided on a theme of "$metal $bug"
because metals are kind of cool, and bugs, well, ...
Jakob Borg 10 years ago
parent
commit
283c91548a
4 changed files with 11 additions and 3 deletions
  1. 1 0
      cmd/syncthing/gui.go
  2. 2 1
      cmd/syncthing/main.go
  3. 7 1
      gui/syncthing/core/aboutModalView.html
  4. 1 1
      lib/auto/gui.files.go

+ 1 - 0
cmd/syncthing/gui.go

@@ -355,6 +355,7 @@ func (s *apiSvc) getSystemVersion(w http.ResponseWriter, r *http.Request) {
 	w.Header().Set("Content-Type", "application/json; charset=utf-8")
 	json.NewEncoder(w).Encode(map[string]string{
 		"version":     Version,
+		"codename":    Codename,
 		"longVersion": LongVersion,
 		"os":          runtime.GOOS,
 		"arch":        runtime.GOARCH,

+ 2 - 1
cmd/syncthing/main.go

@@ -45,6 +45,7 @@ import (
 
 var (
 	Version     = "unknown-dev"
+	Codename    = "Aluminium Ant"
 	BuildEnv    = "default"
 	BuildStamp  = "0"
 	BuildDate   time.Time
@@ -93,7 +94,7 @@ func init() {
 	BuildDate = time.Unix(int64(stamp), 0)
 
 	date := BuildDate.UTC().Format("2006-01-02 15:04:05 MST")
-	LongVersion = fmt.Sprintf("syncthing %s (%s %s-%s %s) %s@%s %s", Version, runtime.Version(), runtime.GOOS, runtime.GOARCH, BuildEnv, BuildUser, BuildHost, date)
+	LongVersion = fmt.Sprintf(`syncthing %s "%s" (%s %s-%s %s) %s@%s %s`, Version, Codename, runtime.Version(), runtime.GOOS, runtime.GOARCH, BuildEnv, BuildUser, BuildHost, date)
 
 	if os.Getenv("STTRACE") != "" {
 		logFlags = log.Ltime | log.Ldate | log.Lmicroseconds | log.Lshortfile

+ 7 - 1
gui/syncthing/core/aboutModalView.html

@@ -1,5 +1,11 @@
 <modal id="about" status="info" icon="heart-o" title="{{'About' | translate}}" large="yes" close="yes">
-  <h1 class="text-center"><img alt="Syncthing" title="Syncthing" src="assets/img/logo-horizontal.svg" style="vertical-align: -16px" height="100" width="366"/><br/><small>{{versionString()}}</small></h1>
+  <h1 class="text-center">
+    <img alt="Syncthing" title="Syncthing" src="assets/img/logo-horizontal.svg" style="vertical-align: -16px" height="100" width="366"/>
+    <br/>
+    <small>{{versionString()}}</small>
+    <br/>
+    <small><i>"{{version.codename}}"</i></small>
+  </h1>
   <hr/>
 
   <p translate>Copyright &copy; 2015 the following Contributors:</p>

File diff suppressed because it is too large
+ 1 - 1
lib/auto/gui.files.go


Some files were not shown because too many files changed in this diff