Skip to content

Commit

Permalink
fix: Linux arm64 classic-level does not properly load
Browse files Browse the repository at this point in the history
  • Loading branch information
ci010 committed May 12, 2023
1 parent 0dcd2ba commit fb99bdb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion xmcl-electron-app/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,8 @@ async function installArm64() {
if (currentPlatform === 'linux') {
// copy classic-level dependencies
const src = resolve(__dirname, '../xmcl-runtime/node_modules/classic-level/prebuilds/linux-arm64/node.napi.armv8.node')
const dest = resolve(__dirname, 'dist/node.napi.glib.node')
const dest = resolve(__dirname, 'dist/node.napi.glibc.node')
await unlink(dest).catch(() => { })
await copyFile(src, dest)
console.log(`copy ${src} -> ${dest}`)
}
Expand Down

0 comments on commit fb99bdb

Please sign in to comment.