mirror of
https://github.com/DeBrosOfficial/network.git
synced 2025-12-12 22:58:49 +00:00
chore: streamline GoReleaser configuration to build only network-cli binary
- Updated `.goreleaser.yaml` to focus solely on building the `network-cli` binary, removing configurations for other binaries (node, gateway, identity). - Adjusted archive settings to reflect changes in the build process, resulting in cleaner and smaller release packages. - Updated version in `Makefile` to 0.52.3-beta and documented changes in `CHANGELOG.md`.
This commit is contained in:
parent
d59b65e0b4
commit
1bc6292db3
@ -1,5 +1,6 @@
|
||||
# GoReleaser Configuration for DeBros Network
|
||||
# This config builds and publishes binaries and Debian packages
|
||||
# Builds and releases the network-cli binary for multiple platforms
|
||||
# Other binaries (node, gateway, identity) are installed via: network-cli setup
|
||||
|
||||
project_name: debros-network
|
||||
|
||||
@ -7,7 +8,7 @@ env:
|
||||
- GO111MODULE=on
|
||||
|
||||
builds:
|
||||
# network-cli binary
|
||||
# network-cli binary - only build the CLI
|
||||
- id: network-cli
|
||||
main: ./cmd/cli
|
||||
binary: network-cli
|
||||
@ -23,57 +24,9 @@ builds:
|
||||
- -X main.commit={{.ShortCommit}}
|
||||
- -X main.date={{.Date}}
|
||||
mod_timestamp: '{{ .CommitTimestamp }}'
|
||||
|
||||
# node binary
|
||||
- id: node
|
||||
main: ./cmd/node
|
||||
binary: node
|
||||
goos:
|
||||
- linux
|
||||
goarch:
|
||||
- amd64
|
||||
- arm64
|
||||
ldflags:
|
||||
- -s -w
|
||||
- -X main.version={{.Version}}
|
||||
- -X main.commit={{.ShortCommit}}
|
||||
- -X main.date={{.Date}}
|
||||
mod_timestamp: '{{ .CommitTimestamp }}'
|
||||
|
||||
# gateway binary
|
||||
- id: gateway
|
||||
main: ./cmd/gateway
|
||||
binary: gateway
|
||||
goos:
|
||||
- linux
|
||||
goarch:
|
||||
- amd64
|
||||
- arm64
|
||||
ldflags:
|
||||
- -s -w
|
||||
- -X main.version={{.Version}}
|
||||
- -X main.commit={{.ShortCommit}}
|
||||
- -X main.date={{.Date}}
|
||||
mod_timestamp: '{{ .CommitTimestamp }}'
|
||||
|
||||
# identity binary
|
||||
- id: identity
|
||||
main: ./cmd/identity
|
||||
binary: identity
|
||||
goos:
|
||||
- linux
|
||||
goarch:
|
||||
- amd64
|
||||
- arm64
|
||||
ldflags:
|
||||
- -s -w
|
||||
- -X main.version={{.Version}}
|
||||
- -X main.commit={{.ShortCommit}}
|
||||
- -X main.date={{.Date}}
|
||||
mod_timestamp: '{{ .CommitTimestamp }}'
|
||||
|
||||
archives:
|
||||
# Tar.gz archives for each binary
|
||||
# Tar.gz archives for network-cli
|
||||
- id: binaries
|
||||
format: tar.gz
|
||||
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
|
||||
|
||||
@ -10,11 +10,16 @@ The format is based on [Keep a Changelog][keepachangelog] and adheres to [Semant
|
||||
|
||||
### Changed
|
||||
|
||||
- **GoReleaser**: Updated to build only `network-cli` binary (v0.52.2+)
|
||||
- Other binaries (node, gateway, identity) now installed via `network-cli setup`
|
||||
- Cleaner, smaller release packages
|
||||
- Resolves archive mismatch errors
|
||||
- **GitHub Actions**: Updated artifact actions from v3 to v4 (deprecated versions)
|
||||
|
||||
### Deprecated
|
||||
|
||||
### Fixed
|
||||
|
||||
|
||||
- Fixed install script to be more clear and bug fixing
|
||||
|
||||
## [0.52.1] - 2025-10-26
|
||||
|
||||
2
Makefile
2
Makefile
@ -21,7 +21,7 @@ test-e2e:
|
||||
|
||||
.PHONY: build clean test run-node run-node2 run-node3 run-example deps tidy fmt vet lint clear-ports
|
||||
|
||||
VERSION := 0.52.1-beta
|
||||
VERSION := 0.52.3-beta
|
||||
COMMIT ?= $(shell git rev-parse --short HEAD 2>/dev/null || echo unknown)
|
||||
DATE ?= $(shell date -u +%Y-%m-%dT%H:%M:%SZ)
|
||||
LDFLAGS := -X 'main.version=$(VERSION)' -X 'main.commit=$(COMMIT)' -X 'main.date=$(DATE)'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user