organize the media files a little better
This commit is contained in:
6
Makefile
6
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
|
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
|
rm why.app/Contents/README
|
||||||
|
|
||||||
documentTypes.plist: filetypes/*.go filetypes/cmd/*.go
|
documentTypes.plist: filetypes/*.go filetypes/cmd/*.go
|
||||||
go generate main.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 .
|
go build .
|
||||||
|
4
main.go
4
main.go
@@ -25,10 +25,10 @@ type state struct {
|
|||||||
images []string
|
images []string
|
||||||
}
|
}
|
||||||
|
|
||||||
//go:embed noise.png
|
//go:embed media/noise.png
|
||||||
var noise []byte // this is a default image
|
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
|
var icon []byte // this is the app icon
|
||||||
|
|
||||||
//go:generate go run ./filetypes/cmd/gen.go
|
//go:generate go run ./filetypes/cmd/gen.go
|
||||||
|
Before Width: | Height: | Size: 296 KiB After Width: | Height: | Size: 296 KiB |
Before Width: | Height: | Size: 172 KiB After Width: | Height: | Size: 172 KiB |
Before Width: | Height: | Size: 295 KiB After Width: | Height: | Size: 295 KiB |
Reference in New Issue
Block a user