@oxmc/node-smbios 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/binding.gyp +6 -3
- package/package.json +9 -6
package/binding.gyp
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
"targets": [
|
|
3
3
|
{
|
|
4
4
|
"target_name": "smbios",
|
|
5
|
+
"product_dir": "<(module_path)",
|
|
5
6
|
"cflags!": [ "-fno-exceptions" ],
|
|
6
7
|
"cflags_cc!": [ "-fno-exceptions" ],
|
|
7
8
|
"cflags_cc": [ "-std=c++17" ],
|
|
@@ -10,10 +11,12 @@
|
|
|
10
11
|
"src/smbios_common.cpp"
|
|
11
12
|
],
|
|
12
13
|
"include_dirs": [
|
|
13
|
-
"<!@(node -p \"require('node-addon-api').include\")"
|
|
14
|
-
|
|
14
|
+
"<!@(node -p \"require('node-addon-api').include\")"
|
|
15
|
+
],
|
|
16
|
+
"defines": [
|
|
17
|
+
"NAPI_DISABLE_CPP_EXCEPTIONS",
|
|
18
|
+
"NAPI_VERSION=<(napi_build_version)"
|
|
15
19
|
],
|
|
16
|
-
"defines": [ "NAPI_DISABLE_CPP_EXCEPTIONS" ],
|
|
17
20
|
"conditions": [
|
|
18
21
|
["OS=='win'", {
|
|
19
22
|
"sources": [ "src/windows/smbios_windows.cpp" ],
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oxmc/node-smbios",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "A Node.js module designed to retrieve detailed system and hardware information from SMBIOS.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"install": "node-pre-gyp install --fallback-to-build",
|
|
8
|
-
"build": "node-gyp rebuild",
|
|
8
|
+
"build": "node-pre-gyp rebuild",
|
|
9
9
|
"clean": "node-gyp clean",
|
|
10
10
|
"test": "node example.js",
|
|
11
11
|
"package": "node-pre-gyp package",
|
|
@@ -13,10 +13,13 @@
|
|
|
13
13
|
},
|
|
14
14
|
"binary": {
|
|
15
15
|
"module_name": "smbios",
|
|
16
|
-
"module_path": "./
|
|
17
|
-
"package_name": "{module_name}-v{version}-{
|
|
16
|
+
"module_path": "./dist/napi-v{napi_build_version}",
|
|
17
|
+
"package_name": "{module_name}-v{version}-napi-v{napi_build_version}-{platform}-{arch}.tar.gz",
|
|
18
18
|
"host": "https://github.com/oxmc/node-smbios/releases/download/",
|
|
19
|
-
"remote_path": "v{version}"
|
|
19
|
+
"remote_path": "v{version}",
|
|
20
|
+
"napi_versions": [
|
|
21
|
+
9
|
|
22
|
+
]
|
|
20
23
|
},
|
|
21
24
|
"keywords": [
|
|
22
25
|
"smbios",
|
|
@@ -67,4 +70,4 @@
|
|
|
67
70
|
"linux",
|
|
68
71
|
"win32"
|
|
69
72
|
]
|
|
70
|
-
}
|
|
73
|
+
}
|