-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request janhq#487 from janhq/fix/leveldown-mac-intel
Add rebuild leveldown for arm on mac intel
- Loading branch information
Showing
2 changed files
with
3 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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" | ||
}, | ||
|
@@ -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" | ||
] | ||
} | ||
} |