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}` ];