@highflame/overwatch-v2-darwin-arm64 2.0.0-internal.0
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/bin/ramparts-aarch64-apple-darwin +0 -0
- package/index.js +39 -0
- package/package.json +34 -0
|
Binary file
|
package/index.js
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @highflame/overwatch-v2-darwin-arm64
|
|
3
|
+
* Platform-specific binaries for macOS ARM64 (Apple Silicon)
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
const path = require('path');
|
|
7
|
+
const fs = require('fs');
|
|
8
|
+
|
|
9
|
+
const PLATFORM = 'darwin';
|
|
10
|
+
const ARCH = 'arm64';
|
|
11
|
+
const RUST_TARGET = 'aarch64-apple-darwin';
|
|
12
|
+
|
|
13
|
+
function getRampartsBinaryPath() {
|
|
14
|
+
const binaryName = `ramparts-${RUST_TARGET}`;
|
|
15
|
+
const binaryPath = path.join(__dirname, 'bin', binaryName);
|
|
16
|
+
|
|
17
|
+
if (fs.existsSync(binaryPath)) {
|
|
18
|
+
return binaryPath;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
const genericPath = path.join(__dirname, 'bin', 'ramparts');
|
|
22
|
+
if (fs.existsSync(genericPath)) {
|
|
23
|
+
return genericPath;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
return null;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
function isCurrentPlatform() {
|
|
30
|
+
return process.platform === PLATFORM && process.arch === ARCH;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
module.exports = {
|
|
34
|
+
platform: PLATFORM,
|
|
35
|
+
arch: ARCH,
|
|
36
|
+
rustTarget: RUST_TARGET,
|
|
37
|
+
getRampartsBinaryPath,
|
|
38
|
+
isCurrentPlatform,
|
|
39
|
+
};
|
package/package.json
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@highflame/overwatch-v2-darwin-arm64",
|
|
3
|
+
"version": "2.0.0-internal.0",
|
|
4
|
+
"description": "Platform-specific binaries for @highflame/overwatch-v2 (macOS ARM64)",
|
|
5
|
+
"os": [
|
|
6
|
+
"darwin"
|
|
7
|
+
],
|
|
8
|
+
"cpu": [
|
|
9
|
+
"arm64"
|
|
10
|
+
],
|
|
11
|
+
"main": "index.js",
|
|
12
|
+
"files": [
|
|
13
|
+
"bin",
|
|
14
|
+
"index.js"
|
|
15
|
+
],
|
|
16
|
+
"homepage": "https://docs.highflame.ai/",
|
|
17
|
+
"keywords": [
|
|
18
|
+
"overwatch",
|
|
19
|
+
"overwatch-v2",
|
|
20
|
+
"security",
|
|
21
|
+
"macos",
|
|
22
|
+
"arm64",
|
|
23
|
+
"apple-silicon"
|
|
24
|
+
],
|
|
25
|
+
"author": "Highflame AI",
|
|
26
|
+
"license": "MIT",
|
|
27
|
+
"publishConfig": {
|
|
28
|
+
"access": "public",
|
|
29
|
+
"tag": "internal"
|
|
30
|
+
},
|
|
31
|
+
"engines": {
|
|
32
|
+
"node": ">=18.0.0"
|
|
33
|
+
}
|
|
34
|
+
}
|