Skip to content

Commit

Permalink
fix: Wrong executable path on WSL (#89)
Browse files Browse the repository at this point in the history
  • Loading branch information
Losses authored Nov 7, 2023
1 parent 1a9c0fc commit 8370d62
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/rcedit.js
Original file line number Diff line number Diff line change
@@ -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']
Expand All @@ -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]) {
Expand Down

0 comments on commit 8370d62

Please sign in to comment.