decentral1se
3 years ago
6 changed files with 189 additions and 15 deletions
@ -1,2 +1,3 @@ |
|||
*.css |
|||
dist/ |
|||
test |
|||
|
@ -0,0 +1,58 @@ |
|||
--- |
|||
|
|||
project_name: distribusi |
|||
|
|||
gitea_urls: |
|||
api: https://git.vvvvvvaria.org/api/v1 |
|||
download: https://git.vvvvvvaria.org/ |
|||
skip_tls_verify: false |
|||
|
|||
before: |
|||
hooks: |
|||
- go mod tidy |
|||
- go generate ./... |
|||
|
|||
builds: |
|||
- env: |
|||
- CGO_ENABLED=0 |
|||
goos: |
|||
- linux |
|||
- windows |
|||
- darwin |
|||
goarch: |
|||
- 386 |
|||
- amd64 |
|||
- arm |
|||
- arm64 |
|||
goarm: |
|||
- 5 |
|||
- 6 |
|||
- 7 |
|||
ldflags: |
|||
- "-X 'main.Version={{ .Version }}'" |
|||
- "-X 'main.Commit={{ .Commit }}'" |
|||
|
|||
archives: |
|||
- replacements: |
|||
darwin: Darwin |
|||
linux: Linux |
|||
windows: Windows |
|||
386: i386 |
|||
amd64: x86_64 |
|||
format: binary |
|||
|
|||
checksum: |
|||
name_template: 'checksums.txt' |
|||
|
|||
snapshot: |
|||
name_template: "{{ incpatch .Version }}-alpha" |
|||
|
|||
changelog: |
|||
sort: asc |
|||
filters: |
|||
exclude: |
|||
- "^Revert" |
|||
- "^docs:" |
|||
- "^test:" |
|||
- "^tests:" |
|||
- "^wip:" |
@ -0,0 +1,21 @@ |
|||
COMMIT := $(shell git rev-list -1 HEAD) |
|||
LDFLAGS := "-X 'main.Commit=$(COMMIT)'" |
|||
DIST_LDFLAGS := $(LDFLAGS)" -s -w" |
|||
|
|||
default: build |
|||
|
|||
build: |
|||
@go build -ldflags=$(LDFLAGS) . |
|||
|
|||
install: |
|||
@go install -ldflags=$(LDFLAGS) . |
|||
|
|||
test: |
|||
@go test ./... -cover -v |
|||
|
|||
release: |
|||
@goreleaser release --snapshot --rm-dist && \
|
|||
ssh varia.zone mkdir -p public_html/distribusi-go/$(VERSION) && \
|
|||
scp -r dist/* varia.zone:public_html/distribusi-go/$(VERSION) |
|||
|
|||
.PHONY: build install test release |
Binary file not shown.
Loading…
Reference in new issue