wip
This commit is contained in:
parent
18b60a0e7c
commit
247c8584bd
@ -70,12 +70,7 @@ func epwingExportDb(inputPath, outputDir, title string, stride int, pretty bool)
|
|||||||
|
|
||||||
var data []byte
|
var data []byte
|
||||||
if stat.IsDir() {
|
if stat.IsDir() {
|
||||||
toolPath := filepath.Join(
|
toolPath := filepath.Join("bin", runtime.GOOS, "zero-epwing")
|
||||||
"bin",
|
|
||||||
runtime.GOOS,
|
|
||||||
"zero-epwing",
|
|
||||||
)
|
|
||||||
|
|
||||||
if runtime.GOOS == "windows" {
|
if runtime.GOOS == "windows" {
|
||||||
toolPath += ".exe"
|
toolPath += ".exe"
|
||||||
}
|
}
|
||||||
@ -88,7 +83,7 @@ func epwingExportDb(inputPath, outputDir, title string, stride int, pretty bool)
|
|||||||
return fmt.Errorf("failed to find zero-epwing in '%s'", toolPath)
|
return fmt.Errorf("failed to find zero-epwing in '%s'", toolPath)
|
||||||
}
|
}
|
||||||
|
|
||||||
cmd := exec.Command(toolPath, inputPath)
|
cmd := exec.Command(toolPath, "--entries", inputPath)
|
||||||
|
|
||||||
stdout, err := cmd.StdoutPipe()
|
stdout, err := cmd.StdoutPipe()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user