@oalacea/shadow-secret 0.2.1 → 0.3.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/bin/binary-windows.zip +1 -0
- package/bin/shadow-secret +0 -0
- package/bin/shadow-secret-arm64 +0 -0
- package/bin/shadow-secret-x64 +0 -0
- package/bin/shadow-secret.exe +0 -0
- package/lib/bridge.js +19 -7
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"message":"Not Found","documentation_url":"https://docs.github.com/rest/actions/artifacts#download-an-artifact","status":"404"}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/lib/bridge.js
CHANGED
|
@@ -9,8 +9,9 @@
|
|
|
9
9
|
*
|
|
10
10
|
* Platform support:
|
|
11
11
|
* - Windows (x64): shadow-secret.exe
|
|
12
|
-
* - Linux (x64): shadow-secret
|
|
13
|
-
* - macOS (x64
|
|
12
|
+
* - Linux (x64): shadow-secret
|
|
13
|
+
* - macOS (x64): shadow-secret-x64
|
|
14
|
+
* - macOS (ARM64): shadow-secret-arm64
|
|
14
15
|
*/
|
|
15
16
|
|
|
16
17
|
const { spawn } = require('child_process');
|
|
@@ -19,12 +20,23 @@ const fs = require('fs');
|
|
|
19
20
|
|
|
20
21
|
// Platform detection
|
|
21
22
|
const platform = process.platform;
|
|
22
|
-
const
|
|
23
|
+
const arch = process.arch;
|
|
23
24
|
|
|
24
|
-
//
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
25
|
+
// Determine binary name based on platform and architecture
|
|
26
|
+
let binaryName;
|
|
27
|
+
if (platform === 'win32') {
|
|
28
|
+
binaryName = 'shadow-secret.exe';
|
|
29
|
+
} else if (platform === 'darwin') {
|
|
30
|
+
// macOS: Choose binary based on architecture
|
|
31
|
+
if (arch === 'arm64') {
|
|
32
|
+
binaryName = 'shadow-secret-arm64';
|
|
33
|
+
} else {
|
|
34
|
+
binaryName = 'shadow-secret-x64';
|
|
35
|
+
}
|
|
36
|
+
} else {
|
|
37
|
+
// Linux and others
|
|
38
|
+
binaryName = 'shadow-secret';
|
|
39
|
+
}
|
|
28
40
|
|
|
29
41
|
// Resolve binary path relative to this script
|
|
30
42
|
const binDir = path.resolve(__dirname, '..', 'bin');
|