From 68e7b70699c27422ab58e06dd82270eebb247caf Mon Sep 17 00:00:00 2001 From: filtered <176114999+webfiltered@users.noreply.github.com> Date: Thu, 28 Nov 2024 11:43:51 +1100 Subject: [PATCH] Fix type error on build --- scripts/todesktop/beforeInstall.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/todesktop/beforeInstall.js b/scripts/todesktop/beforeInstall.js index f7eea04b..86422e3c 100644 --- a/scripts/todesktop/beforeInstall.js +++ b/scripts/todesktop/beforeInstall.js @@ -22,7 +22,7 @@ module.exports = async ({ pkgJsonPath, pkgJson, appDir, hookName }) => { // Download git // TODO: Move to the installer, if current dist infra permits it - const res = spawnSync('where.exe', 'git') + const res = spawnSync('where.exe', ['git']) if (res.status !== 0) spawnSync('curl', ['-s', 'https://github.com/git-for-windows/git/releases/download/v2.47.1.windows.1/Git-2.47.1-64-bit.exe'], { shell:true, stdio: 'ignore' }).toString(); } };