Change enviromental variables

This commit is contained in:
2026-11-04 22:10:56 -03:00
parent 5baaf0239a
commit 4ff8821562
4 changed files with 7 additions and 7 deletions
+2 -2
View File
@@ -44,11 +44,11 @@ export function wrap_linux_launcher(dir: string) {
launcher,
`#!/bin/sh
# starts ${name} with the chromium switches webgpu needs on some linux setups, see desktop/linux_launcher.ts.
# BWORLD_CHROMIUM_FLAGS replaces them, set it to "" to start without any
# CUBI_CHROMIUM_FLAGS replaces them, set it to "" to start without any
here="$(dirname "$(readlink -f "$0")")"
# the binary finds its runtime by its own name, which is ${name}.so and not ${name}-bin.so
export LAUFEY_RUNTIME_PATH="$here/${name}.so"
exec "$here/${name}-bin" \${BWORLD_CHROMIUM_FLAGS-${SWITCHES.join(" ")}} "$@"
exec "$here/${name}-bin" \${CUBI_CHROMIUM_FLAGS-${SWITCHES.join(" ")}} "$@"
`,
);
if (Deno.build.os !== "windows") {