sandboxbox 2.0.2 → 2.0.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/cli.js
CHANGED
@@ -69,6 +69,7 @@ function showHelp() {
|
|
69
69
|
function getPodmanPath() {
|
70
70
|
// Check for bundled podman first
|
71
71
|
const platform = process.platform;
|
72
|
+
const arch = process.arch === 'arm64' ? 'arm64' : 'amd64';
|
72
73
|
let bundledPodman;
|
73
74
|
|
74
75
|
if (platform === 'win32') {
|
@@ -76,7 +77,7 @@ function getPodmanPath() {
|
|
76
77
|
} else if (platform === 'darwin') {
|
77
78
|
bundledPodman = resolve(__dirname, 'bin', 'podman');
|
78
79
|
} else {
|
79
|
-
bundledPodman = resolve(__dirname, 'bin',
|
80
|
+
bundledPodman = resolve(__dirname, 'bin', `podman-remote-static-linux_${arch}`);
|
80
81
|
}
|
81
82
|
|
82
83
|
if (existsSync(bundledPodman)) {
|
package/package.json
CHANGED
@@ -19,6 +19,9 @@ const binDir = join(__dirname, '..', 'bin');
|
|
19
19
|
// Podman remote client versions
|
20
20
|
const PODMAN_VERSION = '4.9.3';
|
21
21
|
|
22
|
+
// Get architecture
|
23
|
+
const ARCH = process.arch === 'arm64' ? 'arm64' : 'amd64';
|
24
|
+
|
22
25
|
const DOWNLOADS = {
|
23
26
|
win32: {
|
24
27
|
url: `https://github.com/containers/podman/releases/download/v${PODMAN_VERSION}/podman-remote-release-windows_amd64.zip`,
|
@@ -26,13 +29,13 @@ const DOWNLOADS = {
|
|
26
29
|
extract: 'unzip'
|
27
30
|
},
|
28
31
|
darwin: {
|
29
|
-
url: `https://github.com/containers/podman/releases/download/v${PODMAN_VERSION}/podman-remote-release-
|
32
|
+
url: `https://github.com/containers/podman/releases/download/v${PODMAN_VERSION}/podman-remote-release-darwin_${ARCH}.tar.gz`,
|
30
33
|
binary: 'podman',
|
31
34
|
extract: 'tar'
|
32
35
|
},
|
33
36
|
linux: {
|
34
|
-
url: `https://github.com/containers/podman/releases/download/v${PODMAN_VERSION}/podman-remote-static-
|
35
|
-
binary:
|
37
|
+
url: `https://github.com/containers/podman/releases/download/v${PODMAN_VERSION}/podman-remote-static-linux_${ARCH}.tar.gz`,
|
38
|
+
binary: `podman-remote-static-linux_${ARCH}`,
|
36
39
|
extract: 'tar'
|
37
40
|
}
|
38
41
|
};
|
Binary file
|