diff --git a/.gitignore b/.gitignore index a725465..ec041ba 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ -vendor/ \ No newline at end of file +vendor/ +bin/ \ No newline at end of file diff --git a/Makefile b/Makefile index ffa3037..3444c3f 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,28 @@ +all: open + +build: clean + mkdir -p -v ./bin/amm.app/Contents/Resources + mkdir -p -v ./bin/amm.app/Contents/MacOS + cp ./appInfo/*.plist ./bin/amm.app/Contents/Info.plist + go build -o ./bin/amm.app/Contents/MacOS/amm cmd/main.go + +open: build + open ./bin + +clean: + rm -rf ./bin + start: go run cmd/main.go test: - go test -v -race -failfast ./... \ No newline at end of file + go test -v -race -failfast ./... + +vet: + go vet $(shell glide nv) + +lint: + go list ./... | grep -v vendor | xargs -L1 golint -set_exit_status + +.PHONY: build +.PHONY: clean \ No newline at end of file diff --git a/appInfo/Info.plist b/appInfo/Info.plist new file mode 100644 index 0000000..091cb93 --- /dev/null +++ b/appInfo/Info.plist @@ -0,0 +1,16 @@ + + + + + CFBundleExecutable + amm + CFBundleIconFile + icon.icns + CFBundleIdentifier + com.pg.amm + NSHighResolutionCapable + + LSUIElement + + + \ No newline at end of file