From 2cab45fe9c6d3bf0465315c3d3a30ab86f42069c Mon Sep 17 00:00:00 2001 From: David Ashby Date: Sat, 17 May 2025 14:44:19 -0400 Subject: [PATCH] organize the media files a little better --- Makefile | 6 +++--- main.go | 4 ++-- icon.png => media/icon.png | Bin noise.png => media/noise.png | Bin raw_gopher.png => media/raw_gopher.png | Bin 5 files changed, 5 insertions(+), 5 deletions(-) rename icon.png => media/icon.png (100%) rename noise.png => media/noise.png (100%) rename raw_gopher.png => media/raw_gopher.png (100%) diff --git a/Makefile b/Makefile index 75793a2..bec8053 100644 --- a/Makefile +++ b/Makefile @@ -1,10 +1,10 @@ -# make does not handle last-modified dates on folders very well, so instead we use the inner binary as the target +# 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 + go tool appify -author "David Ashby" -version `git rev-parse --short HEAD` -id "in.yetaga.why" -name "why" -icon ./media/icon.png -plist ./documentTypes.plist ./why rm why.app/Contents/README documentTypes.plist: filetypes/*.go filetypes/cmd/*.go go generate main.go -why: *.go filetypes/*.go noise.png icon.png go.mod go.sum $(go.work go.work.sum) +why: *.go filetypes/*.go media/* go.mod go.sum $(go.work go.work.sum) go build . diff --git a/main.go b/main.go index c1c426b..f4fb674 100644 --- a/main.go +++ b/main.go @@ -25,10 +25,10 @@ type state struct { images []string } -//go:embed noise.png +//go:embed media/noise.png var noise []byte // this is a default image -//go:embed icon.png +//go:embed media/icon.png var icon []byte // this is the app icon //go:generate go run ./filetypes/cmd/gen.go diff --git a/icon.png b/media/icon.png similarity index 100% rename from icon.png rename to media/icon.png diff --git a/noise.png b/media/noise.png similarity index 100% rename from noise.png rename to media/noise.png diff --git a/raw_gopher.png b/media/raw_gopher.png similarity index 100% rename from raw_gopher.png rename to media/raw_gopher.png