File tree Expand file tree Collapse file tree 5 files changed +24
-9
lines changed Expand file tree Collapse file tree 5 files changed +24
-9
lines changed Original file line number Diff line number Diff line change 1
1
compile :
2
- export CGO_ENABLED=1
2
+ # export CGO_ENABLED=1
3
3
packr2
4
4
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 .
6
6
GOOS=darwin GOARCH=amd64 go build -o kqb-scoreboard .
7
7
packr2 clean
8
8
fyne-win :
@@ -14,4 +14,5 @@ fyne-mac:
14
14
packr2
15
15
GOOS=darwin GOARCH=amd64 go build -o kqb-scoreboard .
16
16
fyne package -os darwin -icon Icon.png
17
- packr2 clean
17
+ packr2 clean
18
+ rm kqb-scoreboard
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ Better KQB Scoreboard helps casters keep track of scores and display them beauti
5
5
KQB Scoreboard was written in Go and provides a browser widget interface for use with OBS.
6
6
7
7
## 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 )
9
9
2 . Unzip the file and run the App
10
10
3 . Follow the on screen instructions for IGL or Custom Match Type
11
11
4 . Create a browser source in OBS pointed at http://localhost:8080
Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change @@ -53,16 +53,19 @@ func setupLogs() {
53
53
}
54
54
55
55
func main () {
56
+ // Configure log output to file
56
57
setupLogs ()
57
- // var wg sync.WaitGroup
58
- // wg.Add(1)
58
+
59
+ // Setup HTTP handler and websocket handler
59
60
StartHTTPServer ()
60
- // SetupCloseHandler()
61
+
62
+ // Create Fyne App
61
63
myApp := app .New ()
64
+ myApp .SetIcon (resourceIconPng )
62
65
_ = GameType (myApp )
63
66
myApp .Run ()
64
- // RunMatch()
65
- // wg.Wait()
67
+
68
+ // Called before application exist
66
69
tidyUp ()
67
70
}
68
71
@@ -71,6 +74,7 @@ func GetTeamInfo(url string, c chan []Team) {
71
74
resp , err := http .Get (url )
72
75
if err != nil {
73
76
// handle error
77
+ log .Println ("Could not fetch team info from IGL" )
74
78
}
75
79
defer resp .Body .Close ()
76
80
body , err := ioutil .ReadAll (resp .Body )
You can’t perform that action at this time.
0 commit comments