diff --git a/.travis.yml b/.travis.yml index 172210b..fbe9a7e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -36,7 +36,7 @@ jobs: env: [TEST_CMD=lint-test] - os: osx node_js: node - env: [TEST_CMD=lint-test, BUILD_CMD=prebuild, BUILD_GROUP=darwin-x64] + env: [TEST_CMD=lint-test, BUILD_CMD=prebuild-darwin, BUILD_GROUP=darwin] - name: arm os: linux node_js: node diff --git a/binding.gyp b/binding.gyp index 7b3ae49..60db502 100644 --- a/binding.gyp +++ b/binding.gyp @@ -5,18 +5,29 @@ 'sources': [ 'src/microtime.cc' ], 'cflags!': [ '-fno-exceptions' ], 'cflags_cc!': [ '-fno-exceptions' ], - 'include_dirs': ["= 4.0.0" + "node": ">= 14.13.0" }, "scripts": { "install": "node-gyp-build", "rebuild": "node-gyp rebuild", - "prebuild": "prebuildify -t 8.14.0 -t electron@3.0.0 --napi --strip", + "prebuild": "prebuildify -t 14.13.0 -t electron@18.2.0 --napi --strip", + "prebuild-darwin": "prebuildify -t 14.13.0 -t electron@18.2.0 --arch x64+arm64 --napi --strip", "download-prebuilds": "prebuildify-ci download", - "prebuildify-cross-armv7": "prebuildify-cross --platform=linux --arch=arm --arm-version=7 -- -t 8.14.0 --napi --strip", + "prebuildify-cross-armv7": "prebuildify-cross --platform=linux --arch=arm --arm-version=7 -- -t 14.13.0 --napi --strip", "test": "node test.js", "format": "clang-format -i src/microtime.cc", "lint-test": "standard && clang-format -output-replacements-xml src/microtime.cc | (! grep -q '