diff --git a/common/const.go b/common/const.go new file mode 100644 index 0000000..71b988e --- /dev/null +++ b/common/const.go @@ -0,0 +1,14 @@ +// URTator - Urban Terror server browser and game launcher, written in +// Go. +// +// Copyright (c) 2016, Stanslav N. a.k.a pztrn (or p0z1tr0n) +// All rights reserved. +// +// Licensed under Terms and Conditions of GNU General Public License +// version 3 or any higher. +// ToDo: put full text of license here. +package common + +const ( + URTRATOR_VERSION = "0.1-beta" +) diff --git a/ui/about.go b/ui/about.go index 9dd94bd..3e8db3d 100644 --- a/ui/about.go +++ b/ui/about.go @@ -10,6 +10,10 @@ package ui import ( + // local + "github.com/pztrn/urtrator/common" + + // other "github.com/mattn/go-gtk/gtk" ) @@ -18,7 +22,7 @@ func ShowAboutDialog() { ad.SetProgramName("URTrator") ad.SetComments("Urban Terror servers browser and game launcher") - ad.SetVersion("0.1") + ad.SetVersion(common.URTRATOR_VERSION) ad.SetWebsite("http://urtrator.pztrn.name") ad.SetLogo(logo) diff --git a/urtrator.go b/urtrator.go index ca895a5..b0f1d36 100644 --- a/urtrator.go +++ b/urtrator.go @@ -11,6 +11,7 @@ package main import ( // local + "github.com/pztrn/urtrator/common" "github.com/pztrn/urtrator/context" "github.com/pztrn/urtrator/ui" @@ -20,7 +21,7 @@ import ( ) func main() { - fmt.Println("This is URTrator, version 0.1") + fmt.Println("This is URTrator, version " + common.URTRATOR_VERSION) numCPUs := runtime.NumCPU() runtime.GOMAXPROCS(numCPUs)