Skip to content

Commit

Permalink
Merge pull request #15 from zxjsdp/feature/update_version_display
Browse files Browse the repository at this point in the history
Update version display
  • Loading branch information
zxjsdp authored Nov 16, 2017
2 parents 89a060a + 77d4ffa commit 1a99ea6
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions .bumpversion.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ commit = True
tag = True

[bumpversion:file:README.md]
[bumpversion:file:config/specimen.go]

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

## 运行方式

下载已经编译好的可执行文件,点击运行即可。最新版本下载:[1.3.0](https://github.com/zxjsdp/specimen-go/releases)
下载已经编译好的可执行文件,点击运行即可。最新版本下载:[specimen-go 最新 V1.3.0 版本](https://github.com/zxjsdp/specimen-go/releases)

也可以在命令行中直接传入参数执行。

Expand Down
2 changes: 2 additions & 0 deletions config/specimen.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package config

const Version = "V1.3.0" // 请勿手动修改, 应使用 bumpversion 自动更新

// Const: specimen info
const (
LibraryCode = "FUS" // 馆代码
Expand Down
4 changes: 3 additions & 1 deletion gui/windows/specimen-go-gui.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import (

"github.com/lxn/walk"
. "github.com/lxn/walk/declarative"
"github.com/zxjsdp/specimen-go/config"
"github.com/zxjsdp/specimen-go/converters"
"github.com/zxjsdp/specimen-go/entities"
"github.com/zxjsdp/specimen-go/files"
Expand Down Expand Up @@ -378,5 +379,6 @@ func (mw *MyMainWindow) helpAction_Triggered() {
}

func (mw *MyMainWindow) aboutAction_Triggered() {
walk.MsgBox(mw, "关于", "Specimen GUI v1.2.0 by zxjsdp", walk.MsgBoxIconInformation)
about := fmt.Sprintf("%s\nSpecimen GUI %s by zxjsdp\n复旦大学生科院 G417 实验室", Title, config.Version)
walk.MsgBox(mw, "关于", about, walk.MsgBoxIconInformation)
}

0 comments on commit 1a99ea6

Please sign in to comment.