From ec131886ee8376af1c973daee8e2b9cfa0f2e4ba Mon Sep 17 00:00:00 2001 From: KRISTOF <96542574+ayyo42069@users.noreply.github.com> Date: Fri, 1 May 2026 21:45:16 +0200 Subject: [PATCH] Fix path for HTTP Toolkit installation on Windows RecursiveRegistrations --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 4eb39ca..db09ac2 100644 --- a/index.js +++ b/index.js @@ -27,13 +27,13 @@ const installCmd = pm === 'npm' ? 'install' : 'add' // Try to find where HTTP Toolkit is installed const appPath = - isWin ? path.join(process.env.LOCALAPPDATA ?? '', 'Programs', 'HTTP Toolkit', 'resources') + isWin ? path.join(process.env.LOCALAPPDATA ?? '', 'Programs', 'httptoolkit', 'resources') : isMac ? '/Applications/HTTP Toolkit.app/Contents/Resources' : fs.existsSync('/opt/HTTP Toolkit/resources') ? '/opt/HTTP Toolkit/resources' : '/opt/httptoolkit/resources' const exePath = - isWin ? path.join(process.env.LOCALAPPDATA ?? '', 'Programs', 'HTTP Toolkit', 'HTTP Toolkit.exe') + isWin ? path.join(process.env.LOCALAPPDATA ?? '', 'Programs', 'httptoolkit', 'HTTP Toolkit.exe') : isMac ? '/Applications/HTTP Toolkit.app/Contents/MacOS/HTTP Toolkit' : fs.existsSync('/opt/HTTP Toolkit/httptoolkit') ? '/opt/HTTP Toolkit/httptoolkit' : '/opt/httptoolkit/httptoolkit'