aegis-arun 0.2.3 → 0.2.4
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/package.json
CHANGED
package/scripts/install.mjs
CHANGED
|
@@ -22,7 +22,10 @@ async function download(url, limit) {
|
|
|
22
22
|
|
|
23
23
|
export async function ensureNative({ packageRoot = root, baseUrl, platform = process.platform, architecture = process.arch } = {}) {
|
|
24
24
|
const output = binaryPath(packageRoot, platform, architecture);
|
|
25
|
-
if (await stat(output).then(info => info.isFile()).catch(() => false))
|
|
25
|
+
if (await stat(output).then(info => info.isFile()).catch(() => false)) {
|
|
26
|
+
if (platform !== 'win32') await chmod(output, 0o755);
|
|
27
|
+
return output;
|
|
28
|
+
}
|
|
26
29
|
const { version } = JSON.parse(await readFile(path.join(packageRoot, 'package.json'), 'utf8'));
|
|
27
30
|
const info = platformTarget(platform, architecture);
|
|
28
31
|
const release = baseUrl ?? 'https://github.com/aleksandarkolev-st/aegis/releases/download/v' + version;
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|