-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
35 lines (25 loc) · 1.15 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# All builds use the `ebitensinglethread` tag to shave off some CPU usage.
# Details here: https://github.com/hajimehoshi/ebiten/issues/1367
build:
go build -tags ebitensinglethread -o dist/
linux:
GOOS=linux GOARCH=amd64 go build -tags ebitensinglethread -o dist/shark-linux
windows:
GOOS=windows GOARCH=amd64 go build -tags ebitensinglethread -o dist/shark-windows.exe -ldflags -H=windowsgui
macos:
GOOS=darwin GOARCH=amd64 go build -tags ebitensinglethread -o dist/shark-macos
./scripts/make-mac-bundle.sh dist/shark-macos
clean:
rm -rf dist/* icon256.ico icon512.png
# https://ebiten.org/documents/install.html#Debian_/_Ubuntu
deps-debian:
sudo apt install libc6-dev libglu1-mesa-dev libgl1-mesa-dev libxcursor-dev libxi-dev libxinerama-dev libxrandr-dev libxxf86vm-dev libasound2-dev pkg-config
icon256.ico: icon.png
magick convert icon.png -filter point -resize '800%' icon256.ico
icon512.png: icon.png
magick convert icon.png -filter point -resize '1600%' PNG24:icon512.png
shark.syso: icon256.ico
# needs `go install github.com/akavel/rsrc@latest`
~/go/bin/rsrc -ico icon256.ico -o shark.syso
icon.icns: icon512.png
png2icns icon.icns icon512.png