-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
22 lines (16 loc) · 941 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#
# github.com/vidfamn/OGSGameNotifier
#
VERSION="v0.1.2-$(shell git rev-parse --short HEAD)"
BUILD_TIME=$(shell date +"%Y%m%d.%H%M%S")
build: clean
mkdir -p bin/assets
cp assets/notification_icon.png bin/assets
GOOS=linux GOARCH=amd64 go build -ldflags="-X 'main.Version=${VERSION}' -X 'main.Build=${BUILD_TIME}'" -o bin/OGSGameNotifier-amd64-linux .
# GOOS=windows GOARCH=amd64 go build -ldflags="-X 'main.Version=${VERSION}' -X 'main.Build=${BUILD_TIME}' -H 'windowsgui'" -o bin/OGSGameNotifier-amd64-windows.exe main.go
# GOOS=darwin GOARCH=amd64 go build -ldflags="-X 'main.Version=${VERSION}' -X 'main.Build=${BUILD_TIME}'" -o bin/OGSGameNotifier-amd64-darwin main.go
release: clean build
tar -czvf bin/OGSGameNotifier-amd64-linux-${VERSION}.tar.gz bin/OGSGameNotifier-amd64-linux bin/assets
tar -czvf bin/OGSGameNotifier-amd64-windows-${VERSION}.tar.gz bin/OGSGameNotifier-amd64-windows.exe bin/assets
clean:
-rm -rf bin