From 29f7436406a9fd27c8e8d197def859ab7c7519ea Mon Sep 17 00:00:00 2001 From: vuong <56973102+vuong177@users.noreply.github.com> Date: Thu, 10 Oct 2024 23:57:11 +0700 Subject: [PATCH 1/4] Update .goreleaser.yml --- .goreleaser.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index 19e04f2f..77fd9f59 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -17,7 +17,7 @@ builds: flags: - -tags=cgo ldflags: - - -s -w -X github.com/cosmos/cosmos-sdk/version.Name=dymension -X github.com/cosmos/cosmos-sdk/version.AppName=onomyd -X github.com/cosmos/cosmos-sdk/version.Version={{.Version}} -X github.com/cosmos/cosmos-sdk/version.Commit={{.Commit}} + - -s -w -X github.com/cosmos/cosmos-sdk/version.Name=onomy -X github.com/cosmos/cosmos-sdk/version.AppName=onomyd -X github.com/cosmos/cosmos-sdk/version.Version={{.Version}} -X github.com/cosmos/cosmos-sdk/version.Commit={{.Commit}} - id: "onomyd-darwin-arm64" main: ./cmd/onomyd binary: onomyd @@ -32,7 +32,7 @@ builds: flags: - -tags=cgo ldflags: - - -s -w -X github.com/cosmos/cosmos-sdk/version.Name=dymension -X github.com/cosmos/cosmos-sdk/version.AppName=onomyd -X github.com/cosmos/cosmos-sdk/version.Version={{.Version}} -X github.com/cosmos/cosmos-sdk/version.Commit={{.Commit}} + - -s -w -X github.com/cosmos/cosmos-sdk/version.Name=onomy -X github.com/cosmos/cosmos-sdk/version.AppName=onomyd -X github.com/cosmos/cosmos-sdk/version.Version={{.Version}} -X github.com/cosmos/cosmos-sdk/version.Commit={{.Commit}} - id: "onomyd-linux" main: ./cmd/onomyd binary: onomyd @@ -101,4 +101,4 @@ changelog: - '^docs:' - '^test:' snapshot: - name_template: "{{ .Tag }}-next" \ No newline at end of file + name_template: "{{ .Tag }}-next" From 5f8d0e5a16186f8a022a99c592a0d201ce869540 Mon Sep 17 00:00:00 2001 From: anhductn2001 Date: Fri, 11 Oct 2024 11:26:45 +0700 Subject: [PATCH 2/4] release binary --- .goreleaser.yml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index 77fd9f59..ed8f3fde 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -47,7 +47,7 @@ builds: flags: - -tags=cgo ldflags: - - -s -w -X github.com/cosmos/cosmos-sdk/version.Name=dymension -X github.com/cosmos/cosmos-sdk/version.AppName=onomyd -X github.com/cosmos/cosmos-sdk/version.Version={{.Version}} -X github.com/cosmos/cosmos-sdk/version.Commit={{.Commit}} + - -s -w -X github.com/cosmos/cosmos-sdk/version.Name=onomy -X github.com/cosmos/cosmos-sdk/version.AppName=onomyd -X github.com/cosmos/cosmos-sdk/version.Version={{.Version}} -X github.com/cosmos/cosmos-sdk/version.Commit={{.Commit}} - id: "onomyd-linux-arm64" main: ./cmd/onomyd binary: onomyd @@ -62,7 +62,7 @@ builds: flags: - -tags=cgo ldflags: - - -s -w -X github.com/cosmos/cosmos-sdk/version.Name=dymension -X github.com/cosmos/cosmos-sdk/version.AppName=onomyd -X github.com/cosmos/cosmos-sdk/version.Version={{.Version}} -X github.com/cosmos/cosmos-sdk/version.Commit={{.Commit}} + - -s -w -X github.com/cosmos/cosmos-sdk/version.Name=onomy -X github.com/cosmos/cosmos-sdk/version.AppName=onomyd -X github.com/cosmos/cosmos-sdk/version.Version={{.Version}} -X github.com/cosmos/cosmos-sdk/version.Commit={{.Commit}} - id: "onomyd-windows" main: ./cmd/onomyd binary: onomyd @@ -78,7 +78,7 @@ builds: - -tags=cgo - -buildmode=exe ldflags: - - -s -w -X github.com/cosmos/cosmos-sdk/version.Name=dymension -X github.com/cosmos/cosmos-sdk/version.AppName=onomyd -X github.com/cosmos/cosmos-sdk/version.Version={{.Version}} -X github.com/cosmos/cosmos-sdk/version.Commit={{.Commit}} + - -s -w -X github.com/cosmos/cosmos-sdk/version.Name=onomy -X github.com/cosmos/cosmos-sdk/version.AppName=onomyd -X github.com/cosmos/cosmos-sdk/version.Version={{.Version}} -X github.com/cosmos/cosmos-sdk/version.Commit={{.Commit}} archives: - name_template: '{{ .ProjectName }}_{{ .Version }}_{{- title .Os }}_{{ .Arch }}' @@ -91,6 +91,14 @@ archives: - onomyd-windows - onomyd-linux - onomyd-linux-arm64 + - id: binaries + builds: + - onomyd-linux-amd64 + - onomyd-linux-arm64 + name_template: '{{ .ProjectName }}_{{ .Version }}_{{- title .Os }}_{{ .Arch }}' + format: binary + files: + - none* checksum: name_template: 'checksums.txt' From 61739df889da95fd64ee09d7660a888efcb76b16 Mon Sep 17 00:00:00 2001 From: vuong177 Date: Fri, 11 Oct 2024 14:31:50 +0700 Subject: [PATCH 3/4] fix upgrade --- app/app.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/app/app.go b/app/app.go index 474b4da0..640b0288 100644 --- a/app/app.go +++ b/app/app.go @@ -478,10 +478,6 @@ func (app *OnomyApp) setupUpgradeHandlers() { storeUpgrades = &storetypes.StoreUpgrades{ Deleted: []string{"provider"}, } - case v2_0_0.Name: - storeUpgrades = &storetypes.StoreUpgrades{ - Added: []string{"consensus", "crisis", "dao"}, - } default: // no store upgrades. } From 4f88340f8825b7cac92bdd3fb3e4a4af62ce3eab Mon Sep 17 00:00:00 2001 From: anhductn2001 Date: Fri, 11 Oct 2024 15:13:47 +0700 Subject: [PATCH 4/4] fix release binary --- .goreleaser.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index ed8f3fde..5e12f892 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -93,7 +93,7 @@ archives: - onomyd-linux-arm64 - id: binaries builds: - - onomyd-linux-amd64 + - onomyd-linux - onomyd-linux-arm64 name_template: '{{ .ProjectName }}_{{ .Version }}_{{- title .Os }}_{{ .Arch }}' format: binary