Skip to content

Commit

Permalink
Add goreleaser and fix naming error
Browse files Browse the repository at this point in the history
  • Loading branch information
YakirOren committed Jan 8, 2022
1 parent 87a174c commit 5c150da
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -104,3 +104,5 @@ fabric.properties
.idea/caches/build_file_checksums.ser

# End of https://www.toptal.com/developers/gitignore/api/go,goland

dist/
32 changes: 32 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
before:
hooks:
- go mod tidy
builds:
- main: ./cmd/sratim
env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
archives:
- replacements:
darwin: Darwin
linux: Linux
windows: Windows
386: i386
amd64: x86_64
brews:
- tap:
owner: YakirOren
name: sratim
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ incpatch .Version }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
2 changes: 1 addition & 1 deletion cmd/sratim/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func main() {
log.Fatal(err)
}

engMovieName := strings.Split(selectedMovie, "/")[1]
engMovieName := strings.TrimSpace(strings.Split(selectedMovie, "/")[1])

err = client.DownloadMovie(values[selectedMovie], engMovieName)
if err != nil {
Expand Down

0 comments on commit 5c150da

Please sign in to comment.