Build for Solaris

Refresh pty import and add Solaris as a cross compile target
This commit is contained in:
Søren L. Hansen 2021-04-10 23:38:29 -07:00
parent 3b9f472111
commit 4a82d77e0b
4 changed files with 6 additions and 4 deletions

View File

@ -76,7 +76,7 @@ test:
if [ `go fmt $(go list ./... | grep -v /vendor/) | wc -l` -gt 0 ]; then echo "go fmt error"; exit 1; fi
cross_compile:
GOARM=5 gox -os="darwin linux freebsd netbsd openbsd" -arch="386 amd64 arm" -osarch="!darwin/arm" -output "${OUTPUT_DIR}/pkg/{{.OS}}_{{.Arch}}/{{.Dir}}"
GOARM=5 gox -os="darwin linux freebsd netbsd openbsd solaris" -arch="386 amd64 arm" -osarch="!darwin/arm" -output "${OUTPUT_DIR}/pkg/{{.OS}}_{{.Arch}}/{{.Dir}}"
targz:
mkdir -p ${OUTPUT_DIR}/dist

View File

@ -7,4 +7,5 @@
* Fix printing of ipv6 addresses (Thanks, @Felixoid!)
* Add Progressive Web App support (Thanks, @sehaas!)
* Add instructions for GNU screen (Thanks, @Immortalin!)
* Add Solaris support (Thanks, @fazalmajid!)
* New maintainer: @sorenisanerd

View File

@ -6,7 +6,7 @@ import (
"syscall"
"time"
"github.com/kr/pty"
"github.com/creack/pty"
"github.com/pkg/errors"
)
@ -101,8 +101,8 @@ func (lcmd *LocalCommand) ResizeTerminal(width int, height int) error {
window := pty.Winsize{
Rows: uint16(height),
Cols: uint16(width),
X: 0,
Y: 0,
X: 0,
Y: 0,
}
err := pty.Setsize(lcmd.pty, &window)
if err != nil {

1
go.mod
View File

@ -4,6 +4,7 @@ go 1.13
require (
github.com/NYTimes/gziphandler v1.1.1
github.com/creack/pty v1.1.7
github.com/elazarl/go-bindata-assetfs v1.0.0
github.com/fatih/structs v1.1.0
github.com/gorilla/websocket v1.4.1