diff --git a/build.sh b/build.sh index 476f6c1..58b97bb 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 github.com/taurusxin/ncmdump-go -tar zcf build/ncmdump_linux_amd64_$VERSION.tar.gz -C build ncmdump -rm build/ncmdump +CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="-w -s" -o build/ncmdump-go github.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 github.com/taurusxin/ncmdump-go -tar zcf build/ncmdump_linux_arm64_$VERSION.tar.gz -C build ncmdump -rm build/ncmdump +CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -ldflags="-w -s" -o build/ncmdump-go github.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 github.com/taurusxin/ncmdump-go -tar zcf build/ncmdump_darwin_amd64_$VERSION.tar.gz -C build ncmdump -rm build/ncmdump +CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -ldflags="-w -s" -o build/ncmdump-go github.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 github.com/taurusxin/ncmdump-go -tar zcf build/ncmdump_darwin_arm64_$VERSION.tar.gz -C build ncmdump -rm build/ncmdump +CGO_ENABLED=0 GOOS=darwin GOARCH=arm64 go build -ldflags="-w -s" -o build/ncmdump-go github.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.exe github.com/taurusxin/ncmdump-go -zip -q -j build/ncmdump_windows_amd64_$VERSION.zip ./build/ncmdump.exe -rm build/ncmdump.exe \ No newline at end of file +CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -ldflags="-w -s" -o build/ncmdump-go.exe github.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 7752f37..fc0b713 100644 --- a/go.mod +++ b/go.mod @@ -10,8 +10,8 @@ require github.com/bogem/id3v2/v2 v2.1.4 require ( github.com/TwiN/go-color v1.4.1 - github.com/go-flac/flacpicture/v2 v2.0.2 - github.com/go-flac/go-flac/v2 v2.0.1 + github.com/go-flac/flacpicture v0.3.0 + github.com/go-flac/go-flac v1.0.0 ) require ( diff --git a/go.sum b/go.sum index 9c6a001..0b27785 100644 --- a/go.sum +++ b/go.sum @@ -2,10 +2,10 @@ github.com/TwiN/go-color v1.4.1 h1:mqG0P/KBgHKVqmtL5ye7K0/Gr4l6hTksPgTgMk3mUzc= github.com/TwiN/go-color v1.4.1/go.mod h1:WcPf/jtiW95WBIsEeY1Lc/b8aaWoiqQpu5cf8WFxu+s= github.com/bogem/id3v2/v2 v2.1.4 h1:CEwe+lS2p6dd9UZRlPc1zbFNIha2mb2qzT1cCEoNWoI= github.com/bogem/id3v2/v2 v2.1.4/go.mod h1:l+gR8MZ6rc9ryPTPkX77smS5Me/36gxkMgDayZ9G1vY= -github.com/go-flac/flacpicture/v2 v2.0.2 h1:HCaJIVZpxnpdWs6G3ECEVRelzqS5xOi1Ba1AGmtXbzE= -github.com/go-flac/flacpicture/v2 v2.0.2/go.mod h1:DMZBPWPAmdLqNhqFSy5ZBs9wyBzOekXutGfP7/TFCuo= -github.com/go-flac/go-flac/v2 v2.0.1 h1:1zilNkbmmpK9DLsz2NbjLHG8avOmthYqUfVc9YKB/Ps= -github.com/go-flac/go-flac/v2 v2.0.1/go.mod h1:hvgeR2hElLbwk0Q1/vMazIDmIc2LAFSd9Bx/Fk6ViKo= +github.com/go-flac/flacpicture v0.3.0 h1:LkmTxzFLIynwfhHiZsX0s8xcr3/u33MzvV89u+zOT8I= +github.com/go-flac/flacpicture v0.3.0/go.mod h1:DPbrzVYQ3fJcvSgLFp9HXIrEQEdfdk/+m0nQCzwodZI= +github.com/go-flac/go-flac v1.0.0 h1:6qI9XOVLcO50xpzm3nXvO31BgDgHhnr/p/rER/K/doY= +github.com/go-flac/go-flac v1.0.0/go.mod h1:WnZhcpmq4u1UdZMNn9LYSoASpWOCMOoxXxcWEHSzkW8= github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA= github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= github.com/tidwall/gjson v1.17.3 h1:bwWLZU7icoKRG+C+0PNwIKC6FCJO/Q3p2pZvuP0jN94=