-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
28 lines (24 loc) · 862 Bytes
/
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
build:
npx tailwindcss -i ./css/input.css -o ./css/main.css --minify
go-assets-builder schema.sql favicon.ico ini htm img css -o src/assets.go
cd src; CGO_ENABLED=1 go build -o ../bin/sm -ldflags="-w -s" .
buildwin:
npx tailwindcss -i ./css/input.css -o ./css/main.css --minify
go-assets-builder schema.sql favicon.ico ini htm img css -o src/assets.go
go-winres make
cd src; CGO_ENABLED=1 CC=x86_64-w64-mingw32-gcc GOOS=windows GOARCH=amd64 go build -o ../bin/sm.exe -ldflags='-w -s' .
upx -9 bin/sm.exe
run:
go-assets-builder schema.sql favicon.ico ini htm img css -o src/assets.go
cd src; go run .
deps:
go install github.com/jessevdk/go-assets-builder@latest
go install github.com/tc-hib/go-winres@latest
npm install
npx tailwindcss -i ./css/input.css -o ./css/main.css
clean:
rm -r /bin
rm css/main.css
rm assets.go
rm *.syso
go clean