Skip to content

Commit

Permalink
replace cp with copy (#118)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielpaulus authored Apr 14, 2022
1 parent 3752a30 commit b9e8ff2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion npm_publish/postinstall.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,12 @@ async function install(callback) {
console.log("using amd64 build on M1 mac")
src= `./dist/go-ios-${process.platform}-amd64_${process.platform}_amd64/${opts.binName}`;
}
await execShellCommand(`cp ${src} ${opts.binPath}/${opts.binName}`);
if (PLATFORM_MAPPING[process.platform]==="windows"){
await execShellCommand(`copy ${src} ${opts.binPath}/${opts.binName}`);
}else {
await execShellCommand(`cp ${src} ${opts.binPath}/${opts.binName}`);
}

await verifyAndPlaceBinary(opts.binName, opts.binPath, callback);
console.log("\x1b[32m","go-ios installed, run 'ios --help' for details\n\n")
}
Expand Down

0 comments on commit b9e8ff2

Please sign in to comment.