@dry-software/cmake-js 7.3.0 → 7.3.2
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/changelog.md +8 -0
- package/lib/dist.js +5 -5
- package/lib/runtimePaths.js +2 -2
- package/package.json +21 -19
package/changelog.md
CHANGED
package/lib/dist.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict'
|
|
2
2
|
const environment = require('./environment')
|
|
3
3
|
const path = require('path')
|
|
4
|
-
const
|
|
4
|
+
const { join: urlJoin } = require('node:path/posix');
|
|
5
5
|
const fs = require('fs-extra')
|
|
6
6
|
const CMLog = require('./cmLog')
|
|
7
7
|
const TargetOptions = require('./targetOptions')
|
|
@@ -101,7 +101,7 @@ class Dist {
|
|
|
101
101
|
}
|
|
102
102
|
async _downloadShaSums() {
|
|
103
103
|
if (this.targetOptions.runtime === 'node') {
|
|
104
|
-
const sumUrl =
|
|
104
|
+
const sumUrl = urlJoin(this.externalPath, 'SHASUMS256.txt')
|
|
105
105
|
const log = this.log
|
|
106
106
|
log.http('DIST', '\t- ' + sumUrl)
|
|
107
107
|
return (await this.downloader.downloadString(sumUrl))
|
|
@@ -124,7 +124,7 @@ class Dist {
|
|
|
124
124
|
const log = this.log
|
|
125
125
|
const self = this
|
|
126
126
|
const tarLocalPath = runtimePaths.get(self.targetOptions).tarPath
|
|
127
|
-
const tarUrl =
|
|
127
|
+
const tarUrl = urlJoin(self.externalPath, tarLocalPath)
|
|
128
128
|
log.http('DIST', '\t- ' + tarUrl)
|
|
129
129
|
|
|
130
130
|
const sum = await this.downloader.downloadTgz(tarUrl, {
|
|
@@ -155,8 +155,8 @@ class Dist {
|
|
|
155
155
|
for (const dirs of paths.winLibs) {
|
|
156
156
|
const subDir = dirs.dir
|
|
157
157
|
const fn = dirs.name
|
|
158
|
-
const fPath = subDir ?
|
|
159
|
-
const libUrl =
|
|
158
|
+
const fPath = subDir ? urlJoin(subDir, fn) : fn
|
|
159
|
+
const libUrl = urlJoin(self.externalPath, fPath)
|
|
160
160
|
log.http('DIST', '\t- ' + libUrl)
|
|
161
161
|
|
|
162
162
|
await fs.ensureDir(path.join(self.internalPath, subDir))
|
package/lib/runtimePaths.js
CHANGED
|
@@ -24,7 +24,7 @@ const runtimePaths = {
|
|
|
24
24
|
externalPath: NODE_MIRROR + '/v' + targetOptions.runtimeVersion + '/',
|
|
25
25
|
winLibs: [
|
|
26
26
|
{
|
|
27
|
-
dir: targetOptions.isArm64 ? 'arm64' : targetOptions.isX64 ? 'win-x64' : 'win-x86',
|
|
27
|
+
dir: targetOptions.isArm64 ? 'win-arm64' : targetOptions.isX64 ? 'win-x64' : 'win-x86',
|
|
28
28
|
name: targetOptions.runtime + '.lib',
|
|
29
29
|
},
|
|
30
30
|
],
|
|
@@ -68,7 +68,7 @@ const runtimePaths = {
|
|
|
68
68
|
externalPath: ELECTRON_MIRROR + '/v' + targetOptions.runtimeVersion + '/',
|
|
69
69
|
winLibs: [
|
|
70
70
|
{
|
|
71
|
-
dir: targetOptions.isX64 ? 'x64' : '',
|
|
71
|
+
dir: targetOptions.isArm64 ? 'arm64' : targetOptions.isX64 ? 'x64' : '',
|
|
72
72
|
name: 'node.lib',
|
|
73
73
|
},
|
|
74
74
|
],
|
package/package.json
CHANGED
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"node-addon-api"
|
|
22
22
|
],
|
|
23
23
|
"main": "lib",
|
|
24
|
-
"version": "7.3.
|
|
24
|
+
"version": "7.3.2",
|
|
25
25
|
"author": "Gábor Mező aka unbornchikken",
|
|
26
26
|
"maintainers": [
|
|
27
27
|
{
|
|
@@ -41,26 +41,28 @@
|
|
|
41
41
|
"node": ">= 14.15.0"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"axios": "
|
|
45
|
-
"debug": "
|
|
46
|
-
"fs-extra": "
|
|
47
|
-
"memory-stream": "
|
|
48
|
-
"node-api-headers": "
|
|
49
|
-
"npmlog": "
|
|
50
|
-
"rc": "
|
|
51
|
-
"semver": "
|
|
52
|
-
"tar": "
|
|
53
|
-
"url-join": "^
|
|
54
|
-
"which": "
|
|
55
|
-
"yargs": "
|
|
44
|
+
"axios": "1.13.2",
|
|
45
|
+
"debug": "4.4.3",
|
|
46
|
+
"fs-extra": "11.3.3",
|
|
47
|
+
"memory-stream": "1.0.0",
|
|
48
|
+
"node-api-headers": "1.7.0",
|
|
49
|
+
"npmlog": "7.0.1",
|
|
50
|
+
"rc": "1.2.8",
|
|
51
|
+
"semver": "7.7.3",
|
|
52
|
+
"tar": "7.5.6",
|
|
53
|
+
"url-join": "^5.0.0",
|
|
54
|
+
"which": "6.0.0",
|
|
55
|
+
"yargs": "18.0.0"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
|
-
"eslint": "^
|
|
59
|
-
"eslint
|
|
60
|
-
"
|
|
61
|
-
"
|
|
62
|
-
"
|
|
63
|
-
"
|
|
58
|
+
"@eslint/js": "^9.39.2",
|
|
59
|
+
"eslint": "9.39.2",
|
|
60
|
+
"eslint-config-prettier": "10.1.8",
|
|
61
|
+
"globals": "17.0.0",
|
|
62
|
+
"mocha": "11.3.0",
|
|
63
|
+
"nan": "2.24.0",
|
|
64
|
+
"node-addon-api": "8.5.0",
|
|
65
|
+
"prettier": "3.8.1"
|
|
64
66
|
},
|
|
65
67
|
"scripts": {
|
|
66
68
|
"test": "mocha tests",
|