diff --git a/lib/rcedit.js b/lib/rcedit.js index a7b0a72..8c97a7b 100644 --- a/lib/rcedit.js +++ b/lib/rcedit.js @@ -1,4 +1,4 @@ -const { canRunWindowsExeNatively, is64BitArch, spawnExe } = require('cross-spawn-windows-exe') +const { canRunWindowsExeNatively, is64BitArch, spawnExe, normalizePath } = require('cross-spawn-windows-exe') const path = require('path') const pairSettings = ['version-string', 'resource-string'] @@ -8,7 +8,7 @@ const noPrefixSettings = ['application-manifest'] module.exports = async (exe, options) => { const rceditExe = is64BitArch(process.arch) ? 'rcedit-x64.exe' : 'rcedit.exe' const rcedit = path.resolve(__dirname, '..', 'bin', rceditExe) - const args = [exe] + const args = [await normalizePath(exe)] for (const name of pairSettings) { if (options[name]) {