Skip to content

Commit f3ebb68

Browse files
committed
Fix Windows Icon
1 parent f656f51 commit f3ebb68

File tree

5 files changed

+24
-9
lines changed

5 files changed

+24
-9
lines changed

.DS_Store

0 Bytes
Binary file not shown.

Makefile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
compile:
2-
export CGO_ENABLED=1
2+
# export CGO_ENABLED=1
33
packr2
44
echo "Compiling for mac and windows"
5-
GOOS=windows GOARCH=amd64 go build -o kqb-scoreboard.exe .
5+
# GOOS=windows GOARCH=amd64 go build -o kqb-scoreboard.exe .
66
GOOS=darwin GOARCH=amd64 go build -o kqb-scoreboard .
77
packr2 clean
88
fyne-win:
@@ -14,4 +14,5 @@ fyne-mac:
1414
packr2
1515
GOOS=darwin GOARCH=amd64 go build -o kqb-scoreboard .
1616
fyne package -os darwin -icon Icon.png
17-
packr2 clean
17+
packr2 clean
18+
rm kqb-scoreboard

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Better KQB Scoreboard helps casters keep track of scores and display them beauti
55
KQB Scoreboard was written in Go and provides a browser widget interface for use with OBS.
66

77
## Instructions
8-
1. Download the new GUI release from Github for your platform (Windows or Mac)
8+
1. Download the new GUI release from [Github Releases Page](https://github.com/achhabra2/kqb-scoreboard/releases)
99
2. Unzip the file and run the App
1010
3. Follow the on screen instructions for IGL or Custom Match Type
1111
4. Create a browser source in OBS pointed at http://localhost:8080

icon.go

Lines changed: 10 additions & 0 deletions
Large diffs are not rendered by default.

main.go

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,16 +53,19 @@ func setupLogs() {
5353
}
5454

5555
func main() {
56+
// Configure log output to file
5657
setupLogs()
57-
// var wg sync.WaitGroup
58-
// wg.Add(1)
58+
59+
// Setup HTTP handler and websocket handler
5960
StartHTTPServer()
60-
// SetupCloseHandler()
61+
62+
// Create Fyne App
6163
myApp := app.New()
64+
myApp.SetIcon(resourceIconPng)
6265
_ = GameType(myApp)
6366
myApp.Run()
64-
// RunMatch()
65-
// wg.Wait()
67+
68+
// Called before application exist
6669
tidyUp()
6770
}
6871

@@ -71,6 +74,7 @@ func GetTeamInfo(url string, c chan []Team) {
7174
resp, err := http.Get(url)
7275
if err != nil {
7376
// handle error
77+
log.Println("Could not fetch team info from IGL")
7478
}
7579
defer resp.Body.Close()
7680
body, err := ioutil.ReadAll(resp.Body)

0 commit comments

Comments
 (0)