hamlib 0.1.13 → 0.1.15

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/README.md CHANGED
@@ -25,7 +25,7 @@ The package will automatically use precompiled binaries if available for your pl
25
25
  For faster installation or offline environments, you can manually install precompiled binaries:
26
26
 
27
27
  1. **Download Prebuilds**: Go to [Releases](../../releases) and download `node-hamlib-prebuilds.zip`
28
- 2. **Extract**: Unzip to your project's `node_modules/node-hamlib/prebuilds/` directory
28
+ 2. **Extract**: Unzip to your project's `node_modules/hamlib/prebuilds/` directory
29
29
  3. **Install**: Run `npm install node-hamlib --ignore-scripts`
30
30
 
31
31
  **Supported Prebuilt Platforms:**
@@ -321,4 +321,4 @@ LGPL - see [COPYING](COPYING) file for details.
321
321
 
322
322
  - [Hamlib Project](https://hamlib.github.io/)
323
323
  - [Supported Radios](https://github.com/Hamlib/Hamlib/wiki/Supported-Radios)
324
- - [rigctl Documentation](https://hamlib.github.io/manpages/rigctl.html)
324
+ - [rigctl Documentation](https://hamlib.github.io/manpages/rigctl.html)
package/binding.gyp CHANGED
@@ -87,69 +87,66 @@
87
87
  ]
88
88
  }, {
89
89
  # Traditional Windows build with Visual C++
90
- "include_dirs": [
91
- # Try environment variable in different formats
92
- "<!(node -e \"console.log((process.env.HAMLIB_ROOT || 'C:/hamlib') + '/include')\")",
93
- # Fallback paths
94
- "C:/hamlib/include",
95
- "C:/Program Files/Hamlib/include",
96
- "C:/Program Files (x86)/Hamlib/include"
97
- ],
98
- "library_dirs": [
99
- # Try environment variable paths
100
- "<!(node -e \"console.log((process.env.HAMLIB_ROOT || 'C:/hamlib') + '/bin')\")",
101
- "<!(node -e \"console.log((process.env.HAMLIB_ROOT || 'C:/hamlib') + '/lib')\")",
102
- "<!(node -e \"console.log((process.env.HAMLIB_ROOT || 'C:/hamlib') + '/lib/x64')\")",
103
- "<!(node -e \"console.log((process.env.HAMLIB_ROOT || 'C:/hamlib') + '/lib/msvc')\")",
104
- # Fallback paths
105
- "C:/hamlib/bin",
106
- "C:/hamlib/lib",
107
- "C:/hamlib/lib/x64",
108
- "C:/hamlib/lib/Release",
109
- "C:/Program Files/Hamlib/bin",
110
- "C:/Program Files/Hamlib/lib",
111
- "C:/Program Files (x86)/Hamlib/bin",
112
- "C:/Program Files (x86)/Hamlib/lib"
113
- ],
114
- "libraries": [
115
- # Try to link against the DLL import library
116
- "libhamlib-4.dll.a",
117
- "hamlib-4.dll.a",
118
- "libhamlib.dll.a",
119
- "hamlib.dll.a",
120
- # Fallback to static libraries if available
121
- "libhamlib-4.lib",
122
- "hamlib-4.lib",
123
- "libhamlib.lib",
124
- "hamlib.lib"
125
- ],
126
- "conditions": [
127
- # Add pthread paths only if PTHREAD_ROOT is set
128
- ["\"<!(node -e \"console.log(process.env.PTHREAD_ROOT || '')\")\"!=\"\"", {
129
- "include_dirs": [
130
- "<!(node -e \"console.log((process.env.PTHREAD_ROOT || 'C:/pthread-win32'))\")"
131
- ],
132
- "library_dirs": [
133
- "<!(node -e \"console.log((process.env.PTHREAD_ROOT || 'C:/pthread-win32') + '/lib')\")",
134
- "<!(node -e \"console.log((process.env.PTHREAD_ROOT || 'C:/pthread-win32') + '/lib/x64')\")"
135
- ],
136
- "libraries": [
137
- "pthreadVC2.lib",
138
- "pthreadVCE2.lib",
139
- "pthreadVSE2.lib",
140
- "pthread.lib"
141
- ]
142
- }]
143
- ],
144
- "msvs_settings": {
145
- "VCCLCompilerTool": {
146
- "ExceptionHandling": 1,
147
- "AdditionalOptions": ["/std:c++14"]
148
- }
149
- }
150
- }]
151
- ]
152
- }]
90
+ "include_dirs": [
91
+ # Try environment variable in different formats
92
+ "<!(node -e \"console.log((process.env.HAMLIB_ROOT || 'C:/hamlib') + '/include')\")",
93
+ # Fallback paths
94
+ "C:/hamlib/include",
95
+ "C:/Program Files/Hamlib/include",
96
+ "C:/Program Files (x86)/Hamlib/include"
97
+ ],
98
+ "library_dirs": [
99
+ # Try environment variable paths
100
+ "<!(node -e \"console.log((process.env.HAMLIB_ROOT || 'C:/hamlib') + '/bin')\")",
101
+ "<!(node -e \"console.log((process.env.HAMLIB_ROOT || 'C:/hamlib') + '/lib')\")",
102
+ "<!(node -e \"console.log((process.env.HAMLIB_ROOT || 'C:/hamlib') + '/lib/gcc')\")",
103
+ "<!(node -e \"console.log((process.env.HAMLIB_ROOT || 'C:/hamlib') + '/lib/x64')\")",
104
+ "<!(node -e \"console.log((process.env.HAMLIB_ROOT || 'C:/hamlib') + '/lib/msvc')\")",
105
+ # Fallback paths
106
+ "C:/hamlib/bin",
107
+ "C:/hamlib/lib",
108
+ "C:/hamlib/lib/gcc",
109
+ "C:/hamlib/lib/x64",
110
+ "C:/hamlib/lib/Release",
111
+ "C:/Program Files/Hamlib/bin",
112
+ "C:/Program Files/Hamlib/lib",
113
+ "C:/Program Files/Hamlib/lib/gcc",
114
+ "C:/Program Files (x86)/Hamlib/bin",
115
+ "C:/Program Files (x86)/Hamlib/lib"
116
+ ],
117
+ "libraries": [
118
+ # Link against the import library present in hamlib-w64 zip
119
+ "libhamlib-4.lib",
120
+ # Common Win32 system libs used by hamlib
121
+ "Ws2_32.lib",
122
+ "Winmm.lib"
123
+ ],
124
+ "conditions": [
125
+ # Add pthread paths only if PTHREAD_ROOT is set
126
+ ["\"<!(node -e \"console.log(process.env.PTHREAD_ROOT || '')\")\"!=\"\"", {
127
+ "include_dirs": [
128
+ # Headers are placed directly under PTHREAD_ROOT to match this include path
129
+ "<!(node -e \"console.log((process.env.PTHREAD_ROOT || 'C:/pthread-win32'))\")"
130
+ ],
131
+ "library_dirs": [
132
+ "<!(node -e \"console.log((process.env.PTHREAD_ROOT || 'C:/pthread-win32') + '/lib/x64')\")",
133
+ "<!(node -e \"console.log((process.env.PTHREAD_ROOT || 'C:/pthread-win32') + '/lib')\")"
134
+ ],
135
+ "libraries": [
136
+ # Only link the MSVC import library we download from Sourceware
137
+ "pthreadVC2.lib"
138
+ ]
139
+ }]
140
+ ],
141
+ "msvs_settings": {
142
+ "VCCLCompilerTool": {
143
+ "ExceptionHandling": 1,
144
+ "AdditionalOptions": ["/std:c++14"]
145
+ }
146
+ }
147
+ }]
148
+ ]
149
+ }]
153
150
  ]
154
151
  }]
155
152
  ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hamlib",
3
- "version": "0.1.13",
3
+ "version": "0.1.15",
4
4
  "description": "Node.js wrapper for hamlib radio control library",
5
5
  "main": "index.js",
6
6
  "module": "lib/index.mjs",
@@ -34,9 +34,10 @@
34
34
  "index.d.ts",
35
35
  "binding.gyp",
36
36
  "COPYING",
37
- "Readme.md"
37
+ "README.md"
38
38
  ],
39
39
  "scripts": {
40
+ "install": "node-gyp-build",
40
41
  "build": "node-gyp configure && node-gyp build",
41
42
  "rebuild": "node-gyp rebuild",
42
43
  "clean": "node-gyp clean",
@@ -55,6 +56,7 @@
55
56
  "node-gyp": "^9.4.0",
56
57
  "prebuildify": "^5.0.0"
57
58
  },
59
+ "preferUnplugged": true,
58
60
  "engines": {
59
61
  "node": ">=12.0.0"
60
62
  },