From 2588421fe9bbb134dfa9768814ec51ef8635e720 Mon Sep 17 00:00:00 2001 From: David Ashby Date: Thu, 15 May 2025 17:08:52 -0400 Subject: [PATCH] clean up go.mod file, tweak makefile --- Makefile | 7 ++++--- go.mod | 5 +++-- go.sum | 2 ++ 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index c36feea..75793a2 100644 --- a/Makefile +++ b/Makefile @@ -1,9 +1,10 @@ -why.app: why documentTypes.plist +# make does not handle last-modified dates on folders very well, so instead we use the inner binary as the target +why.app/Contents/MacOS/why.app: why documentTypes.plist go tool appify -author "David Ashby" -version `git rev-parse --short HEAD` -id "in.yetaga.why" -name "why" -icon ./icon.png -plist ./documentTypes.plist ./why rm why.app/Contents/README -documentTypes.plist: filetypes/filetypes.go filetypes/cmd/gen.go +documentTypes.plist: filetypes/*.go filetypes/cmd/*.go go generate main.go -why: main.go filetypes/filetypes.go go.mod go.sum go.work go.work.sum noise.png icon.png +why: *.go filetypes/*.go noise.png icon.png go.mod go.sum $(go.work go.work.sum) go build . diff --git a/go.mod b/go.mod index 0a38909..f7cf98b 100644 --- a/go.mod +++ b/go.mod @@ -3,7 +3,9 @@ module git.yetaga.in/alazyreader/why go 1.24.2 require ( + github.com/dblezek/tga v0.0.0-20150626111426-80720cbc1017 github.com/disintegration/imaging v1.6.2 + github.com/maruel/natural v1.1.1 golang.org/x/image v0.27.0 modernc.org/tk9.0 v0.70.2-0.20250508084556-20db091eb764 ) @@ -12,13 +14,12 @@ require ( git.yetaga.in/alazyreader/appify v0.0.0-20250503185351-c56d5058ecd7 // indirect github.com/JackMordaunt/icns v1.0.0 // indirect github.com/adrg/xdg v0.5.3 // indirect - github.com/dblezek/tga v0.0.0-20150626111426-80720cbc1017 // indirect github.com/dustin/go-humanize v1.0.1 // indirect github.com/ebitengine/purego v0.8.2 // indirect github.com/evilsocket/islazy v1.11.0 // indirect + github.com/ftrvxmtrx/tga v0.0.0-20150524081124-bd8e8d5be13a // indirect github.com/google/uuid v1.6.0 // indirect github.com/hashicorp/golang-lru/v2 v2.0.7 // indirect - github.com/maruel/natural v1.1.1 // indirect github.com/mattn/go-isatty v0.0.20 // indirect github.com/ncruces/go-strftime v0.1.9 // indirect github.com/nfnt/resize v0.0.0-20180221191011-83c6a9932646 // indirect diff --git a/go.sum b/go.sum index 5051049..e74056d 100644 --- a/go.sum +++ b/go.sum @@ -18,6 +18,8 @@ github.com/evilsocket/islazy v1.11.0 h1:B5w6uuS6ki6iDG+aH/RFeoMb8ijQh/pGabewqp2U github.com/evilsocket/islazy v1.11.0/go.mod h1:muYH4x5MB5YRdkxnrOtrXLIBX6LySj1uFIqys94LKdo= github.com/expr-lang/expr v1.17.2 h1:o0A99O/Px+/DTjEnQiodAgOIK9PPxL8DtXhBRKC+Iso= github.com/expr-lang/expr v1.17.2/go.mod h1:8/vRC7+7HBzESEqt5kKpYXxrxkr31SaO8r40VO/1IT4= +github.com/ftrvxmtrx/tga v0.0.0-20150524081124-bd8e8d5be13a h1:eSqaRmdlZ9JsJ7JuWfDr3ym3monToXRczohBOL+heVQ= +github.com/ftrvxmtrx/tga v0.0.0-20150524081124-bd8e8d5be13a/go.mod h1:US5WvgEHtG+BvWNNs6gk937h0QL2g2x+r7RH8m3g80Y= github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/hashicorp/golang-lru/v2 v2.0.7 h1:a+bsQ5rvGLjzHuww6tVxozPZFVghXaHOwFs4luLUK2k=