Skip to content

Commit

Permalink
fix build (wmimpl on android/darwin)
Browse files Browse the repository at this point in the history
update deps
etc
  • Loading branch information
srlehn committed May 26, 2024
1 parent 342668e commit 6f58251
Show file tree
Hide file tree
Showing 6 changed files with 120 additions and 43 deletions.
16 changes: 8 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,36 +13,36 @@ all: timg termui tcell


timg: ${SRC}
@env GOWORK=off CGO_ENABLED=0 go build -mod=vendor -trimpath -ldflags '-w -s' -o timg${EXT} ./cmd/timg
@env GOWORK=off CGO_ENABLED=0 GOEXPERIMENT=rangefunc go build -mod=vendor -trimpath -ldflags '-w -s' -o timg${EXT} ./cmd/timg

.PHONY: timg-caire
timg-caire: ${SRC}
@env GOWORK=off CGO_ENABLED=1 go build -tags 'caire' -trimpath -ldflags '-w -s' -o timg${EXT} ./cmd/timg
@env GOWORK=off CGO_ENABLED=1 GOEXPERIMENT=rangefunc go build -tags 'caire' -trimpath -ldflags '-w -s' -o timg${EXT} ./cmd/timg

.PHONY: timg-tiny
timg-tiny: ${SRC}
@env GOWORK=off CGO_ENABLED=0 garble -tiny build -mod=vendor -trimpath -ldflags '-w -s' -o timg${EXT} ./cmd/timg || \
env GOWORK=off CGO_ENABLED=0 go build -mod=vendor -trimpath -ldflags '-w -s' -o timg${EXT} ./cmd/timg
@env GOWORK=off CGO_ENABLED=0 GOEXPERIMENT=rangefunc garble -tiny build -mod=vendor -trimpath -ldflags '-w -s' -o timg${EXT} ./cmd/timg || \
env GOWORK=off CGO_ENABLED=0 GOEXPERIMENT=rangefunc go build -mod=vendor -trimpath -ldflags '-w -s' -o timg${EXT} ./cmd/timg
@sstrip timg${EXT} || :
@upx --ultra-brute --overlay=strip --strip-relocs=0 timg${EXT}


# termui: *.go cmd/termui_test/main.go
termui: ${SRC}
@env GOWORK=off CGO_ENABLED=0 go build -mod=vendor -trimpath -ldflags '-w -s' -o termui${EXT} cmd/termui_test/main.go
@env GOWORK=off CGO_ENABLED=0 GOEXPERIMENT=rangefunc go build -mod=vendor -trimpath -ldflags '-w -s' -o termui${EXT} cmd/termui_test/main.go

# tcell: *.go cmd/tcell_test/main.go
tcell: ${SRC}
@env GOWORK=off CGO_ENABLED=0 go build -mod=vendor -trimpath -ldflags '-w -s' -o tcell${EXT} cmd/tcell_test/main.go
@env GOWORK=off CGO_ENABLED=0 GOEXPERIMENT=rangefunc go build -mod=vendor -trimpath -ldflags '-w -s' -o tcell${EXT} cmd/tcell_test/main.go


.PHONY: dev
dev: ${SRC}
@CGO_ENABLED=0 go build -tags 'dev' -trimpath -ldflags '-w -s' -o timg${EXT} ./cmd/timg
@CGO_ENABLED=0 GOEXPERIMENT=rangefunc go build -tags 'dev' -trimpath -ldflags '-w -s' -o timg${EXT} ./cmd/timg

.PHONY: dev-caire
dev-caire: ${SRC}
@env GOWORK=off CGO_ENABLED=1 go build -tags 'dev,caire' -trimpath -ldflags '-w -s' -o timg${EXT} ./cmd/timg
@env GOWORK=off CGO_ENABLED=1 GOEXPERIMENT=rangefunc go build -tags 'dev,caire' -trimpath -ldflags '-w -s' -o timg${EXT} ./cmd/timg



Expand Down
2 changes: 1 addition & 1 deletion env/advanced/env.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"strconv"
"strings"

"github.com/shirou/gopsutil/process"
"github.com/shirou/gopsutil/v3/process"

"github.com/srlehn/termimg/internal"
"github.com/srlehn/termimg/internal/environ"
Expand Down
50 changes: 27 additions & 23 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
module github.com/srlehn/termimg

go 1.21
go 1.22

