mirror of
https://github.com/celogeek/go-comic-converter.git
synced 2025-05-24 15:52:38 +02:00
update to v3
This commit is contained in:
parent
45677c6b7b
commit
36512cdb98
16
README.md
16
README.md
@ -38,19 +38,19 @@ First ensure to have a working version of GO: [Installation](https://go.dev/doc/
|
|||||||
|
|
||||||
Then install the last version of the tool:
|
Then install the last version of the tool:
|
||||||
```
|
```
|
||||||
$ go install github.com/celogeek/go-comic-converter/v2
|
$ go install github.com/celogeek/go-comic-converter/v3
|
||||||
```
|
```
|
||||||
|
|
||||||
To force install a specific version:
|
To force install a specific version:
|
||||||
```
|
```
|
||||||
# specific version
|
# specific version
|
||||||
$ go install github.com/celogeek/go-comic-converter/v2@v2.6.9
|
$ go install github.com/celogeek/go-comic-converter/v3@v3.0.0
|
||||||
|
|
||||||
# main branch
|
# main branch
|
||||||
$ go install github.com/celogeek/go-comic-converter/v2@main
|
$ go install github.com/celogeek/go-comic-converter/v3@main
|
||||||
|
|
||||||
# specific commit
|
# specific commit
|
||||||
$ go install github.com/celogeek/go-comic-converter/v2@141aeae
|
$ go install github.com/celogeek/go-comic-converter/v3@COMMIT_HASH
|
||||||
```
|
```
|
||||||
|
|
||||||
Add GOPATH to your PATH
|
Add GOPATH to your PATH
|
||||||
@ -64,13 +64,13 @@ You can check if a new version is available with:
|
|||||||
```
|
```
|
||||||
$ go-comic-converter -version
|
$ go-comic-converter -version
|
||||||
go-comic-converter
|
go-comic-converter
|
||||||
Path : github.com/celogeek/go-comic-converter/v2
|
Path : github.com/celogeek/go-comic-converter/v3
|
||||||
Sum : h1:tUFF2m/fGlOJOwC0/PlTopMfcBMprKvgr6TiQHQxEeo=
|
Sum : h1:tUFF2m/fGlOJOwC0/PlTopMfcBMprKvgr6TiQHQxEeo=
|
||||||
Version : v2.6.9
|
Version : v3.0.0
|
||||||
Available Version: v2.6.9
|
Available Version: v3.0.0
|
||||||
|
|
||||||
To install the latest version:
|
To install the latest version:
|
||||||
$ go install github.com/celogeek/go-comic-converter/v2@v2.6.9
|
$ go install github.com/celogeek/go-comic-converter/v3@v3.0.0
|
||||||
```
|
```
|
||||||
|
|
||||||
# Supported image files
|
# Supported image files
|
||||||
|
2
go.mod
2
go.mod
@ -1,4 +1,4 @@
|
|||||||
module github.com/celogeek/go-comic-converter/v2
|
module github.com/celogeek/go-comic-converter/v3
|
||||||
|
|
||||||
go 1.23
|
go 1.23
|
||||||
|
|
||||||
|
@ -18,7 +18,7 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/celogeek/go-comic-converter/v2/internal/pkg/utils"
|
"github.com/celogeek/go-comic-converter/v3/internal/pkg/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Converter struct {
|
type Converter struct {
|
||||||
|
@ -9,8 +9,8 @@ import (
|
|||||||
|
|
||||||
"gopkg.in/yaml.v3"
|
"gopkg.in/yaml.v3"
|
||||||
|
|
||||||
"github.com/celogeek/go-comic-converter/v2/internal/pkg/epuboptions"
|
"github.com/celogeek/go-comic-converter/v3/internal/pkg/epuboptions"
|
||||||
"github.com/celogeek/go-comic-converter/v2/internal/pkg/utils"
|
"github.com/celogeek/go-comic-converter/v3/internal/pkg/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Options struct {
|
type Options struct {
|
||||||
|
@ -5,7 +5,7 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/celogeek/go-comic-converter/v2/internal/pkg/utils"
|
"github.com/celogeek/go-comic-converter/v3/internal/pkg/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Profile struct {
|
type Profile struct {
|
||||||
|
@ -14,14 +14,14 @@ import (
|
|||||||
|
|
||||||
"github.com/gofrs/uuid"
|
"github.com/gofrs/uuid"
|
||||||
|
|
||||||
"github.com/celogeek/go-comic-converter/v2/internal/pkg/epubimage"
|
"github.com/celogeek/go-comic-converter/v3/internal/pkg/epubimage"
|
||||||
"github.com/celogeek/go-comic-converter/v2/internal/pkg/epubimageprocessor"
|
"github.com/celogeek/go-comic-converter/v3/internal/pkg/epubimageprocessor"
|
||||||
"github.com/celogeek/go-comic-converter/v2/internal/pkg/epuboptions"
|
"github.com/celogeek/go-comic-converter/v3/internal/pkg/epuboptions"
|
||||||
"github.com/celogeek/go-comic-converter/v2/internal/pkg/epubprogress"
|
"github.com/celogeek/go-comic-converter/v3/internal/pkg/epubprogress"
|
||||||
"github.com/celogeek/go-comic-converter/v2/internal/pkg/epubtemplates"
|
"github.com/celogeek/go-comic-converter/v3/internal/pkg/epubtemplates"
|
||||||
"github.com/celogeek/go-comic-converter/v2/internal/pkg/epubtree"
|
"github.com/celogeek/go-comic-converter/v3/internal/pkg/epubtree"
|
||||||
"github.com/celogeek/go-comic-converter/v2/internal/pkg/epubzip"
|
"github.com/celogeek/go-comic-converter/v3/internal/pkg/epubzip"
|
||||||
"github.com/celogeek/go-comic-converter/v2/internal/pkg/utils"
|
"github.com/celogeek/go-comic-converter/v3/internal/pkg/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
type EPUB struct {
|
type EPUB struct {
|
||||||
|
@ -5,7 +5,7 @@ import (
|
|||||||
"image"
|
"image"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/celogeek/go-comic-converter/v2/internal/pkg/utils"
|
"github.com/celogeek/go-comic-converter/v3/internal/pkg/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
type EPUBImage struct {
|
type EPUBImage struct {
|
||||||
|
@ -27,9 +27,9 @@ import (
|
|||||||
pdfimage "github.com/raff/pdfreader/image"
|
pdfimage "github.com/raff/pdfreader/image"
|
||||||
"github.com/raff/pdfreader/pdfread"
|
"github.com/raff/pdfreader/pdfread"
|
||||||
|
|
||||||
"github.com/celogeek/go-comic-converter/v2/internal/pkg/sortpath"
|
"github.com/celogeek/go-comic-converter/v3/internal/pkg/sortpath"
|
||||||
|
|
||||||
"github.com/celogeek/go-comic-converter/v2/internal/pkg/utils"
|
"github.com/celogeek/go-comic-converter/v3/internal/pkg/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
type task struct {
|
type task struct {
|
||||||
|
@ -9,12 +9,12 @@ import (
|
|||||||
|
|
||||||
"github.com/disintegration/gift"
|
"github.com/disintegration/gift"
|
||||||
|
|
||||||
"github.com/celogeek/go-comic-converter/v2/internal/pkg/epubimage"
|
"github.com/celogeek/go-comic-converter/v3/internal/pkg/epubimage"
|
||||||
"github.com/celogeek/go-comic-converter/v2/internal/pkg/epubimagefilters"
|
"github.com/celogeek/go-comic-converter/v3/internal/pkg/epubimagefilters"
|
||||||
"github.com/celogeek/go-comic-converter/v2/internal/pkg/epuboptions"
|
"github.com/celogeek/go-comic-converter/v3/internal/pkg/epuboptions"
|
||||||
"github.com/celogeek/go-comic-converter/v2/internal/pkg/epubprogress"
|
"github.com/celogeek/go-comic-converter/v3/internal/pkg/epubprogress"
|
||||||
"github.com/celogeek/go-comic-converter/v2/internal/pkg/epubzip"
|
"github.com/celogeek/go-comic-converter/v3/internal/pkg/epubzip"
|
||||||
"github.com/celogeek/go-comic-converter/v2/internal/pkg/utils"
|
"github.com/celogeek/go-comic-converter/v3/internal/pkg/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
type EPUBImageProcessor struct {
|
type EPUBImageProcessor struct {
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
package epuboptions
|
package epuboptions
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/celogeek/go-comic-converter/v2/internal/pkg/utils"
|
"github.com/celogeek/go-comic-converter/v3/internal/pkg/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
type View struct {
|
type View struct {
|
||||||
|
@ -9,7 +9,7 @@ import (
|
|||||||
|
|
||||||
"github.com/schollz/progressbar/v3"
|
"github.com/schollz/progressbar/v3"
|
||||||
|
|
||||||
"github.com/celogeek/go-comic-converter/v2/internal/pkg/utils"
|
"github.com/celogeek/go-comic-converter/v3/internal/pkg/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Options struct {
|
type Options struct {
|
||||||
|
@ -3,9 +3,9 @@ package epubtemplates
|
|||||||
import (
|
import (
|
||||||
"github.com/beevik/etree"
|
"github.com/beevik/etree"
|
||||||
|
|
||||||
"github.com/celogeek/go-comic-converter/v2/internal/pkg/epubimage"
|
"github.com/celogeek/go-comic-converter/v3/internal/pkg/epubimage"
|
||||||
"github.com/celogeek/go-comic-converter/v2/internal/pkg/epuboptions"
|
"github.com/celogeek/go-comic-converter/v3/internal/pkg/epuboptions"
|
||||||
"github.com/celogeek/go-comic-converter/v2/internal/pkg/utils"
|
"github.com/celogeek/go-comic-converter/v3/internal/pkg/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Content struct {
|
type Content struct {
|
||||||
|
@ -6,7 +6,7 @@ import (
|
|||||||
|
|
||||||
"github.com/beevik/etree"
|
"github.com/beevik/etree"
|
||||||
|
|
||||||
"github.com/celogeek/go-comic-converter/v2/internal/pkg/epubimage"
|
"github.com/celogeek/go-comic-converter/v3/internal/pkg/epubimage"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Toc create toc
|
// Toc create toc
|
||||||
|
6
main.go
6
main.go
@ -14,9 +14,9 @@ import (
|
|||||||
|
|
||||||
"github.com/tcnksm/go-latest"
|
"github.com/tcnksm/go-latest"
|
||||||
|
|
||||||
"github.com/celogeek/go-comic-converter/v2/internal/pkg/converter"
|
"github.com/celogeek/go-comic-converter/v3/internal/pkg/converter"
|
||||||
"github.com/celogeek/go-comic-converter/v2/internal/pkg/epub"
|
"github.com/celogeek/go-comic-converter/v3/internal/pkg/epub"
|
||||||
"github.com/celogeek/go-comic-converter/v2/internal/pkg/utils"
|
"github.com/celogeek/go-comic-converter/v3/internal/pkg/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user