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 21, 2019
1 parent fe9f663 commit 6923fd6
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,18 @@
},
"build": {
"appId": "org.ssbc.patchwork",
"files": [
"**/*",
"!**/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",
"target": [
Expand Down

0 comments on commit 6923fd6

Please sign in to comment.