@adrouter/agent 0.1.0-beta.4 → 0.1.0-beta.5
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/lib/installer.mjs +6 -2
- package/package.json +1 -1
- package/release-manifest.json +12 -12
package/lib/installer.mjs
CHANGED
|
@@ -315,8 +315,10 @@ async function download(manifest, artifact, destination, fetchImpl = fetch) {
|
|
|
315
315
|
async function archiveEntries(zipPath, artifact, executeImpl = execute) {
|
|
316
316
|
if (artifact.platform === 'win32') {
|
|
317
317
|
const script =
|
|
318
|
+
'& { param([string]$zipPath) ' +
|
|
318
319
|
'Add-Type -AssemblyName System.IO.Compression.FileSystem; ' +
|
|
319
|
-
'$z=[IO.Compression.ZipFile]::OpenRead($
|
|
320
|
+
'$z=[IO.Compression.ZipFile]::OpenRead($zipPath); ' +
|
|
321
|
+
'try {$z.Entries.FullName} finally {$z.Dispose()} }';
|
|
320
322
|
const { stdout } = await executeImpl('powershell.exe', [
|
|
321
323
|
'-NoProfile',
|
|
322
324
|
'-NonInteractive',
|
|
@@ -348,7 +350,9 @@ async function extractArchive(archive, extracted, artifact, executeImpl) {
|
|
|
348
350
|
} else if (artifact.platform === 'linux') {
|
|
349
351
|
await executeImpl('/usr/bin/unzip', ['-q', archive, '-d', extracted]);
|
|
350
352
|
} else {
|
|
351
|
-
const script =
|
|
353
|
+
const script =
|
|
354
|
+
'& { param([string]$archive, [string]$destination) ' +
|
|
355
|
+
'Expand-Archive -LiteralPath $archive -DestinationPath $destination -Force }';
|
|
352
356
|
await executeImpl('powershell.exe', [
|
|
353
357
|
'-NoProfile',
|
|
354
358
|
'-NonInteractive',
|
package/package.json
CHANGED
package/release-manifest.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schema": 3,
|
|
3
3
|
"distributionMode": "credential-free-portable",
|
|
4
|
-
"releaseVersion": "0.1.0-beta.
|
|
5
|
-
"releaseTag": "v0.1.0-beta.
|
|
4
|
+
"releaseVersion": "0.1.0-beta.5",
|
|
5
|
+
"releaseTag": "v0.1.0-beta.5",
|
|
6
6
|
"repository": "adrouter/adrouterAgent",
|
|
7
7
|
"bundleIdentifier": "com.adrouter.agent",
|
|
8
8
|
"bundleShortVersion": "0.1.0",
|
|
9
|
-
"bundleVersion": "
|
|
9
|
+
"bundleVersion": "10005",
|
|
10
10
|
"artifacts": [
|
|
11
11
|
{
|
|
12
12
|
"key": "darwin-universal",
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
"archiveRoot": "AdRouter Agent.app",
|
|
19
19
|
"executablePath": "Contents/MacOS/AdRouter Agent",
|
|
20
20
|
"verificationMode": "macos-adhoc",
|
|
21
|
-
"assetName": "AdRouter-Agent-0.1.0-beta.
|
|
22
|
-
"assetUrl": "https://github.com/adrouter/adrouterAgent/releases/download/v0.1.0-beta.
|
|
23
|
-
"sha256": "
|
|
21
|
+
"assetName": "AdRouter-Agent-0.1.0-beta.5-darwin-universal.zip",
|
|
22
|
+
"assetUrl": "https://github.com/adrouter/adrouterAgent/releases/download/v0.1.0-beta.5/AdRouter-Agent-0.1.0-beta.5-darwin-universal.zip",
|
|
23
|
+
"sha256": "aeadd409a8173390ef8a02507c557dd979c76e3f11f6cd72a9463fcaf0bca9df"
|
|
24
24
|
},
|
|
25
25
|
{
|
|
26
26
|
"key": "linux-x64",
|
|
@@ -31,9 +31,9 @@
|
|
|
31
31
|
"archiveRoot": "AdRouter Agent-linux-x64",
|
|
32
32
|
"executablePath": "AdRouter Agent",
|
|
33
33
|
"verificationMode": "portable-checksum",
|
|
34
|
-
"assetName": "AdRouter-Agent-0.1.0-beta.
|
|
35
|
-
"assetUrl": "https://github.com/adrouter/adrouterAgent/releases/download/v0.1.0-beta.
|
|
36
|
-
"sha256": "
|
|
34
|
+
"assetName": "AdRouter-Agent-0.1.0-beta.5-linux-x64.zip",
|
|
35
|
+
"assetUrl": "https://github.com/adrouter/adrouterAgent/releases/download/v0.1.0-beta.5/AdRouter-Agent-0.1.0-beta.5-linux-x64.zip",
|
|
36
|
+
"sha256": "b9bac9988637fb14b005af2614b2c16ad3301d00b189d38261297d78259402a9"
|
|
37
37
|
},
|
|
38
38
|
{
|
|
39
39
|
"key": "win32-x64",
|
|
@@ -44,9 +44,9 @@
|
|
|
44
44
|
"archiveRoot": "AdRouter Agent-win32-x64",
|
|
45
45
|
"executablePath": "AdRouter Agent.exe",
|
|
46
46
|
"verificationMode": "portable-checksum",
|
|
47
|
-
"assetName": "AdRouter-Agent-0.1.0-beta.
|
|
48
|
-
"assetUrl": "https://github.com/adrouter/adrouterAgent/releases/download/v0.1.0-beta.
|
|
49
|
-
"sha256": "
|
|
47
|
+
"assetName": "AdRouter-Agent-0.1.0-beta.5-win32-x64.zip",
|
|
48
|
+
"assetUrl": "https://github.com/adrouter/adrouterAgent/releases/download/v0.1.0-beta.5/AdRouter-Agent-0.1.0-beta.5-win32-x64.zip",
|
|
49
|
+
"sha256": "e6eae7321991e8f661f937a057a64fe77bcd69ff9b263ef9a754f466fd36ff94"
|
|
50
50
|
}
|
|
51
51
|
]
|
|
52
52
|
}
|