Desktop :3

This commit is contained in:
2026-11-14 10:45:04 -03:00
parent 297d87164c
commit 605008f584
2 changed files with 7 additions and 5 deletions
+1 -1
View File
@@ -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": {
+6 -4
View File
@@ -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 <app folder>, like dist/bworld");
console.error("usage: linux_launcher.ts <app folder>, like dist/cubi");
Deno.exit(1);
}
wrap_linux_launcher(dir);