File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -249,8 +249,7 @@ export async function dlxBinary(
249249 const cacheDir = getDlxCachePath ( )
250250 const cacheKey = generateCacheKey ( url )
251251 const cacheEntryDir = path . join ( cacheDir , cacheKey )
252- const platformKey = `${ targetPlatform } -${ arch } `
253- const binaryName = name || `binary-${ platformKey } `
252+ const binaryName = name || `binary-${ targetPlatform } -${ arch } `
254253 const binaryPath = normalizePath ( path . join ( cacheEntryDir , binaryName ) )
255254
256255 let downloaded = false
@@ -296,6 +295,7 @@ export async function dlxBinary(
296295
297296 // Execute the binary.
298297 // On Windows, script files (.bat, .cmd, .ps1) require shell: true.
298+ // Note: .exe files are actual binaries and don't need shell mode.
299299 const finalSpawnOptions =
300300 WIN32 && / \. (?: b a t | c m d | p s 1 ) $ / i. test ( binaryPath )
301301 ? { ...spawnOptions , shell : true }
You can’t perform that action at this time.
0 commit comments