Update module version to v3

This commit is contained in:
bytedream 2022-05-21 21:38:45 +02:00
parent b78d6a7871
commit eb2414d012
11 changed files with 18 additions and 18 deletions

View file

@ -6,7 +6,7 @@ DESTDIR=
PREFIX=/usr PREFIX=/usr
build: build:
go build -ldflags "-X 'github.com/ByteDream/crunchyroll-go/v2/cmd/crunchyroll-go/cmd.Version=$(VERSION)'" -o $(BINARY_NAME) cmd/crunchyroll-go/main.go go build -ldflags "-X 'github.com/ByteDream/crunchyroll-go/v3/cmd/crunchyroll-go/cmd.Version=$(VERSION)'" -o $(BINARY_NAME) cmd/crunchyroll-go/main.go
clean: clean:
rm -f $(BINARY_NAME) $(VERSION_BINARY_NAME)_* rm -f $(BINARY_NAME) $(VERSION_BINARY_NAME)_*
@ -24,8 +24,8 @@ uninstall:
rm -f $(DESTDIR)$(PREFIX)/share/licenses/crunchyroll-go/LICENSE rm -f $(DESTDIR)$(PREFIX)/share/licenses/crunchyroll-go/LICENSE
release: release:
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags "-X 'github.com/ByteDream/crunchyroll-go/v2/cmd/crunchyroll-go/cmd.Version=$(VERSION)'" -o $(VERSION_BINARY_NAME)_linux cmd/crunchyroll-go/main.go CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags "-X 'github.com/ByteDream/crunchyroll-go/v3/cmd/crunchyroll-go/cmd.Version=$(VERSION)'" -o $(VERSION_BINARY_NAME)_linux cmd/crunchyroll-go/main.go
CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -ldflags "-X 'github.com/ByteDream/crunchyroll-go/v2/cmd/crunchyroll-go/cmd.Version=$(VERSION)'" -o $(VERSION_BINARY_NAME)_windows.exe cmd/crunchyroll-go/main.go CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -ldflags "-X 'github.com/ByteDream/crunchyroll-go/v3/cmd/crunchyroll-go/cmd.Version=$(VERSION)'" -o $(VERSION_BINARY_NAME)_windows.exe cmd/crunchyroll-go/main.go
CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -ldflags "-X 'github.com/ByteDream/crunchyroll-go/v2/cmd/crunchyroll-go/cmd.Version=$(VERSION)'" -o $(VERSION_BINARY_NAME)_darwin cmd/crunchyroll-go/main.go CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -ldflags "-X 'github.com/ByteDream/crunchyroll-go/v3/cmd/crunchyroll-go/cmd.Version=$(VERSION)'" -o $(VERSION_BINARY_NAME)_darwin cmd/crunchyroll-go/main.go
strip $(VERSION_BINARY_NAME)_linux strip $(VERSION_BINARY_NAME)_linux

View file

@ -205,10 +205,10 @@ These flags you can use across every sub-command:
Download the library via `go get` Download the library via `go get`
```shell ```shell
$ go get github.com/ByteDream/crunchyroll-go/v2 $ go get github.com/ByteDream/crunchyroll-go/v3
``` ```
The documentation is available on [pkg.go.dev](https://pkg.go.dev/github.com/ByteDream/crunchyroll-go/v2). The documentation is available on [pkg.go.dev](https://pkg.go.dev/github.com/ByteDream/crunchyroll-go/v3).
Examples how to use the library and some features of it are described in the [wiki](https://github.com/ByteDream/crunchyroll-go/wiki/Library). Examples how to use the library and some features of it are described in the [wiki](https://github.com/ByteDream/crunchyroll-go/wiki/Library).

View file

@ -8,8 +8,8 @@ import (
"compress/gzip" "compress/gzip"
"context" "context"
"fmt" "fmt"
"github.com/ByteDream/crunchyroll-go/v2" "github.com/ByteDream/crunchyroll-go/v3"
"github.com/ByteDream/crunchyroll-go/v2/utils" "github.com/ByteDream/crunchyroll-go/v3/utils"
"github.com/grafov/m3u8" "github.com/grafov/m3u8"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"io" "io"

View file

@ -3,8 +3,8 @@ package cmd
import ( import (
"context" "context"
"fmt" "fmt"
"github.com/ByteDream/crunchyroll-go/v2" "github.com/ByteDream/crunchyroll-go/v3"
"github.com/ByteDream/crunchyroll-go/v2/utils" "github.com/ByteDream/crunchyroll-go/v3/utils"
"github.com/grafov/m3u8" "github.com/grafov/m3u8"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"math" "math"

View file

@ -2,7 +2,7 @@ package cmd
import ( import (
"fmt" "fmt"
"github.com/ByteDream/crunchyroll-go/v2" "github.com/ByteDream/crunchyroll-go/v3"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"os" "os"
"path/filepath" "path/filepath"

View file

@ -3,7 +3,7 @@ package cmd
import ( import (
"context" "context"
"fmt" "fmt"
"github.com/ByteDream/crunchyroll-go/v2" "github.com/ByteDream/crunchyroll-go/v3"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"net/http" "net/http"
"os" "os"

View file

@ -2,8 +2,8 @@ package cmd
import ( import (
"fmt" "fmt"
"github.com/ByteDream/crunchyroll-go/v2" "github.com/ByteDream/crunchyroll-go/v3"
"github.com/ByteDream/crunchyroll-go/v2/utils" "github.com/ByteDream/crunchyroll-go/v3/utils"
"net/http" "net/http"
"net/url" "net/url"
"os" "os"

View file

@ -1,7 +1,7 @@
package main package main
import ( import (
"github.com/ByteDream/crunchyroll-go/v2/cmd/crunchyroll-go/cmd" "github.com/ByteDream/crunchyroll-go/v3/cmd/crunchyroll-go/cmd"
) )
func main() { func main() {

2
go.mod
View file

@ -1,4 +1,4 @@
module github.com/ByteDream/crunchyroll-go/v2 module github.com/ByteDream/crunchyroll-go/v3
go 1.18 go 1.18

View file

@ -1,7 +1,7 @@
package utils package utils
import ( import (
"github.com/ByteDream/crunchyroll-go/v2" "github.com/ByteDream/crunchyroll-go/v3"
) )
// AllLocales is an array of all available locales. // AllLocales is an array of all available locales.

View file

@ -1,7 +1,7 @@
package utils package utils
import ( import (
"github.com/ByteDream/crunchyroll-go/v2" "github.com/ByteDream/crunchyroll-go/v3"
"sort" "sort"
"strconv" "strconv"
"strings" "strings"