From 9aaf1e8ddd0185cc75f91dbb6a1115b8af829243 Mon Sep 17 00:00:00 2001 From: Observer KRypt0n_ Date: Wed, 5 Jan 2022 01:15:34 +0200 Subject: [PATCH] Fixed `discord-rpc` binary file execution --- package.json | 2 +- src/ts/core/DiscordRPC.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 15db858..92fac2a 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "scripts": { "neu": "neu", "dev": "vite build && neu run --disable-auto-reload", - "build": "vite build && rm -rf dist/an-anime-game-launcher/public && mkdir dist/an-anime-game-launcher/public && cp public/runners.json dist/an-anime-game-launcher/public && cp public/dxvks.json dist/an-anime-game-launcher/public && cp -r public/locales dist/an-anime-game-launcher/public/locales && cp -r public/shaders dist/an-anime-game-launcher/public/shaders && neu build --release", + "build": "vite build && rm -rf dist/an-anime-game-launcher/public && mkdir dist/an-anime-game-launcher/public && cp public/runners.json dist/an-anime-game-launcher/public && cp public/dxvks.json dist/an-anime-game-launcher/public && cp -r public/locales dist/an-anime-game-launcher/public/locales && cp -r public/shaders dist/an-anime-game-launcher/public/shaders && cp -r public/discord-rpc dist/an-anime-game-launcher/public/discord-rpc && neu build --release", "bundle": "node scripts/bundle-appimage.cjs", "check": "svelte-check --tsconfig ./tsconfig.json" }, diff --git a/src/ts/core/DiscordRPC.ts b/src/ts/core/DiscordRPC.ts index f062e2b..139ef4a 100644 --- a/src/ts/core/DiscordRPC.ts +++ b/src/ts/core/DiscordRPC.ts @@ -14,7 +14,7 @@ export default class DiscordRPC this.params = params; let exec = [ - `${NL_CWD}/public/discord-rpc/discord-rpc`, + `"${Process.addSlashes(NL_CWD)}/public/discord-rpc/discord-rpc"`, `-a ${params.id}` ];