build: use go install
Some checks failed
Deploy / deploy (push) Failing after 45s

This commit is contained in:
xuu
2023-10-15 14:27:15 -06:00
parent b7f4d06731
commit 392341cf38
11 changed files with 28 additions and 30 deletions

View File

@@ -37,7 +37,7 @@ run:
$(BINARY): $(SOURCE) $(ROUTE_ASSET) $(DOCS_ASSET)
go build -v \
-ldflags "-X main.AppVersion=$(VERSION) -X main.AppBuild=$(DATE)" \
"sour.is/x/paste/cmd/paste"
"go.sour.is/paste/cmd/paste"
clean-ui:
rm -rf $(ROUTE_ASSET) $(DOCS_ASSET)
@@ -47,12 +47,12 @@ $(ROUTE_ASSET):
rm -rf build ../public; \
npm i; npm run build; \
cp -r build ../public
go generate "sour.is/x/paste/src/routes"
go generate "go.sour.is/paste/src/routes"
$(DOCS_ASSET):
echo "$$DUMMY_BINDATA" > src/docs/bindata.go
go generate "sour.is/x/paste/cmd/paste"
go generate "sour.is/x/paste/src/docs"
go generate "go.sour.is/paste/cmd/paste"
go generate "go.sour.is/paste/src/docs"
deploy: $(SOURCE) $(ROUTE_ASSET)
cd debian && make