forked from iotaledger/goshimmer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use GoReleaser to build cli-wallet (iotaledger#674)
* build cli-wallet with goreleaser * remove cli-wallet build script * use plain goreleaser as cgo is not required
- Loading branch information
Showing
3 changed files
with
107 additions
and
117 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,99 +1,98 @@ | ||
# Documentation at http://goreleaser.com | ||
|
||
# Project name | ||
project_name: GoShimmer | ||
|
||
# Environment variables | ||
env: | ||
- GO111MODULE=on | ||
|
||
# Builds | ||
builds: | ||
# macOS AMD64 | ||
- id: goshimmer-darwin-amd64 | ||
binary: goshimmer | ||
env: | ||
- CGO_ENABLED=0 | ||
ldflags: | ||
- -s -w -X github.com/iotaledger/goshimmer/plugins/cli.AppVersion={{.Version}} | ||
main: main.go | ||
goos: | ||
- darwin | ||
goarch: | ||
- amd64 | ||
# Linux AMD64 | ||
- id: goshimmer-linux-amd64 | ||
binary: goshimmer | ||
env: | ||
- CGO_ENABLED=1 | ||
ldflags: | ||
- -s -w -X github.com/iotaledger/goshimmer/plugins/cli.AppVersion={{.Version}} | ||
flags: | ||
- -tags=pow_avx | ||
main: main.go | ||
goos: | ||
- linux | ||
goarch: | ||
- amd64 | ||
# Windows AMD64 | ||
- id: goshimmer-windows-amd64 | ||
binary: goshimmer | ||
env: | ||
- CGO_ENABLED=1 | ||
- CC=x86_64-w64-mingw32-gcc | ||
- CXX=x86_64-w64-mingw32-g++ | ||
ldflags: | ||
- -s -w -X github.com/iotaledger/goshimmer/plugins/cli.AppVersion={{.Version}} | ||
flags: | ||
- -tags=pow_avx | ||
main: main.go | ||
goos: | ||
- windows | ||
goarch: | ||
- amd64 | ||
|
||
# Archives | ||
archives: | ||
- format: tar.gz | ||
wrap_in_directory: true | ||
format_overrides: | ||
- goos: windows | ||
format: zip | ||
name_template: "{{.ProjectName}}-{{.Version}}_{{.Os}}_{{.Arch}}" | ||
replacements: | ||
amd64: x86_64 | ||
386: 32bit | ||
arm: ARM | ||
arm64: ARM64 | ||
darwin: macOS | ||
linux: Linux | ||
windows: Windows | ||
openbsd: OpenBSD | ||
netbsd: NetBSD | ||
freebsd: FreeBSD | ||
dragonfly: DragonFlyBSD | ||
files: | ||
- README.md | ||
- LICENSE | ||
- config.json | ||
- snapshot.bin | ||
|
||
# Checksum | ||
checksum: | ||
name_template: "checksums.txt" | ||
|
||
# Snapshot | ||
snapshot: | ||
name_template: "{{ .Tag }}" | ||
|
||
# Changelog | ||
changelog: | ||
skip: true | ||
|
||
# Release | ||
release: | ||
prerelease: auto | ||
name_template: "{{.ProjectName}}-{{.Version}}" | ||
github: | ||
owner: iotaledger | ||
name: goshimmer | ||
# Documentation at http://goreleaser.com | ||
|
||
# Project name | ||
project_name: GoShimmer | ||
|
||
# Environment variables | ||
env: | ||
- GO111MODULE=on | ||
|
||
# Builds | ||
builds: | ||
# GoShimmer AMD64 all OS | ||
- id: goshimmer | ||
binary: goshimmer | ||
env: | ||
- CGO_ENABLED=0 | ||
ldflags: | ||
- -s -w -X github.com/iotaledger/goshimmer/plugins/banner.AppVersion={{.Version}} | ||
goos: | ||
- linux | ||
- darwin | ||
- windows | ||
goarch: | ||
- amd64 | ||
|
||
# cli-wallet AMD64 all OS | ||
- id: cli-wallet | ||
dir: ./tools/cli-wallet | ||
binary: cli-wallet | ||
env: | ||
- CGO_ENABLED=0 | ||
goos: | ||
- linux | ||
- darwin | ||
- windows | ||
goarch: | ||
- amd64 | ||
|
||
# Archives | ||
archives: | ||
# GoShimmer with config and snapshot | ||
- id: goshimmer | ||
builds: | ||
- goshimmer | ||
name_template: "goshimmer-{{.Version}}_{{.Os}}_{{.Arch}}" | ||
replacements: | ||
amd64: x86_64 | ||
arm: ARM | ||
arm64: ARM64 | ||
darwin: macOS | ||
linux: Linux | ||
windows: Windows | ||
format_overrides: | ||
- goos: windows | ||
format: zip | ||
files: | ||
- README.md | ||
- LICENSE | ||
- config.json | ||
- snapshot.bin | ||
|
||
# cli-wallet | ||
- id: cli-wallet | ||
builds: | ||
- cli-wallet | ||
name_template: "cli-wallet-{{.Version}}_{{.Os}}_{{.Arch}}" | ||
replacements: | ||
amd64: x86_64 | ||
arm: ARM | ||
arm64: ARM64 | ||
darwin: macOS | ||
linux: Linux | ||
windows: Windows | ||
format_overrides: | ||
- goos: windows | ||
format: zip | ||
files: | ||
- LICENSE | ||
|
||
# Checksum | ||
checksum: | ||
name_template: "checksums.txt" | ||
|
||
# Snapshot | ||
snapshot: | ||
name_template: "{{ .Tag }}" | ||
|
||
# Changelog | ||
changelog: | ||
skip: true | ||
|
||
# Release | ||
release: | ||
prerelease: auto | ||
name_template: "{{.ProjectName}}-{{.Version}}" | ||
github: | ||
owner: iotaledger | ||
name: goshimmer |
This file was deleted.
Oops, something went wrong.