summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--gui.go13
-rw-r--r--monitor.icobin0 -> 34494 bytes
-rw-r--r--monitor_48.pngbin0 -> 2806 bytes
-rw-r--r--resource_amd64.sysobin0 -> 37642 bytes
-rw-r--r--rsrc_windows_amd64.sysobin1844 -> 0 bytes
-rw-r--r--versioninfo.json39
6 files changed, 51 insertions, 1 deletions
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
--- /dev/null
+++ b/monitor.ico
Binary files differ
diff --git a/monitor_48.png b/monitor_48.png
new file mode 100644
index 0000000..fe66aac
--- /dev/null
+++ b/monitor_48.png
Binary files differ
diff --git a/resource_amd64.syso b/resource_amd64.syso
new file mode 100644
index 0000000..ec4a1c6
--- /dev/null
+++ b/resource_amd64.syso
Binary files differ
diff --git a/rsrc_windows_amd64.syso b/rsrc_windows_amd64.syso
deleted file mode 100644
index 90f5dc2..0000000
--- a/rsrc_windows_amd64.syso
+++ /dev/null
Binary files 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"
+}