Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

Commit

Permalink
fix libsodium build
Browse files Browse the repository at this point in the history
fixes #1045 and (theoretically) reduces build size

- sodium-native is the only dependency using prebuilds
- the only node binding we need is `electron-69.node`
  - where `$(electron --abi) == 69`
- we also need the `libsodium.so.23` shared library
  - but we must copy this into the root directory of the build (outside the compiled binary file)
  • Loading branch information
ahdinosaur committed May 20, 2019
1 parent c0859f9 commit 4121b70
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,16 @@
"build": {
"appId": "org.ssbc.patchwork",
"files": [
"!**/prebuilds/!(${os}-${arch})${/*}"
"**/*",
"!**/prebuilds${/*}",
"node_modules/sodium-native/prebuilds/${os}-${arch}/electron-69.node"
],
"extraFiles": [
{
"from": "node_modules/sodium-native/prebuilds/${os}-${arch}/",
"to": ".",
"filter": "libsodium.*"
}
],
"linux": {
"category": "Network"
Expand Down

0 comments on commit 4121b70

Please sign in to comment.