Skip to content

Commit bfae381

Browse files
committed
fix: update build tags for vips compatibility and adjust Dockerfile settings
1 parent d9097b8 commit bfae381

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ RUN builtAt=${BUILT_AT:-$(date +'%F %T %z')} && \
2121
-X 'github.com/krau/ManyACG/internal/common/version.Commit=$gitCommit' \
2222
-X 'github.com/krau/ManyACG/internal/common/version.Version=$version'\
2323
" && \
24-
CGO_ENABLED=0 go build -tags novips,nodynamic -ldflags "$ldflags" -o manyacg
24+
CGO_ENABLED=0 go build -tags nodynamic -ldflags "$ldflags" -o manyacg
2525

2626
FROM alpine:latest
2727
WORKDIR /opt/manyacg/

internal/pkg/mediatool/compress_vips_stub.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//go:build !linux || !amd64 || novips
1+
//go:build !vips
22

33
package mediatool
44

internal/pkg/mediatool/resize_vips.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//go:build linux && amd64 && !novips
1+
//go:build vips
22

33
package mediatool
44

scripts/build.vips.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ vipsFlags=$(pkg-config --static --libs vips)
1414

1515
# nodynamic tag is for https://github.com/gen2brain/avif
1616
CGO_ENABLED=1 go build \
17-
-tags nodynamic,netgo \
17+
-tags vips,nodynamic,netgo \
1818
-ldflags "$versionFlags -linkmode external -extldflags \"-static $vipsFlags\"" \
1919
-o manyacg

0 commit comments

Comments
 (0)