mirror of
https://github.com/gen2brain/cbconvert
synced 2025-10-14 02:28:51 +02:00
linux static build
This commit is contained in:
@@ -20,7 +20,9 @@ Download
|
||||
--------
|
||||
|
||||
- [Windows static build](https://github.com/gen2brain/cbconvert/releases/download/0.3.0/cbconvert-0.3.0.zip)
|
||||
|
||||
- [Linux 64bit build](https://github.com/gen2brain/cbconvert/releases/download/0.3.0/cbconvert-0.3.0.tar.gz)
|
||||
- [Linux 64bit static build](https://github.com/gen2brain/cbconvert/releases/download/0.3.0/cbconvert-0.3.0-static.tar.gz)
|
||||
|
||||
Using
|
||||
-----
|
||||
|
@@ -560,6 +560,10 @@ func getImages(path string) []string {
|
||||
|
||||
// Returns the filename that is the most likely to be the cover
|
||||
func getCover(images []string) string {
|
||||
if len(images) == 0 {
|
||||
return ""
|
||||
}
|
||||
|
||||
for _, i := range images {
|
||||
if strings.HasPrefix(i, "cover") || strings.HasPrefix(i, "front") {
|
||||
return i
|
||||
|
@@ -5,8 +5,8 @@ mkdir -p build
|
||||
CGO_ENABLED=1 GOOS=linux GOARCH=amd64 go build -o build/cbconvert
|
||||
strip build/cbconvert
|
||||
|
||||
#CGO_LDFLAGS="-lm -lz -ldl -lltdl -lfreetype -static-libgcc" CGO_ENABLED=1 GOOS=linux GOARCH=amd64 go build -v -x -o build/cbconvert-static --ldflags '-extldflags "-static"'
|
||||
#strip build/cbconvert-static
|
||||
CGO_LDFLAGS="-ldl -lltdl -lfreetype -lm -lz -static-libgcc" CGO_ENABLED=1 GOOS=linux GOARCH=amd64 go build -o build/cbconvert-static --ldflags '-extldflags "-static"'
|
||||
strip build/cbconvert-static
|
||||
|
||||
CGO_LDFLAGS="-L/usr/i686-pc-mingw32/usr/lib" \
|
||||
CGO_CFLAGS="-I/usr/i686-pc-mingw32/usr/include -Wno-poison-system-directories" \
|
||||
|
Reference in New Issue
Block a user