Skip to content

Commit 8370d62

Browse files
authored
fix: Wrong executable path on WSL (#89)
1 parent 1a9c0fc commit 8370d62

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/rcedit.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const { canRunWindowsExeNatively, is64BitArch, spawnExe } = require('cross-spawn-windows-exe')
1+
const { canRunWindowsExeNatively, is64BitArch, spawnExe, normalizePath } = require('cross-spawn-windows-exe')
22
const path = require('path')
33

44
const pairSettings = ['version-string', 'resource-string']
@@ -8,7 +8,7 @@ const noPrefixSettings = ['application-manifest']
88
module.exports = async (exe, options) => {
99
const rceditExe = is64BitArch(process.arch) ? 'rcedit-x64.exe' : 'rcedit.exe'
1010
const rcedit = path.resolve(__dirname, '..', 'bin', rceditExe)
11-
const args = [exe]
11+
const args = [await normalizePath(exe)]
1212

1313
for (const name of pairSettings) {
1414
if (options[name]) {

0 commit comments

Comments
 (0)