diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9377325 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,6 @@ +# Set the default behavior, in case people don't have core.autocrlf set. +* text=auto + +# Declare files that will always have LF line endings on checkout. +Makefile text eol=lf + diff --git a/Makefile b/Makefile index e141351..7c0afc0 100644 --- a/Makefile +++ b/Makefile @@ -15,14 +15,18 @@ binary: clean echo "GOPATH is not set"; \ exit 1; \ fi - GOOS=linux GOARCH=amd64 govvv build -v \ + GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -v \ + -tags "netgo osusergo" \ -ldflags "-X main.Version=`grep -E -m 1 -o '(.*)' misc/manifest.xml | awk -F">" '{print $$2}' | awk -F"<" '{print $$1}'`" \ - -o $(BINDIR)/$(BIN) ./main - GOOS=linux GOARCH=arm64 govvv build -v \ + -o $(BINDIR)/$(BIN) ./main + GOOS=linux GOARCH=arm64 CGO_ENABLED=0 go build -v \ + -tags "netgo osusergo" \ -ldflags "-X main.Version=`grep -E -m 1 -o '(.*)' misc/manifest.xml | awk -F">" '{print $$2}' | awk -F"<" '{print $$1}'`" \ -o $(BINDIR)/$(BIN_ARM64) ./main cp ./misc/custom-script-shim ./$(BINDIR) + clean: rm -rf "$(BINDIR)" "$(BUNDLEDIR)" .PHONY: clean binary +