Skip to content

Commit

Permalink
Merge pull request janhq#487 from janhq/fix/leveldown-mac-intel
Browse files Browse the repository at this point in the history
Add rebuild leveldown for arm on mac intel
  • Loading branch information
hiento09 authored Oct 27, 2023
2 parents 1439742 + 27ba752 commit 341cfac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 0 additions & 1 deletion plugins/data-plugin/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,3 @@
- module.ts: Defines the plugin module which would be executed by the main node process.
- package.json: Defines the plugin metadata.
- tsconfig.json: Defines the typescript configuration.

5 changes: 3 additions & 2 deletions plugins/data-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
],
"scripts": {
"build": "tsc -b ./config/tsconfig.esm.json && tsc -b ./config/tsconfig.cjs.json && webpack --config webpack.config.js",
"build:deps": "electron-rebuild -f -w [email protected] --arch=arm64 -v 26.2.1 && electron-rebuild -f -w [email protected] --arch=x64 -v 26.2.1",
"build:deps": "electron-rebuild -f -w [email protected] --arch=arm64 -v 26.2.1 && node-gyp -C ./node_modules/leveldown clean && mkdir -p ./node_modules/leveldown/prebuilds/darwin-arm64 && cp ./node_modules/leveldown/bin/darwin-arm64-116/leveldown.node ./node_modules/leveldown/prebuilds/darwin-arm64/node.napi.node",
"postinstall": "rimraf *.tgz --glob && npm run build",
"build:publish": "npm pack && cpx *.tgz ../../electron/core/pre-install"
},
Expand Down Expand Up @@ -40,11 +40,12 @@
"@janhq/core": "^0.1.7",
"electron": "26.2.1",
"electron-rebuild": "^3.2.9",
"node-gyp": "^9.4.1",
"pouchdb-find": "^8.0.1",
"pouchdb-node": "^8.0.1"
},
"bundleDependencies": [
"pouchdb-node",
"pouchdb-find"
]
}
}

0 comments on commit 341cfac

Please sign in to comment.