sap-adt-cli 1.5.2 → 1.5.3
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 +6 -0
- package/package.json +1 -1
- package/runtime-manifest.json +15 -4
- package/scripts/install.js +2 -1
package/README.md
CHANGED
|
@@ -9,6 +9,12 @@ if Node.js is not an option, use the desktop installer / portable archive
|
|
|
9
9
|
from the [repository releases](https://github.com/shrek-abaper/sap-engineering-skill)
|
|
10
10
|
instead.
|
|
11
11
|
|
|
12
|
+
Linux x86_64 and Windows x86_64 runtimes are provided. Windows support
|
|
13
|
+
starts with package 1.5.3 and also requires `tar.exe` (included in current
|
|
14
|
+
Windows 10/11). macOS has no self-contained runtime yet; use the Python
|
|
15
|
+
package there. Upgrading an older Windows launcher requires reinstalling
|
|
16
|
+
the npm package before running `sap-adt install` again.
|
|
17
|
+
|
|
12
18
|
## Install the runtime (once)
|
|
13
19
|
|
|
14
20
|
The package is named `sap-adt-cli`; its bin is **`sap-adt`**.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sap-adt-cli",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.3",
|
|
4
4
|
"description": "Installer and launcher for the self-contained sap-adt CLI (SAP ADT REST API). No Python required; Node.js >=18 needed for this npm channel only.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": {
|
package/runtime-manifest.json
CHANGED
|
@@ -1,12 +1,23 @@
|
|
|
1
1
|
{
|
|
2
|
-
"cli_version": "1.5.
|
|
2
|
+
"cli_version": "1.5.3",
|
|
3
3
|
"release_state": "published",
|
|
4
4
|
"artifacts": {
|
|
5
5
|
"linux-x86_64": {
|
|
6
|
-
"url": "https://github.com/shrek-abaper/sap-engineering-skill/releases/download/sap-adt-v1.5.
|
|
7
|
-
"sha256": "
|
|
6
|
+
"url": "https://github.com/shrek-abaper/sap-engineering-skill/releases/download/sap-adt-v1.5.3/sap-adt-1.5.3-linux-x86_64.tar.gz",
|
|
7
|
+
"sha256": "19d13fc0512265b2612bb8b01d3a45592e6eecfbdeb108ba4ddb1679cf27476d",
|
|
8
8
|
"format": "tar.gz",
|
|
9
|
-
"size_bytes":
|
|
9
|
+
"size_bytes": 16557337,
|
|
10
|
+
"allowed_redirect_hosts": [
|
|
11
|
+
"github.com",
|
|
12
|
+
"release-assets.githubusercontent.com",
|
|
13
|
+
"objects.githubusercontent.com"
|
|
14
|
+
]
|
|
15
|
+
},
|
|
16
|
+
"windows-x86_64": {
|
|
17
|
+
"url": "https://github.com/shrek-abaper/sap-engineering-skill/releases/download/sap-adt-v1.5.3/sap-adt-1.5.3-windows-x86_64.zip",
|
|
18
|
+
"sha256": "5989c1d65a4c202e925c48ad825b8350caf4440b9aca6706df31eb3c6984b152",
|
|
19
|
+
"format": "zip",
|
|
20
|
+
"size_bytes": 15569808,
|
|
10
21
|
"allowed_redirect_hosts": [
|
|
11
22
|
"github.com",
|
|
12
23
|
"release-assets.githubusercontent.com",
|
package/scripts/install.js
CHANGED
|
@@ -32,6 +32,7 @@ const path = require("node:path");
|
|
|
32
32
|
const tls = require("node:tls");
|
|
33
33
|
const { Transform } = require("node:stream");
|
|
34
34
|
const { pipeline } = require("node:stream/promises");
|
|
35
|
+
const { fileURLToPath } = require("node:url");
|
|
35
36
|
|
|
36
37
|
const PKG_DIR = path.resolve(__dirname, "..");
|
|
37
38
|
const MAX_REDIRECTS = 3;
|
|
@@ -255,7 +256,7 @@ function download(url, allowedHosts, dest, redirectsLeft) {
|
|
|
255
256
|
return reject(new Error(
|
|
256
257
|
"file:// artifacts are refused (test-only; set SAP_ADT_INSTALL_ALLOW_FILE=1 to allow)"));
|
|
257
258
|
}
|
|
258
|
-
return fs.promises.copyFile(
|
|
259
|
+
return fs.promises.copyFile(fileURLToPath(parsed), dest)
|
|
259
260
|
.then(resolve, reject);
|
|
260
261
|
}
|
|
261
262
|
if (parsed.protocol !== "https:") {
|