diff --git a/CHANGELOG b/CHANGELOG new file mode 100644 index 0000000..d66f490 --- /dev/null +++ b/CHANGELOG @@ -0,0 +1,2 @@ +1.0.0: +- Initial release diff --git a/README.md b/README.md index 1802bfc..3c19aa3 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,10 @@ conversion tool and daemon ## Download +[**Download gmitohtml**](https://gmitohtml.rocketnine.space/download/?sort=name&order=desc) + +## Compile + gmitohtml is written in [Go](https://golang.org). Run the following command to download and build gmitohtml from source. diff --git a/goreleaser.yml b/goreleaser.yml new file mode 100644 index 0000000..a74a590 --- /dev/null +++ b/goreleaser.yml @@ -0,0 +1,27 @@ +project_name: gmitohtml + +builds: + - + id: gmitohtml + ldflags: + - -s -w + goos: + - linux + - windows + goarch: + - 386 + - amd64 +archives: + - + id: gmitohtml + builds: + - gmitohtml + format_overrides: + - goos: windows + format: zip + files: + - ./*.md + - CHANGELOG + - LICENSE +checksum: + name_template: 'checksums.txt' diff --git a/main.go b/main.go index 71e647e..f5eb093 100644 --- a/main.go +++ b/main.go @@ -1,10 +1,6 @@ package main import ( - "path" - - "gitlab.com/tslocum/gmitohtml/pkg/gmitohtml" - "flag" "fmt" "io/ioutil" @@ -12,7 +8,10 @@ import ( "net/url" "os" "os/exec" + "path" "runtime" + + "gitlab.com/tslocum/gmitohtml/pkg/gmitohtml" ) func openBrowser(url string) {