-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
kepub: Switch to my forked+renamed html package instead of replacing it
This will eliminate conflicts and other difficulties when building kepubify externally or as a library
- Loading branch information
Showing
15 changed files
with
98 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
// Package zip is an ugly hack to allow kepubify to be build on Go 1.16 with a | ||
// backported archive/zip from Go 1.17 for much better performance. To use it, | ||
// build with `-tags zip117`. This tag does not have any effect on any version | ||
// other than Go 1.16. Note that if other applications embed kepubify and use | ||
// this option, they must also use the same backported module with | ||
// (*kepub.Converter).Convert if they want the performance improvements. | ||
package zip | ||
|
||
// TODO: remove this package and the build flags once kepubify switches to Go 1.17 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
//go:build go1.16 && !go1.17 && !zip117 | ||
// +build go1.16,!go1.17,!zip117 | ||
|
||
package zip | ||
|
||
import "archive/zip" | ||
|
||
const Deflate = zip.Deflate | ||
const Store = zip.Store | ||
|
||
var FileInfoHeader = zip.FileInfoHeader | ||
var NewReader = zip.NewReader | ||
var NewWriter = zip.NewWriter | ||
var OpenReader = zip.OpenReader | ||
var RegisterCompressor = zip.RegisterCompressor | ||
var RegisterDecompressor = zip.RegisterDecompressor | ||
|
||
type Compressor = zip.Compressor | ||
type Decompressor = zip.Decompressor | ||
type File = zip.File | ||
type FileHeader = zip.FileHeader | ||
type ReadCloser = zip.ReadCloser | ||
type Reader = zip.Reader | ||
type Writer = zip.Writer | ||
|
||
var ErrAlgorithm = zip.ErrAlgorithm | ||
var ErrChecksum = zip.ErrChecksum | ||
var ErrFormat = zip.ErrFormat |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
//go:build go1.17 || (go1.16 && zip117) | ||
// +build go1.17 go1.16,zip117 | ||
|
||
package zip | ||
|
||
import "github.com/pgaskin/kepubify/_/go116-zip.go117/archive/zip" | ||
|
||
const Deflate = zip.Deflate | ||
const Store = zip.Store | ||
|
||
var FileInfoHeader = zip.FileInfoHeader | ||
var NewReader = zip.NewReader | ||
var NewWriter = zip.NewWriter | ||
var OpenReader = zip.OpenReader | ||
var RegisterCompressor = zip.RegisterCompressor | ||
var RegisterDecompressor = zip.RegisterDecompressor | ||
|
||
type Compressor = zip.Compressor | ||
type Decompressor = zip.Decompressor | ||
type File = zip.File | ||
type FileHeader = zip.FileHeader | ||
type ReadCloser = zip.ReadCloser | ||
type Reader = zip.Reader | ||
type Writer = zip.Writer | ||
|
||
var ErrAlgorithm = zip.ErrAlgorithm | ||
var ErrChecksum = zip.ErrChecksum | ||
var ErrFormat = zip.ErrFormat |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters