Add rebuild leveldown for arm on mac intel

This commit is contained in:
Service Account 2023-10-28 00:38:10 +07:00
parent 1439742544
commit 27ba752df9
2 changed files with 3 additions and 3 deletions

View File

@ -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.

View File

@ -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 leveldown@5.6.0 --arch=arm64 -v 26.2.1 && electron-rebuild -f -w leveldown@5.6.0 --arch=x64 -v 26.2.1",
"build:deps": "electron-rebuild -f -w leveldown@5.6.0 --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"
},
@ -40,6 +40,7 @@
"@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"
},
@ -47,4 +48,4 @@
"pouchdb-node",
"pouchdb-find"
]
}
}