diff --git a/arch.go b/arch.go index 8867e73..68560fb 100644 --- a/arch.go +++ b/arch.go @@ -43,6 +43,8 @@ func Compress(archPath, contentDir string) error { toolCmd := exec.Command( toolPath, + "-tzip", + "-mx=0", "a", archPath, contentDir+string(filepath.Separator)+"*", ) diff --git a/media.go b/media.go index 3c09fd1..5db4288 100644 --- a/media.go +++ b/media.go @@ -37,7 +37,7 @@ func parseVolumeIndex(path string) *int { func isImagePath(path string) bool { switch strings.ToLower(filepath.Ext(path)) { - case ".jpg", ".jpeg", ".png", ".webp", ".bmp", ".gif": + case ".jpg", ".jpeg", ".png", ".webp", ".bmp", ".gif", ".avif": return true default: return false