Skip to content

Commit 268ed07

Browse files
committed
configure goreleaser
1 parent 198a1cb commit 268ed07

File tree

3 files changed

+60
-4
lines changed

3 files changed

+60
-4
lines changed

.goreleaser.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# Build customization
2+
builds:
3+
-
4+
main: ./cmd/dcsub2srt/main.go
5+
binary: dcsub2srt
6+
goos:
7+
- windows
8+
- darwin
9+
goarch:
10+
- 386
11+
- amd64
12+
ignore:
13+
- goos: darwin
14+
goarch: 386
15+
-
16+
main: ./cmd/ssa2srt/main.go
17+
binary: ssa2srt
18+
goos:
19+
- windows
20+
- darwin
21+
goarch:
22+
- 386
23+
- amd64
24+
ignore:
25+
- goos: darwin
26+
goarch: 386
27+
-
28+
main: ./cmd/subber/main.go
29+
binary: subber
30+
goos:
31+
- windows
32+
- darwin
33+
goarch:
34+
- 386
35+
- amd64
36+
ignore:
37+
- goos: darwin
38+
goarch: 386
39+
# Archive customization
40+
archive:
41+
format: tar.gz
42+
format_overrides:
43+
- goos: windows
44+
format: zip
45+
replacements:
46+
amd64: 64-bit
47+
386: 32-bit
48+
darwin: macOS
49+
files:
50+
- README.md
51+
- LICENSE

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2015-2017 Martin Lindhe
3+
Copyright (c) 2015-2018 Martin Lindhe
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,20 @@
33
[![Travis-CI](https://api.travis-ci.org/martinlindhe/subtitles.svg)](https://travis-ci.org/martinlindhe/subtitles)
44
[![GoDoc](https://godoc.org/github.com/martinlindhe/subtitles?status.svg)](https://godoc.org/github.com/martinlindhe/subtitles)
55

6-
Subtitles is a go library for handling .srt, .vtt and .ssa subtitles
7-
6+
This is a go library and command-line tools for handling .srt, .vtt and .ssa subtitles
87

98

109
# Installation
1110

11+
Windows and macOS binaries are available under [Releases](https://github.com/martinlindhe/subtitles/releases)
12+
13+
Or install them from source:
14+
1215
```
1316
go get -u github.com/martinlindhe/subtitles/...
1417
```
1518

19+
1620
# Example - convert srt to vtt
1721

1822
```go
@@ -38,6 +42,7 @@ res, _ := subtitles.NewFromSRT(in)
3842
fmt.Println(res.AsVTT())
3943
```
4044

45+
4146
# Example - download subtitle from thesubdb.com
4247

4348
```go
@@ -50,7 +55,7 @@ text, err := finder.TheSubDb()
5055
```
5156

5257

53-
# See also
58+
# Sub-projects
5459

5560
- [subber](https://github.com/martinlindhe/subtitles/subber) command line tool for subtitles
5661
- [ssa2srt](https://github.com/martinlindhe/subtitles/ssa2srt) for converting .ssa to .srt

0 commit comments

Comments
 (0)