Skip to content

Commit 4ae1299

Browse files
authored
fix: When start ckb by package, it's unnecessary to add arch (#2696)
1 parent 88fbc04 commit 4ae1299

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/neuron-wallet/src/services/ckb-runner.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ const ckbBinary = (): string => {
3535
case 'win':
3636
return binary + '.exe'
3737
case 'mac':
38+
if (app.isPackaged) {
39+
return binary
40+
}
3841
return `${binary}-${process.arch === 'arm64' ? 'arm64' : 'x64'}`
3942
default:
4043
return binary

0 commit comments

Comments
 (0)