require (
github.com/anthonynsimon/bild v0.13.0
github.com/aymanbagabas/go-pty v0.2.0
github.com/aymanbagabas/go-pty v0.2.2
github.com/bamiaux/rez v0.0.0-20170731184118-29f4463c688b
github.com/charmbracelet/bubbles v0.16.1
github.com/charmbracelet/bubbletea v0.24.2
github.com/charmbracelet/lipgloss v0.9.1
github.com/containerd/console v1.0.4-0.20230313162750-1ae8d489ac81
github.com/containerd/console v1.0.4
github.com/creack/pty v1.1.21
github.com/creack/pty/v2 v2.0.1
github.com/disintegration/gift v1.2.1
github.com/disintegration/imaging v1.6.2
github.com/esimov/caire v1.4.6
github.com/fogleman/gg v1.3.0
github.com/gdamore/tcell/v2 v2.6.1-0.20230827060410-08c7757cd1c9
github.com/gdamore/tcell/v2 v2.7.4
github.com/gizak/termui/v3 v3.1.0
github.com/go-errors/errors v1.5.1
github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0
github.com/gonutz/w32/v2 v2.11.1
github.com/google/btree v1.1.2
github.com/gopxl/beep v1.1.0
github.com/iancoleman/strcase v0.3.0
github.com/jezek/xgb v1.1.0
github.com/jezek/xgb v1.1.1
github.com/lxn/win v0.0.0-20210218163916-a377121e959e
github.com/mattn/go-sixel v0.0.5
github.com/mattn/go-tty v0.0.5
Expand All @@ -36,19 +36,20 @@ require (
github.com/rivo/tview v0.0.0-20230621164836-6cc0565babaf
github.com/rkoesters/xdg v0.0.1
github.com/shirou/gopsutil v3.21.11+incompatible
github.com/shirou/gopsutil/v3 v3.24.4
github.com/spf13/cobra v1.8.0
github.com/srlehn/thumbnails v0.0.0-20231004190311-5a9b465c0dd8
github.com/srlehn/xgbutil v0.0.0-20230718194130-098830f60574
github.com/stretchr/testify v1.8.4
github.com/u-root/u-root v0.11.0
golang.org/x/exp v0.0.0-20231110203233-9a3e6036ecaa
golang.org/x/image v0.14.0
golang.org/x/sys v0.14.0
github.com/stretchr/testify v1.9.0
github.com/u-root/u-root v0.14.0
golang.org/x/exp v0.0.0-20240506185415-9bf2ced13842
golang.org/x/image v0.16.0
golang.org/x/sys v0.20.0
mvdan.cc/sh v2.6.4+incompatible
)

require (
gioui.org v0.3.1 // indirect
gioui.org v0.6.0 // indirect
gioui.org/cpu v0.0.0-20220412190645-f1e9e8c3b1f7 // indirect
gioui.org/shader v1.0.8 // indirect
github.com/BurntSushi/freetype-go v0.0.0-20160129220410-b763ddbfe298 // indirect
Expand All @@ -62,13 +63,14 @@ require (
github.com/dustin/go-humanize v1.0.1 // indirect
github.com/esimov/pigo v1.4.6 // indirect
github.com/gabriel-vasile/mimetype v1.4.3 // indirect
github.com/gdamore/encoding v1.0.0 // indirect
github.com/gdamore/encoding v1.0.1 // indirect
github.com/go-ole/go-ole v1.3.0 // indirect
github.com/go-text/typesetting v0.0.0-20231120180320-af78120ccb13 // indirect
github.com/go-text/typesetting v0.1.1 // indirect
github.com/golang/geo v0.0.0-20230421003525-6adc56603217 // indirect
github.com/inconshreveable/mousetrap v1.1.0 // indirect
github.com/kr/pretty v0.3.1 // indirect
github.com/lucasb-eyer/go-colorful v1.2.0 // indirect
github.com/lufia/plan9stats v0.0.0-20240513124658-fba389f38bae // indirect
github.com/mattn/go-isatty v0.0.20 // indirect
github.com/mattn/go-localereader v0.0.1 // indirect
github.com/mattn/go-runewidth v0.0.15 // indirect
Expand All @@ -77,18 +79,20 @@ require (
github.com/muesli/cancelreader v0.2.2 // indirect
github.com/nsf/termbox-go v1.1.1 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/rivo/uniseg v0.4.4 // indirect
github.com/power-devops/perfstat v0.0.0-20240221224432-82ca36839d55 // indirect
github.com/rivo/uniseg v0.4.7 // indirect
github.com/shoenig/go-m1cpu v0.1.6 // indirect
github.com/soniakeys/quant v1.0.0 // indirect
github.com/spf13/pflag v1.0.5 // indirect
github.com/tklauser/go-sysconf v0.3.12 // indirect
github.com/tklauser/numcpus v0.6.1 // indirect
github.com/yusufpapurcu/wmi v1.2.3 // indirect
golang.org/x/crypto v0.15.0 // indirect
golang.org/x/exp/shiny v0.0.0-20231110203233-9a3e6036ecaa // indirect
golang.org/x/net v0.18.0 // indirect
golang.org/x/sync v0.5.0 // indirect
golang.org/x/term v0.14.0 // indirect
golang.org/x/text v0.14.0 // indirect
github.com/tklauser/go-sysconf v0.3.14 // indirect
github.com/tklauser/numcpus v0.8.0 // indirect
github.com/yusufpapurcu/wmi v1.2.4 // indirect
golang.org/x/crypto v0.23.0 // indirect
golang.org/x/exp/shiny v0.0.0-20240506185415-9bf2ced13842 // indirect
golang.org/x/net v0.25.0 // indirect
golang.org/x/sync v0.7.0 // indirect
golang.org/x/term v0.20.0 // indirect
golang.org/x/text v0.15.0 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
Loading

0 comments on commit 6f58251

Please sign in to comment.