Skip to content

Commit

Permalink
fix: resolve relative path
Browse files Browse the repository at this point in the history
  • Loading branch information
katallaxie authored Jan 8, 2025
1 parent ca32726 commit d581e14
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions shim/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,9 @@ function chooseBinary() {

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

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

const mainScript = resolve(`${__dirname}/../dist/${binary}`)
const spawnSyncReturns = childProcess.spawnSync(mainScript, { stdio: 'inherit' })

0 comments on commit d581e14

Please sign in to comment.