Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -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

10 changes: 7 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 '<Version>(.*)</Version>' 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 '<Version>(.*)</Version>' 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

Loading