Fixed discord-rpc binary file execution

This commit is contained in:
Observer KRypt0n_ 2022-01-05 01:15:34 +02:00
parent 6fb8852ef4
commit 9aaf1e8ddd
No known key found for this signature in database
GPG key ID: DC5D4EC1303465DA
2 changed files with 2 additions and 2 deletions

View file

@ -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"
},

View file

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