Skip to content

Commit

Permalink
fix: goreleaser file
Browse files Browse the repository at this point in the history
  • Loading branch information
prnk28 committed Oct 30, 2023
1 parent d6cf2f0 commit d1e96ee
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 143 deletions.
45 changes: 5 additions & 40 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,6 @@ env:
builds:
# Build - Linux (amd64)
- id: sonrd-linux-amd64
env:
- CC=x86_64-linux-gnu-gcc
hooks:
pre:
- wget {{ .Env.WASMVM_URL }}/v1.3.0/libwasmvm_muslc.x86_64.a -O /usr/lib/x86_64-linux-gnu/libwasmvm_muslc.a
main: ./cmd/sonrd
binary: sonrd
goos:
Expand All @@ -27,22 +22,13 @@ builds:
- -X github.com/cosmos/cosmos-sdk/version.AppName=sonrd
- -X github.com/cosmos/cosmos-sdk/version.Version={{ .Version }}
- -X github.com/cosmos/cosmos-sdk/version.Commit={{ .Commit }}
- -X github.com/cosmos/cosmos-sdk/version.BuildTags=netgo,muslc,osusergo
- -X github.com/cosmos/cosmos-sdk/version.BuildTags=netgo
- -w -s
- -linkmode=external
- -extldflags '-Wl,-z,muldefs -static -lm'
tags:
- netgo
- muslc
- osusergo

# Build - Linux (arm64)
- id: sonrd-linux-arm64
env:
- CC=aarch64-linux-gnu-gcc
hooks:
pre:
- wget {{ .Env.WASMVM_URL }}/v1.3.0/libwasmvm_muslc.aarch64.a -O /opt/homebrew/lib/aarch64-linux-gnu/libwasmvm_muslc.a
main: ./cmd/sonrd
binary: sonrd
goos:
Expand All @@ -57,24 +43,15 @@ builds:
- -X github.com/cosmos/cosmos-sdk/version.AppName=sonrd
- -X github.com/cosmos/cosmos-sdk/version.Version={{ .Version }}
- -X github.com/cosmos/cosmos-sdk/version.Commit={{ .Commit }}
- -X github.com/cosmos/cosmos-sdk/version.BuildTags=netgo,muslc,osusergo
- -X github.com/cosmos/cosmos-sdk/version.BuildTags=netgo
- -w -s
- -linkmode=external
- -extldflags '-Wl,-z,muldefs -static -lm'
tags:
- netgo
- muslc
- ousergo

# Build - Darwin (amd64)
- id: sonrd-darwin-amd64
main: ./cmd/sonrd/main.go
binary: sonrd
hooks:
pre:
- wget {{ .Env.WASMVM_URL }}/v1.3.0/libwasmvmstatic_darwin.a -O /lib/libwasmvmstatic_darwin.a
env:
- CC=o64-clang
- CGO_LDFLAGS=-L/lib
goos:
- darwin
goarch:
Expand All @@ -87,24 +64,15 @@ builds:
- -X github.com/cosmos/cosmos-sdk/version.AppName=sonrd
- -X github.com/cosmos/cosmos-sdk/version.Version={{ .Version }}
- -X github.com/cosmos/cosmos-sdk/version.Commit={{ .Commit }}
- -X github.com/cosmos/cosmos-sdk/version.BuildTags=netgo,ledger,static_wasm
- -X github.com/cosmos/cosmos-sdk/version.BuildTags=netgo
- -w -s
- -linkmode=external
tags:
- netgo
- static_wasm
- ledger

# Build - Darwin (arm64)
- id: sonrd-darwin-arm64
main: ./cmd/sonrd/main.go
binary: sonrd
hooks:
pre:
- wget {{ .Env.WASMVM_URL }}/v1.3.0/libwasmvmstatic_darwin.a -O /lib/libwasmvmstatic_darwin.a
env:
- CC=oa64-clang
- CGO_LDFLAGS=-L/lib
goos:
- darwin
goarch:
Expand All @@ -117,13 +85,10 @@ builds:
- -X github.com/cosmos/cosmos-sdk/version.AppName=sonrd
- -X github.com/cosmos/cosmos-sdk/version.Version={{ .Version }}
- -X github.com/cosmos/cosmos-sdk/version.Commit={{ .Commit }}
- -X github.com/cosmos/cosmos-sdk/version.BuildTags=netgo,ledger,static_wasm
- -X github.com/cosmos/cosmos-sdk/version.BuildTags=netgo
- -w -s
- -linkmode=external
tags:
- netgo
- static_wasm
- ledger

# ! ||--------------------------------------------------------------------------------||
# ! || Tarball Archives ||
Expand Down
2 changes: 1 addition & 1 deletion cmd/sonrd/cmd/genaccounts.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package cmd
package sonrcmd

import (
"bufio"
Expand Down
2 changes: 1 addition & 1 deletion cmd/sonrd/cmd/geninit.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package cmd
package sonrcmd

import (
"bufio"
Expand Down
2 changes: 1 addition & 1 deletion cmd/sonrd/cmd/gentx.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package cmd
package sonrcmd

import (
"bufio"
Expand Down
89 changes: 0 additions & 89 deletions cmd/sonrd/cmd/launch.go

This file was deleted.

2 changes: 1 addition & 1 deletion cmd/sonrd/cmd/plugin.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package cmd
package sonrcmd

import (
"context"
Expand Down
2 changes: 1 addition & 1 deletion cmd/sonrd/cmd/plugin_default.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package cmd
package sonrcmd

import (
"fmt"
Expand Down
8 changes: 1 addition & 7 deletions cmd/sonrd/cmd/root.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package cmd
package sonrcmd

import (
"context"
Expand Down Expand Up @@ -145,12 +145,6 @@ func initRootCmd(
banktypes.GenesisBalancesIterator{},
app.DefaultNodeHome,
),
LaunchCmd(
app.ModuleBasics,
encodingConfig.TxConfig,
banktypes.GenesisBalancesIterator{},
app.DefaultNodeHome,
),
NewPlugin(),
genutilcli.ValidateGenesisCmd(app.ModuleBasics),
AddGenesisAccountCmd(app.DefaultNodeHome),
Expand Down
4 changes: 2 additions & 2 deletions cmd/sonrd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ import (
svrcmd "github.com/cosmos/cosmos-sdk/server/cmd"

"github.com/sonr-io/core/app"
"github.com/sonr-io/core/cmd/sonrd/cmd"
sonrcmd "github.com/sonr-io/core/cmd/sonrd/cmd"
)

func main() {

rootCmd, _ := cmd.NewRootCmd()
rootCmd, _ := sonrcmd.NewRootCmd()
if err := svrcmd.Execute(rootCmd, "SONR", app.DefaultNodeHome); err != nil {
switch e := err.(type) {
case server.ErrorCode:
Expand Down

0 comments on commit d1e96ee

Please sign in to comment.