From 605008f584d850b3a419409644c2448b77556b16 Mon Sep 17 00:00:00 2001 From: Paula Date: Sat, 14 Nov 2026 10:45:04 -0300 Subject: [PATCH] Desktop :3 --- deno.json | 2 +- desktop/linux_launcher.ts | 10 ++++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/deno.json b/deno.json index f60ab9a..9e58be4 100644 --- a/deno.json +++ b/deno.json @@ -9,7 +9,7 @@ "pack-mod": "deno run --allow-read --allow-write --allow-run --allow-env tools/pack_mod.ts", "test": "deno test --allow-read --allow-write --allow-run --allow-net tests/", "bench": "deno bench --allow-read --allow-write --allow-run tests/", - "desktop": "deno run -A build.ts --once && deno desktop --allow-read --allow-write --allow-net --allow-ffi --allow-env=CUBI_SERVER,CUBI_CLIENT_UPDATES,HOME,USERPROFILE,APPDATA,XDG_DATA_HOME,DEBUG --include build --include server_mods --include server/game/worker.ts --include server/game/worldgen_worker.ts --include server/content_worker.ts --include desktop/config.json desktop/main.ts && deno run --allow-read --allow-write desktop/linux_launcher.ts dist/bworld", + "desktop": "deno run -A build.ts --once && deno desktop --allow-read --allow-write --allow-net --allow-ffi --allow-env=CUBI_SERVER,CUBI_CLIENT_UPDATES,HOME,USERPROFILE,APPDATA,XDG_DATA_HOME,DEBUG --include build --include server_mods --include server/game/worker.ts --include server/game/worldgen_worker.ts --include server/content_worker.ts --include desktop/config.json desktop/main.ts && deno run --allow-read --allow-write desktop/linux_launcher.ts dist/cubi", "desktop-all": "deno run -A tools/desktop_all.ts" }, "compilerOptions": { diff --git a/desktop/linux_launcher.ts b/desktop/linux_launcher.ts index a55e4f2..f8d0436 100644 --- a/desktop/linux_launcher.ts +++ b/desktop/linux_launcher.ts @@ -7,10 +7,12 @@ // needs on some linux setups. run it on the app folder after deno desktop builds it; running it again does nothing const SWITCHES = [ - "--enable-unsafe-webgpu", - "--ozone-platform=x11", + "--enable-features=UseOzonePlatform,Vulkan,VulkanFromANGLE", + // "--enable-unsafe-webgpu", "--use-angle=vulkan", - "--enable-features=Vulkan,VulkanFromANGLE", + "--ozone-platform=wayland", + "--enable-wayland-ime", + "--wayland-text-input-version=3", ]; if (import.meta.main) { @@ -20,7 +22,7 @@ if (import.meta.main) { } const dir = Deno.args[0]; if (!dir) { - console.error("usage: linux_launcher.ts , like dist/bworld"); + console.error("usage: linux_launcher.ts , like dist/cubi"); Deno.exit(1); } wrap_linux_launcher(dir);