added binary location and script for building all

main
Keegan 2 years ago
commit 01eeeae96d

3
.gitignore vendored

@ -15,3 +15,6 @@
*.swp
# Dependency directories (remove the comment below to include it)
# vendor/
# binaries
bin/*

@ -0,0 +1,7 @@
#!/bin/bash
env GOOS=linux GOARCH=arm GOARM=7 go build -o bin/reactor_linux_arm cmd/reactor/main.go
env GOOS=linux GOARCH=arm GOARM=7 go build -o bin/tui_linux_arm cmd/tui/main.go
env GOOS=linux GOARCH=amd64 go build -o bin/tui_linux_amd64 cmd/tui/main.go
env GOOS=linux GOARCH=amd64 go build -o bin/server_linux_amd64 cmd/server/main.go

@ -1,2 +1,2 @@
#!/bin/bash
env GOOS=linux GOARCH=arm GOARM=7 go build
env GOOS=linux GOARCH=arm GOARM=7 go build -o ../../bin/

@ -27,7 +27,8 @@ func main() {
w := flag.CommandLine.Output()
fmt.Fprintf(w, "Usage: %s port \n",os.Args[0])
}
iptr := flag.String("i","192.168.100.2","ip address of server")
// iptr := flag.String("i","192.168.100.2","ip address of server")
iptr := flag.String("i","192.1.168.136","ip address of laptop")
flag.Parse()
if flag.NArg() != 1 {
flag.Usage()

Binary file not shown.

@ -0,0 +1,2 @@
#!/bin/bash
go build -race -o ../../bin/server_$GOOS_$GOARCH

@ -7,8 +7,8 @@ import (
"log"
"os"
"fmt"
"FRMS/internal/pkg/server"
"FRMS/internal/pkg/logging"
"FRMS/internal/pkg/server"
)
type listener interface {
@ -41,7 +41,7 @@ func main() {
log.Fatal(err)
}
go l.Start()
logging.Debug(logging.DStart, "server starting")
logging.Debug(logging.DStart, "Server started")
err = <-ch // blocking to wait for any errors and keep alive otherwise
if err != nil {
//fmt.Printf("ERROR: %v\n",err)

Binary file not shown.

@ -1,2 +1,2 @@
#!/bin/bash
env GOOS=linux GOARCH=arm GOARM=7 go build
env GOOS=linux GOARCH=arm GOARM=7 go build -o ../../bin/

@ -0,0 +1,2 @@
#!/bin/bash
go build -o ../../bin/

@ -25,7 +25,8 @@ func main() {
w := flag.CommandLine.Output()
fmt.Fprintf(w,"Usage: %s port [eth*, wlan*, etc.]\n", os.Args[0])
}
iptr := flag.String("i","192.168.100.2","ip address of listener")
// iptr := flag.String("i","192.168.100.2","ip address of listener")
iptr := flag.String("i","192.1.168.136","ip address of laptop")
flag.Parse()
if flag.NArg() != 2 {
flag.Usage()

Binary file not shown.

@ -72,7 +72,6 @@ func (d *data) Killed() {
d.Lock()
defer d.Unlock()
if d.bool {
fmt.Println(time.Now().Location())
d.string = time.Now().Format("Mon at 03:04:05pm MST")
d.bool = false
}

@ -190,7 +190,7 @@ func (d *Display) DisplayDevices(devs map[uint32]*Device, rid uint32) {
var reactorList *tview.List
var ok bool
if reactorList, ok = d.DeviceList[reactorPage]; !ok {
reactorList = tview.NewList().ShowSecondaryText(false)
reactorList = tview.NewList()//.ShowSecondaryText(false)
d.DeviceList[reactorPage] = reactorList
d.DevicePages.AddPage(reactorPage, reactorList, true, false)
}

Loading…
Cancel
Save