fix(desktop/pdfjs): not working due to build script

This commit is contained in:
Elian Doran
2026-01-01 22:57:56 +02:00
parent 413ee81ffa
commit 98cefcf77b
3 changed files with 12 additions and 10 deletions

View File

@@ -68,6 +68,14 @@ export default class BuildHelper {
writeFileSync(join(this.outDir, "meta.json"), JSON.stringify(result.metafile));
}
buildFrontend() {
this.triggerBuildAndCopyTo("apps/client", "public/");
this.deleteFromOutput("public/webpack-stats.json");
// pdf.js
this.triggerBuildAndCopyTo("packages/pdfjs-viewer", "pdfjs-viewer");
}
triggerBuildAndCopyTo(projectToBuild: string, destPath: string) {
const projectDir = join(this.rootDir, projectToBuild);
execSync("pnpm build", { cwd: projectDir, stdio: "inherit" });