From 98685b931ea6422308e1a5dcc45a54200869edc8 Mon Sep 17 00:00:00 2001 From: Nick Fujita Date: Mon, 6 Jun 2022 19:02:03 +0900 Subject: [PATCH 1/2] 'update dependencies' --- binding.gyp | 29 ++++++++++++++++++++--------- package.json | 20 ++++++++++---------- 2 files changed, 30 insertions(+), 19 deletions(-) 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", "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 ' Date: Mon, 6 Jun 2022 19:06:45 +0900 Subject: [PATCH 2/2] 'update build for darwin to have universal build' --- .travis.yml | 2 +- package.json | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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/package.json b/package.json index c949b39..82a9345 100644 --- a/package.json +++ b/package.json @@ -19,6 +19,7 @@ "install": "node-gyp-build", "rebuild": "node-gyp rebuild", "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 14.13.0 --napi --strip", "test": "node test.js",