anymous 1.3.1 → 1.3.2
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/anymous.js +31 -0
- package/package.json +14 -14
- package/bin/anymous.exe +0 -7
package/bin/anymous.js
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
import { spawnSync } from "child_process"
|
|
4
|
+
import fs from "fs"
|
|
5
|
+
import path from "path"
|
|
6
|
+
import { fileURLToPath } from "url"
|
|
7
|
+
|
|
8
|
+
const __dirname = path.dirname(fileURLToPath(import.meta.url))
|
|
9
|
+
const binaryPath = path.join(__dirname, "anymous.exe")
|
|
10
|
+
|
|
11
|
+
if (!fs.existsSync(binaryPath)) {
|
|
12
|
+
console.error(
|
|
13
|
+
"Error: anymous binary not found at",
|
|
14
|
+
binaryPath,
|
|
15
|
+
"\n\nThis occurs when using --ignore-scripts during installation, or when using a",
|
|
16
|
+
"\npackage manager like pnpm that does not run postinstall scripts by default.",
|
|
17
|
+
)
|
|
18
|
+
process.exit(1)
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
const result = spawnSync(binaryPath, process.argv.slice(2), {
|
|
22
|
+
stdio: "inherit",
|
|
23
|
+
windowsHide: true,
|
|
24
|
+
})
|
|
25
|
+
|
|
26
|
+
if (result.error) {
|
|
27
|
+
console.error("Error: failed to run anymous:", result.error.message)
|
|
28
|
+
process.exit(1)
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
process.exit(result.status ?? 0)
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "anymous",
|
|
3
3
|
"bin": {
|
|
4
|
-
"anymous": "./bin/anymous.
|
|
4
|
+
"anymous": "./bin/anymous.js"
|
|
5
5
|
},
|
|
6
6
|
"scripts": {
|
|
7
7
|
"postinstall": "node ./postinstall.mjs"
|
|
8
8
|
},
|
|
9
|
-
"version": "1.3.
|
|
9
|
+
"version": "1.3.2",
|
|
10
10
|
"description": "AI-powered reverse engineering platform",
|
|
11
11
|
"license": "MIT",
|
|
12
12
|
"homepage": "https://github.com/anymousdark/anymous",
|
|
@@ -24,17 +24,17 @@
|
|
|
24
24
|
"x64"
|
|
25
25
|
],
|
|
26
26
|
"optionalDependencies": {
|
|
27
|
-
"anymous-linux-arm64-musl": "1.3.
|
|
28
|
-
"anymous-linux-x64": "1.3.
|
|
29
|
-
"anymous-darwin-x64-baseline": "1.3.
|
|
30
|
-
"anymous-windows-arm64": "1.3.
|
|
31
|
-
"anymous-linux-arm64": "1.3.
|
|
32
|
-
"anymous-darwin-arm64": "1.3.
|
|
33
|
-
"anymous-windows-x64-baseline": "1.3.
|
|
34
|
-
"anymous-linux-x64-baseline-musl": "1.3.
|
|
35
|
-
"anymous-linux-x64-baseline": "1.3.
|
|
36
|
-
"anymous-windows-x64": "1.3.
|
|
37
|
-
"anymous-darwin-x64": "1.3.
|
|
38
|
-
"anymous-linux-x64-musl": "1.3.
|
|
27
|
+
"anymous-linux-arm64-musl": "1.3.2",
|
|
28
|
+
"anymous-linux-x64": "1.3.2",
|
|
29
|
+
"anymous-darwin-x64-baseline": "1.3.2",
|
|
30
|
+
"anymous-windows-arm64": "1.3.2",
|
|
31
|
+
"anymous-linux-arm64": "1.3.2",
|
|
32
|
+
"anymous-darwin-arm64": "1.3.2",
|
|
33
|
+
"anymous-windows-x64-baseline": "1.3.2",
|
|
34
|
+
"anymous-linux-x64-baseline-musl": "1.3.2",
|
|
35
|
+
"anymous-linux-x64-baseline": "1.3.2",
|
|
36
|
+
"anymous-windows-x64": "1.3.2",
|
|
37
|
+
"anymous-darwin-x64": "1.3.2",
|
|
38
|
+
"anymous-linux-x64-musl": "1.3.2"
|
|
39
39
|
}
|
|
40
40
|
}
|
package/bin/anymous.exe
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env bash
|
|
2
|
-
echo "Error: anymous's postinstall script was not run." >&2
|
|
3
|
-
echo "" >&2
|
|
4
|
-
echo "This occurs when using --ignore-scripts during installation, or when using a" >&2
|
|
5
|
-
echo "package manager like pnpm that does not run postinstall scripts by default." >&2
|
|
6
|
-
echo "" >&2
|
|
7
|
-
exit 1
|