From 00205fb215f052cf7257040ffb85458b33332558 Mon Sep 17 00:00:00 2001 From: bunsenstraat Date: Wed, 25 Oct 2023 09:22:03 +0200 Subject: [PATCH] fix rg path --- apps/remixdesktop/src/plugins/ripgrepPlugin.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/remixdesktop/src/plugins/ripgrepPlugin.ts b/apps/remixdesktop/src/plugins/ripgrepPlugin.ts index 6d1964decd..048f694ade 100644 --- a/apps/remixdesktop/src/plugins/ripgrepPlugin.ts +++ b/apps/remixdesktop/src/plugins/ripgrepPlugin.ts @@ -51,7 +51,9 @@ export class RipgrepPluginClient extends ElectronBasePluginClient { return new Promise((c, e) => { - const rg = spawn(rgPath, ['.', '-l', path]) + // replace packed app path with unpacked app path for release on windows + const customRgPath = rgPath.replace('/app.asar/', '/app.asar.unpacked/') + const rg = spawn(customRgPath, ['.', '-l', path]) const resultrg: any[] = []