diff options
author | =Corey Hulen <corey@hulen.com> | 2015-10-02 09:01:50 -0700 |
---|---|---|
committer | =Corey Hulen <corey@hulen.com> | 2015-10-02 09:01:50 -0700 |
commit | 3863c3c15e72a278ed439c02b189eba6cccd94ac (patch) | |
tree | ef16793aa00a158da78b8e5bac5e001636d1ed6f /model/version.go | |
parent | b2052de746f8e5f4ca600142fd43b64ceb6c8b84 (diff) | |
download | chat-3863c3c15e72a278ed439c02b189eba6cccd94ac.tar.gz chat-3863c3c15e72a278ed439c02b189eba6cccd94ac.tar.bz2 chat-3863c3c15e72a278ed439c02b189eba6cccd94ac.zip |
Adding offical build function
Diffstat (limited to 'model/version.go')
-rw-r--r-- | model/version.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/model/version.go b/model/version.go index 233fc3747..f4cd4387f 100644 --- a/model/version.go +++ b/model/version.go @@ -67,6 +67,10 @@ func GetPreviousVersion(currentVersion string) (int64, int64) { return 0, 0 } +func IsOfficalBuild() bool { + return model.BuildNumber != "_BUILD_NUMBER_" +} + func IsCurrentVersion(versionToCheck string) bool { currentMajor, currentMinor, _ := SplitVersion(CurrentVersion) toCheckMajor, toCheckMinor, _ := SplitVersion(versionToCheck) |