Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update version display #15

Merged
merged 1 commit into from
Nov 16, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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)
}