@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.
@@ -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 (TODO: Add via CI/CD)
13
- * - macOS (x64/ARM64): shadow-secret (TODO: Add via CI/CD)
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 isWindows = platform === 'win32';
23
+ const arch = process.arch;
23
24
 
24
- // Binary name based on platform
25
- // Note: For now, only Windows binary is included
26
- // Linux and macOS will be added in future releases via CI/CD
27
- const binaryName = isWindows ? 'shadow-secret.exe' : 'shadow-secret';
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');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oalacea/shadow-secret",
3
- "version": "0.2.1",
3
+ "version": "0.3.4",
4
4
  "description": "Secure secret management for modern development workflows",
5
5
  "bin": {
6
6
  "shadow-secret": "lib/bridge.js"