From 9185089c9929afc2c1936e441f6f6c6702979281 Mon Sep 17 00:00:00 2001 From: DecDuck Date: Sun, 21 Jun 2026 15:24:33 +1000 Subject: [PATCH] Fix v0.4.0 process handler, add override menu (#430) * Fix Windows and Linux launch * Add process handler selector, pin Prisma * Regenerate lcofkiel * Fix torrential inclusion in image * Fix layouting * Implement tree kill for Windows * Fix server lint --- Dockerfile | 10 +- .../GameOptions/HandlerSelector.vue | 141 + .../main/components/GameOptions/Launch.vue | 3 + desktop/main/components/GameOptionsModal.vue | 5 +- desktop/main/package.json | 2 +- desktop/main/pnpm-lock.yaml | 2319 ++++++----------- desktop/main/types.ts | 1 + desktop/src-tauri/Cargo.lock | 1 + desktop/src-tauri/Cargo.toml | 3 + desktop/src-tauri/database/src/models.rs | 3 + .../src-tauri/process/src/process_handlers.rs | 283 +- .../src-tauri/process/src/process_manager.rs | 113 +- desktop/src-tauri/src/lib.rs | 60 +- desktop/src-tauri/src/process.rs | 7 +- pnpm-lock.yaml | 521 ++-- server/package.json | 6 +- .../content/docs/reference/build-server.mdx | 2 +- .../docs/reference/command-parsing.mdx | 30 +- .../src/content/docs/user/usage/proton.mdx | 6 +- 19 files changed, 1763 insertions(+), 1753 deletions(-) create mode 100644 desktop/main/components/GameOptions/HandlerSelector.vue diff --git a/Dockerfile b/Dockerfile index ee3d89f7..ecc594e2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -63,6 +63,14 @@ FROM base AS run-system ENV NODE_ENV=production ENV NUXT_TELEMETRY_DISABLED=1 +# The base stage's `COPY . .` puts the whole repo into the runtime WORKDIR (/app), +# but at runtime only the artifacts copied explicitly below are needed. Drop the +# inherited `torrential` source dir: the service resolves the binary by scanning +# the cwd for `torrential`, and a directory there is spawned as ./torrential and +# fails with EACCES. With it gone, resolution falls through to the `torrential` +# binary installed on PATH (/usr/bin/torrential) below. +RUN rm -rf /app/torrential + # RUN --mount=type=cache,target=/root/.yarn YARN_CACHE_FOLDER=/root/.yarn yarn add --network-timeout 1000000 --no-lockfile --ignore-scripts prisma@6.11.1 ## runtime deps: ## - libarchive13: torrential now links libarchive dynamically (glibc build) @@ -77,7 +85,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ openssl \ ca-certificates \ && rm -rf /var/lib/apt/lists/* -RUN pnpm install prisma@7.3.0 --global +RUN pnpm install prisma@7.7.0 --global # init prisma to download all required files RUN pnpm prisma init diff --git a/desktop/main/components/GameOptions/HandlerSelector.vue b/desktop/main/components/GameOptions/HandlerSelector.vue new file mode 100644 index 00000000..3a402fa0 --- /dev/null +++ b/desktop/main/components/GameOptions/HandlerSelector.vue @@ -0,0 +1,141 @@ + + + diff --git a/desktop/main/components/GameOptions/Launch.vue b/desktop/main/components/GameOptions/Launch.vue index f7aac792..1deb4d35 100644 --- a/desktop/main/components/GameOptions/Launch.vue +++ b/desktop/main/components/GameOptions/Launch.vue @@ -23,16 +23,19 @@

+ diff --git a/desktop/main/components/GameOptionsModal.vue b/desktop/main/components/GameOptionsModal.vue index 6d638733..9ae4130d 100644 --- a/desktop/main/components/GameOptionsModal.vue +++ b/desktop/main/components/GameOptionsModal.vue @@ -1,7 +1,7 @@