Skip to content

Commit

Permalink
Bundle libc++abi.so.1, clean linuxDepends.js
Browse files Browse the repository at this point in the history
  • Loading branch information
khrj committed Aug 25, 2020
1 parent e2165e9 commit 5dd990f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,5 +88,5 @@
"dist": "electron-builder",
"start": "electron ."
},
"version": "0.9.7"
"version": "0.9.8"
}
14 changes: 11 additions & 3 deletions scripts/linuxDepends.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,16 @@ exports.default = async context => {
if (context.electronPlatformName === "linux") {
const { copyFile } = require("fs").promises
const { join } = require("path")
await copyFile("/usr/lib/x86_64-linux-gnu/libc++.so.1", join(context.appOutDir, "libc++.so.1"))
await copyFile("/usr/lib/x86_64-linux-gnu/libssl.so.1.0.0", join(context.appOutDir, "libssl.so.1.0.0"))
await copyFile("/usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.0", join(context.appOutDir, "libcrypto.so.1.0.0"))

const storeLib = async lib => { await copyFile(`/usr/lib/x86_64-linux-gnu/${lib}`, join(context.appOutDir, `${lib}`)) }

const libs = [
'libc++.so.1',
'libc++abi.so.1',
'libssl.so.1.0.0',
'libcrypto.so.1.0.0'
]

libs.forEach(lib => storeLib(lib))
}
}

0 comments on commit 5dd990f

Please sign in to comment.