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