Change enviromental variables
This commit is contained in:
@@ -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") {
|
||||
|
||||
+3
-3
@@ -21,11 +21,11 @@ const BUILD_DIR = join(ROOT, "build");
|
||||
const config: { server?: string; client_updates?: string } = JSON.parse(
|
||||
await Deno.readTextFile(new URL("./config.json", import.meta.url)),
|
||||
);
|
||||
const default_server = Deno.env.get("BWORLD_SERVER") ?? config.server ?? "";
|
||||
const default_server = Deno.env.get("CUBI_SERVER") ?? config.server ?? "";
|
||||
|
||||
// the site the client updates from, see client_updates.ts. BWORLD_CLIENT_UPDATES=off plays the client the app was
|
||||
// the site the client updates from, see client_updates.ts. CUBI_CLIENT_UPDATES=off plays the client the app was
|
||||
// built with (to test a local build), or it can point at a local server to test updating
|
||||
const updates_from = (Deno.env.get("BWORLD_CLIENT_UPDATES") ?? config.client_updates ?? "off").replace(/\/+$/, "");
|
||||
const updates_from = (Deno.env.get("CUBI_CLIENT_UPDATES") ?? config.client_updates ?? "off").replace(/\/+$/, "");
|
||||
// how long the first page waits for an update, a slower one is played next time
|
||||
const UPDATE_WAIT_MS = 3000;
|
||||
const client_options = {
|
||||
|
||||
Reference in New Issue
Block a user