Skip to content

Commit

Permalink
fix: log arch and platform
Browse files Browse the repository at this point in the history
  • Loading branch information
katallaxie authored Jan 8, 2025
1 parent cea2306 commit ca32726
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions shim/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,13 @@ function chooseBinary() {
}
}

console.log(`running on ${platform} ${arch}`)

const os = require('os');
const childProcess = require('child_process');
const platform = os.platform()
const arch = os.arch()
const binary = chooseBinary()
const mainScript = `${__dirname}/dist/${binary}`

console.log(`running on ${platform} ${arch}`)

const spawnSyncReturns = childProcess.spawnSync(mainScript, { stdio: 'inherit' })

0 comments on commit ca32726

Please sign in to comment.