@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 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($args[0]); try {$z.Entries.FullName} finally {$z.Dispose()}';
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 = 'Expand-Archive -LiteralPath $args[0] -DestinationPath $args[1] -Force';
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adrouter/agent",
3
- "version": "0.1.0-beta.4",
3
+ "version": "0.1.0-beta.5",
4
4
  "description": "Verified installer and launcher for the AdRouter Agent desktop application.",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "schema": 3,
3
3
  "distributionMode": "credential-free-portable",
4
- "releaseVersion": "0.1.0-beta.4",
5
- "releaseTag": "v0.1.0-beta.4",
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": "10004",
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.4-darwin-universal.zip",
22
- "assetUrl": "https://github.com/adrouter/adrouterAgent/releases/download/v0.1.0-beta.4/AdRouter-Agent-0.1.0-beta.4-darwin-universal.zip",
23
- "sha256": "8ef05bc2098f4ac9c8ecff943ee64e0e76389c5e69e3a2fd165a42edad7df48d"
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.4-linux-x64.zip",
35
- "assetUrl": "https://github.com/adrouter/adrouterAgent/releases/download/v0.1.0-beta.4/AdRouter-Agent-0.1.0-beta.4-linux-x64.zip",
36
- "sha256": "85b81bab36458938f74afd2d0de30150cbd1bd7c5e92f20f6cc65cb1d36e2346"
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.4-win32-x64.zip",
48
- "assetUrl": "https://github.com/adrouter/adrouterAgent/releases/download/v0.1.0-beta.4/AdRouter-Agent-0.1.0-beta.4-win32-x64.zip",
49
- "sha256": "f5cefd74b561511642832aa9e17b00a2dc3034bbb00467b09aaeca0818e4c443"
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
  }