this repo has no description smallweb.run
smallweb
4
fork

Configure Feed

Select the types of activity you want to include in your feed.

Add windows support (#63)

* add windows version

* dysable syscall

* completely drop the resize events for now

authored by

Achille Lacoin and committed by
GitHub
364d9896 a2c9330a

+3 -9
+2 -9
cmd/up.go
··· 15 15 "slices" 16 16 "strings" 17 17 "sync" 18 - "syscall" 19 - "unsafe" 20 18 21 19 _ "embed" 22 20 ··· 273 271 cmd.Env = os.Environ() 274 272 cmd.Env = append(cmd.Env, "SMALLWEB_DISABLE_PLUGINS=true") 275 273 276 - ptyReq, winCh, isPty := sess.Pty() 274 + ptyReq, _, isPty := sess.Pty() 277 275 if isPty { 278 276 cmd.Env = append(cmd.Env, fmt.Sprintf("TERM=%s", ptyReq.Term)) 279 277 f, err := pty.Start(cmd) ··· 282 280 sess.Exit(1) 283 281 return 284 282 } 285 - go func() { 286 - for win := range winCh { 287 - syscall.Syscall(syscall.SYS_IOCTL, f.Fd(), uintptr(syscall.TIOCSWINSZ), 288 - uintptr(unsafe.Pointer(&struct{ h, w, x, y uint16 }{uint16(win.Height), uint16(win.Width), 0, 0}))) 289 - } 290 - }() 283 + 291 284 go func() { 292 285 io.Copy(f, sess) 293 286 }()
+1
goreleaser.yaml
··· 22 22 - -X github.com/pomdtr/smallweb/build.Date={{.Date}} 23 23 - -X github.com/pomdtr/smallweb/build.BuiltBy=goreleaser 24 24 goos: 25 + - windows 25 26 - linux 26 27 - darwin 27 28 archives: