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[] = []