From 72d35e37f353abdaa00c5659abf1481ca4626b0c Mon Sep 17 00:00:00 2001 From: Jonas Strehle Date: Mon, 8 Apr 2024 20:19:48 +0200 Subject: [PATCH] Add puppeteer installation --- backend/entrypoint.tsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/backend/entrypoint.tsx b/backend/entrypoint.tsx index 2e38cb2..f9f0f28 100644 --- a/backend/entrypoint.tsx +++ b/backend/entrypoint.tsx @@ -4,8 +4,14 @@ import { timeout } from "unyt_core/datex_all.ts"; import { Entrypoint } from "uix/html/entrypoints.ts"; import { FileProvider } from "uix/html/entrypoint-providers.tsx"; import { UIX } from "uix"; +import { exec } from "https://deno.land/x/exec@0.0.5/mod.ts"; + UIX.Theme.setMode("dark"); +exec("PUPPETEER_PRODUCT=chrome deno run -A --unstable https://deno.land/x/puppeteer@16.2.0/install.ts") + .then(() => console.info("Successfully installed puppeteer")) + .catch(console.error); + @endpoint export class Screenshot { @timeout(40_000)