Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
quarto-dev
GitHub Repository: quarto-dev/quarto-cli
Path: blob/main/package/src/common/dependencies/verapdf.ts
6451 views
1
/*
2
* verapdf.ts
3
*
4
* Copyright (C) 2020-2022 Posit Software, PBC
5
*/
6
7
import { Dependency } from "./dependencies.ts";
8
9
export function verapdf(version: string): Dependency {
10
// VeraPDF is a Java application distributed as an installer ZIP.
11
// The same artifact works on all platforms.
12
const filename = `verapdf-greenfield-${version}-installer.zip`;
13
// Version format is X.Y.Z, but releases are organized under X.Y directories
14
const majorMinor = version.substring(0, version.lastIndexOf("."));
15
const url =
16
`https://software.verapdf.org/releases/${majorMinor}/${filename}`;
17
18
// VeraPDF is an archive-only dependency - it's uploaded to S3 for
19
// `quarto install verapdf` but not automatically installed during configure.
20
// This is because it requires Java and is only needed for PDF/A validation.
21
const release = {
22
filename,
23
url,
24
configure: async () => {
25
// No-op: verapdf is installed via `quarto install verapdf`, not configure.sh
26
},
27
};
28
29
return {
30
name: "VeraPDF",
31
bucket: "verapdf",
32
version,
33
archiveOnly: true,
34
// Same artifact for all platforms since it's Java
35
architectureDependencies: {
36
"x86_64": {
37
"darwin": release,
38
"linux": release,
39
"windows": release,
40
},
41
"aarch64": {
42
"darwin": release,
43
"linux": release,
44
},
45
},
46
};
47
}
48
49