Skip to content

Commit

Permalink
♻️ Upgrade to Pandoc v3.5 #12750
Browse files Browse the repository at this point in the history
  • Loading branch information
88250 committed Oct 11, 2024
1 parent bd24cc4 commit c930c28
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 3 deletions.
Binary file modified app/pandoc/pandoc-darwin-amd64.zip
Binary file not shown.
Binary file added app/pandoc/pandoc-darwin-arm64.zip
Binary file not shown.
Binary file modified app/pandoc/pandoc-linux-amd64.zip
Binary file not shown.
Binary file added app/pandoc/pandoc-linux-arm64.zip
Binary file not shown.
Binary file modified app/pandoc/pandoc-windows-amd64.zip
Binary file not shown.
16 changes: 13 additions & 3 deletions kernel/util/pandoc.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,11 +150,21 @@ func InitPandoc() {
pandocZip := filepath.Join(WorkingDir, "pandoc.zip")
if "dev" == Mode || !gulu.File.IsExist(pandocZip) {
if gulu.OS.IsWindows() {
pandocZip = filepath.Join(WorkingDir, "pandoc/pandoc-windows-amd64.zip")
if "amd64" == runtime.GOARCH {
pandocZip = filepath.Join(WorkingDir, "pandoc/pandoc-windows-amd64.zip")
}
} else if gulu.OS.IsDarwin() {
pandocZip = filepath.Join(WorkingDir, "pandoc/pandoc-darwin-amd64.zip")
if "amd64" == runtime.GOARCH {
pandocZip = filepath.Join(WorkingDir, "pandoc/pandoc-darwin-amd64.zip")
} else if "arm64" == runtime.GOARCH {
pandocZip = filepath.Join(WorkingDir, "pandoc/pandoc-darwin-arm64.zip")
}
} else if gulu.OS.IsLinux() {
pandocZip = filepath.Join(WorkingDir, "pandoc/pandoc-linux-amd64.zip")
if "amd64" == runtime.GOARCH {
pandocZip = filepath.Join(WorkingDir, "pandoc/pandoc-linux-amd64.zip")
} else if "arm64" == runtime.GOARCH {
pandocZip = filepath.Join(WorkingDir, "pandoc/pandoc-linux-arm64.zip")
}
}
}

Expand Down

0 comments on commit c930c28

Please sign in to comment.