From c11fbf88dbab20bbe35db2dff53b5e306a6e1188 Mon Sep 17 00:00:00 2001 From: TaurusXin Date: Mon, 25 Nov 2024 13:59:13 +0800 Subject: [PATCH] chore: modified go mod name --- README.md | 4 ++-- build.sh | 10 +++++----- go.mod | 2 +- main.go | 4 ++-- ncmcrypt/ncmcrypt.go | 2 +- 5 files changed, 11 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 01fd2b2..69642ed 100644 --- a/README.md +++ b/README.md @@ -66,7 +66,7 @@ ncmdump-go -d source_dir -o output_dir -r 使用 go module 下载 ncmdump-go 包 ```shell -go get -u github.com/taurusxin/ncmdump-go +go get -u git.taurusxin.com/taurusxin/ncmdump-go ``` 导入并使用 @@ -76,7 +76,7 @@ package main import ( "fmt" - "github.com/taurusxin/ncmdump-go/ncmcrypt" + "git.taurusxin.com/taurusxin/ncmdump-go/ncmcrypt" ) func main() { diff --git a/build.sh b/build.sh index ae97395..64d5adb 100755 --- a/build.sh +++ b/build.sh @@ -8,30 +8,30 @@ mkdir build # Linux amd64 echo "Building for Linux amd64..." -CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="-w -s" -o build/ncmdump-go github.com/taurusxin/ncmdump-go +CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="-w -s" -o build/ncmdump-go git.taurusxin.com/taurusxin/ncmdump-go tar zcf build/ncmdump-go_linux_amd64_$VERSION.tar.gz -C build ncmdump-go rm build/ncmdump-go # Linux arm64 echo "Building for Linux arm64..." -CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -ldflags="-w -s" -o build/ncmdump-go github.com/taurusxin/ncmdump-go +CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -ldflags="-w -s" -o build/ncmdump-go git.taurusxin.com/taurusxin/ncmdump-go tar zcf build/ncmdump-go_linux_arm64_$VERSION.tar.gz -C build ncmdump-go rm build/ncmdump-go # macOS amd64 echo "Building for macOS amd64..." -CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -ldflags="-w -s" -o build/ncmdump-go github.com/taurusxin/ncmdump-go +CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -ldflags="-w -s" -o build/ncmdump-go git.taurusxin.com/taurusxin/ncmdump-go tar zcf build/ncmdump-go_darwin_amd64_$VERSION.tar.gz -C build ncmdump-go rm build/ncmdump-go # macOS arm64 echo "Building for macOS arm64..." -CGO_ENABLED=0 GOOS=darwin GOARCH=arm64 go build -ldflags="-w -s" -o build/ncmdump-go github.com/taurusxin/ncmdump-go +CGO_ENABLED=0 GOOS=darwin GOARCH=arm64 go build -ldflags="-w -s" -o build/ncmdump-go git.taurusxin.com/taurusxin/ncmdump-go tar zcf build/ncmdump-go_darwin_arm64_$VERSION.tar.gz -C build ncmdump-go rm build/ncmdump-go # Windows amd64 echo "Building for Windows amd64..." -CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -ldflags="-w -s" -o build/ncmdump-go.exe github.com/taurusxin/ncmdump-go +CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -ldflags="-w -s" -o build/ncmdump-go.exe git.taurusxin.com/taurusxin/ncmdump-go zip -q -j build/ncmdump-go_windows_amd64_$VERSION.zip ./build/ncmdump-go.exe rm build/ncmdump-go.exe \ No newline at end of file diff --git a/go.mod b/go.mod index f7c1e61..e5a29e4 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/taurusxin/ncmdump-go +module git.taurusxin.com/taurusxin/ncmdump-go go 1.23.0 diff --git a/main.go b/main.go index fa9e9c0..9f9f80b 100644 --- a/main.go +++ b/main.go @@ -2,8 +2,8 @@ package main import ( "fmt" - "github.com/taurusxin/ncmdump-go/ncmcrypt" - "github.com/taurusxin/ncmdump-go/utils" + "git.taurusxin.com/taurusxin/ncmdump-go/ncmcrypt" + "git.taurusxin.com/taurusxin/ncmdump-go/utils" "os" "path/filepath" diff --git a/ncmcrypt/ncmcrypt.go b/ncmcrypt/ncmcrypt.go index 1b88b2a..4657f47 100644 --- a/ncmcrypt/ncmcrypt.go +++ b/ncmcrypt/ncmcrypt.go @@ -9,7 +9,7 @@ import ( "github.com/go-flac/flacpicture" "github.com/go-flac/flacvorbis" "github.com/go-flac/go-flac" - "github.com/taurusxin/ncmdump-go/utils" + "git.taurusxin.com/taurusxin/ncmdump-go/utils" "io" "net/http" "os"