Skip to content

Commit 0a1ed30

Browse files
committed
Splash screens using icon.png on unix
Splash screens use the the icon.png to create the splash screens as the contain fails on unix with "\\splash\\"
1 parent a1e1a45 commit 0a1ed30

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

main.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import (
1717
// Declarations
1818
const imgIcon = "icon.png"
1919
const imgSplash = "splash.png"
20+
const splashPath = string(os.PathSeparator) + "splash" + string(os.PathSeparator)
2021

2122
func main() {
2223
//Defining Version
@@ -78,7 +79,7 @@ func GenerateResources(pngs []string) {
7879
for _, p := range pngs {
7980
width, height := GetImageDimension(p)
8081
src := LoadImage(imgIcon)
81-
if strings.Contains(p, "\\splash\\") {
82+
if strings.Contains(p, splashPath) {
8283
src = LoadImage(imgSplash)
8384
}
8485
filters := map[string]gift.Filter{

0 commit comments

Comments
 (0)