From 100b93cda89c41d6933a3cb47cd3eff05516b822 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20=27Necoro=27=20Neumann?= Date: Tue, 1 Feb 2022 13:31:07 +0100 Subject: Icon and better windows data --- gui.go | 13 ++++++++++++- monitor.ico | Bin 0 -> 34494 bytes monitor_48.png | Bin 0 -> 2806 bytes resource_amd64.syso | Bin 0 -> 37642 bytes rsrc_windows_amd64.syso | Bin 1844 -> 0 bytes versioninfo.json | 39 +++++++++++++++++++++++++++++++++++++++ 6 files changed, 51 insertions(+), 1 deletion(-) create mode 100644 monitor.ico create mode 100644 monitor_48.png create mode 100644 resource_amd64.syso delete mode 100644 rsrc_windows_amd64.syso create mode 100644 versioninfo.json diff --git a/gui.go b/gui.go index 6b03aff..048d43a 100644 --- a/gui.go +++ b/gui.go @@ -1,13 +1,20 @@ package main import ( + "bytes" + _ "embed" + "image" + _ "image/png" "time" g "github.com/AllenDang/giu" "github.com/AllenDang/imgui-go" ) -//go:generate rsrc -manifest engarde-importer.exe.manifest +//go:generate goversioninfo -64 -o resource_amd64.syso + +//go:embed monitor_48.png +var icon []byte var ( guiCfg EngardeConfig @@ -89,5 +96,9 @@ func loop(w *g.MasterWindow) func() { func gui() { guiCfg.Date = time.Now() w := g.NewMasterWindow("Engarde Importer", 400, 200, 0) + if img, _, err := image.Decode(bytes.NewReader(icon)); err != nil { + w.SetIcon([]image.Image{img}) + } + w.Run(loop(w)) } diff --git a/monitor.ico b/monitor.ico new file mode 100644 index 0000000..9301f41 Binary files /dev/null and b/monitor.ico differ diff --git a/monitor_48.png b/monitor_48.png new file mode 100644 index 0000000..fe66aac Binary files /dev/null and b/monitor_48.png differ diff --git a/resource_amd64.syso b/resource_amd64.syso new file mode 100644 index 0000000..ec4a1c6 Binary files /dev/null and b/resource_amd64.syso differ diff --git a/rsrc_windows_amd64.syso b/rsrc_windows_amd64.syso deleted file mode 100644 index 90f5dc2..0000000 Binary files a/rsrc_windows_amd64.syso and /dev/null differ diff --git a/versioninfo.json b/versioninfo.json new file mode 100644 index 0000000..a2b90ab --- /dev/null +++ b/versioninfo.json @@ -0,0 +1,39 @@ +{ + "FixedFileInfo": { + "FileVersion": { + "Major": 0, + "Minor": 5, + "Patch": 0, + "Build": 0 + }, + "ProductVersion": { + "Major": 0, + "Minor": 5, + "Patch": 0, + "Build": 0 + }, + "FileFlagsMask": "3f", + "FileFlags ": "00", + "FileOS": "040004", + "FileType": "01", + "FileSubType": "00" + }, + "StringFileInfo": { + "CompanyName": "René Neumann", + "FileDescription": "Importer for EnGarde (from Ophardt)", + "FileVersion": "v0.5.0.0", + "InternalName": "engarde-importer.exe", + "LegalCopyright": "Copyright (c) 2022 René Neumann", + "OriginalFilename": "engarde-importer.exe", + "ProductName": "engarde-importer", + "ProductVersion": "v0.5.0.0" + }, + "VarFileInfo": { + "Translation": { + "LangID": "0407", + "CharsetID": "04B0" + } + }, + "IconPath": "monitor.ico", + "ManifestPath": "engarde-importer.exe.manifest" +} -- cgit v1.2.3