Skip to content

Commit 21dabea

Browse files
Thomas StrombergThomas Stromberg
authored andcommitted
add missing file
1 parent 62676dc commit 21dabea

File tree

2 files changed

+48
-0
lines changed

2 files changed

+48
-0
lines changed

cmd/goose/icons_unix.go

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
//go:build !windows
2+
3+
package main
4+
5+
import (
6+
_ "embed"
7+
)
8+
9+
// Embed PNG files for Unix-like systems (macOS, Linux)
10+
//
11+
//go:embed icons/goose.png
12+
var iconGoose []byte
13+
14+
//go:embed icons/popper.png
15+
var iconPopper []byte
16+
17+
//go:embed icons/smiling-face.png
18+
var iconSmiling []byte
19+
20+
//go:embed icons/lock.png
21+
var iconLock []byte
22+
23+
//go:embed icons/warning.png
24+
var iconWarning []byte

cmd/goose/icons_windows.go

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
//go:build windows
2+
3+
package main
4+
5+
import (
6+
_ "embed"
7+
)
8+
9+
// Embed Windows ICO files at compile time
10+
//
11+
//go:embed icons/goose.ico
12+
var iconGoose []byte
13+
14+
//go:embed icons/popper.ico
15+
var iconPopper []byte
16+
17+
//go:embed icons/smiling-face.ico
18+
var iconSmiling []byte
19+
20+
//go:embed icons/warning.ico
21+
var iconWarning []byte
22+
23+
// lock.ico not yet created, using warning as fallback
24+
var iconLock = iconWarning

0 commit comments

Comments
 (0)