diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 4b3ed26..dfa47f7 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -11,31 +11,32 @@ builds: goos: - linux - darwin + - windows archives: - - format: tar.gz - # this name template makes the OS and Arch compatible with the results of `uname`. - name_template: >- - {{ .ProjectName }}_ - {{- title .Os }}_ - {{- if eq .Arch "amd64" }}x86_64 - {{- else if eq .Arch "386" }}i386 - {{- else }}{{ .Arch }}{{ end }} - {{- if .Arm }}v{{ .Arm }}{{ end }} - # use zip for windows archives - format_overrides: + - format_overrides: - goos: windows - format: zip + formats: ["zip"] + checksum: - name_template: 'checksums.txt' -snapshot: - name_template: "{{ incpatch .Version }}-next" + name_template: "checksums.txt" + release: draft: true prerelease: auto + changelog: sort: asc filters: exclude: - "^docs:" - "^test:" + +nfpms: + - maintainer: Richard Case + vendor: Liquid Metal Project + homepage: https://liquidmetal.dev/ + formats: + - apk + - deb + - rpm diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..8d32caa --- /dev/null +++ b/Makefile @@ -0,0 +1,5 @@ + + +.PHONY: build +build: ## Build the binaries + goreleaser release --snapshot --clean \ No newline at end of file diff --git a/devbox.json b/devbox.json index e193dfd..188da4a 100644 --- a/devbox.json +++ b/devbox.json @@ -1,12 +1,13 @@ { "$schema": "https://raw.githubusercontent.com/jetify-com/devbox/0.13.6/.schema/devbox.schema.json", "packages": [ - "go@1.22.9" + "go@1.22.9", + "goreleaser@latest" ], "shell": { "env": { "GOPATH": "$HOME/go/", - "PATH": "$PATH:$HOME/go/bin" + "PATH": "$PATH:$HOME/go/bin" }, "init_hook": [ "export \"GOROOT=$(go env GOROOT)\"" @@ -15,4 +16,4 @@ "run_test": "go run main.go" } } -} \ No newline at end of file +} diff --git a/devbox.lock b/devbox.lock index ef25046..cce3eab 100644 --- a/devbox.lock +++ b/devbox.lock @@ -48,6 +48,54 @@ "store_path": "/nix/store/frc5188kgv3ws0n999c7cy5vi2f8k4jp-go-1.22.9" } } + }, + "goreleaser@latest": { + "last_modified": "2025-02-12T00:10:52Z", + "resolved": "github:NixOS/nixpkgs/83a2581c81ff5b06f7c1a4e7cc736a455dfcf7b4#goreleaser", + "source": "devbox-search", + "version": "2.7.0", + "systems": { + "aarch64-darwin": { + "outputs": [ + { + "name": "out", + "path": "/nix/store/rgp8lyvjd2jc0n1hf8xwlcih2nh58p55-goreleaser-2.7.0", + "default": true + } + ], + "store_path": "/nix/store/rgp8lyvjd2jc0n1hf8xwlcih2nh58p55-goreleaser-2.7.0" + }, + "aarch64-linux": { + "outputs": [ + { + "name": "out", + "path": "/nix/store/8qlyfy6cp0s42h7p9qm736ygvkklfy2q-goreleaser-2.7.0", + "default": true + } + ], + "store_path": "/nix/store/8qlyfy6cp0s42h7p9qm736ygvkklfy2q-goreleaser-2.7.0" + }, + "x86_64-darwin": { + "outputs": [ + { + "name": "out", + "path": "/nix/store/hpb3rvn4y1sblrcnb636hyr7vksc64a5-goreleaser-2.7.0", + "default": true + } + ], + "store_path": "/nix/store/hpb3rvn4y1sblrcnb636hyr7vksc64a5-goreleaser-2.7.0" + }, + "x86_64-linux": { + "outputs": [ + { + "name": "out", + "path": "/nix/store/16dslcqzgwsalmhxz941v2xlvx92nhc5-goreleaser-2.7.0", + "default": true + } + ], + "store_path": "/nix/store/16dslcqzgwsalmhxz941v2xlvx92nhc5-goreleaser-2.7.0" + } + } } } }