aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-08-29 16:16:48 -0600
committerJason A. Donenfeld <Jason@zx2c4.com>2019-08-30 08:47:21 -0600
commita423506252312b2affff59334d36ad6c5471d013 (patch)
tree18badadf8bdf1b77b93932b947a352e5591ddf2b /ui
parentversion: use ProductName and ProductVersion as strings (diff)
downloadwireguard-windows-a423506252312b2affff59334d36ad6c5471d013.tar.xz
wireguard-windows-a423506252312b2affff59334d36ad6c5471d013.zip
version: hard code name and version at compile time
We really do want the true name and version in logs so that external consumers have a good reference point for helping us debug. We can then do the log file directory explicitly.
Diffstat (limited to 'ui')
-rw-r--r--ui/aboutdialog.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/ui/aboutdialog.go b/ui/aboutdialog.go
index 732531d4..89b55669 100644
--- a/ui/aboutdialog.go
+++ b/ui/aboutdialog.go
@@ -83,8 +83,7 @@ func runAboutDialog(owner walk.Form) error {
return err
}
detailsLbl.SetTextAlignment(walk.AlignHCenterVNear)
- _, appVersion := version.RunningNameVersion()
- detailsLbl.SetText(fmt.Sprintf("App version: %s\nGo backend version: %s\nGo version: %s\nOperating system: %s\nArchitecture: %s", appVersion, device.WireGuardGoVersion, strings.TrimPrefix(runtime.Version(), "go"), version.OsName(), runtime.GOARCH))
+ detailsLbl.SetText(fmt.Sprintf("App version: %s\nGo backend version: %s\nGo version: %s\nOperating system: %s\nArchitecture: %s", version.Number, device.WireGuardGoVersion, strings.TrimPrefix(runtime.Version(), "go"), version.OsName(), runtime.GOARCH))
copyrightLbl, err := walk.NewTextLabel(dlg)
if err != nil {