sshifu 0.7.8-test.6 → 0.7.8-test.7

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sshifu",
3
- "version": "0.7.8-test.6",
3
+ "version": "0.7.8-test.7",
4
4
  "description": "SSH authentication system with short-lived certificates and OAuth authentication (GitHub organizations)",
5
5
  "main": "bin/sshifu.js",
6
6
  "bin": {
@@ -96,9 +96,17 @@ async function main() {
96
96
  const extractedPath = path.join(binDir, archiveBinName);
97
97
  if (isWindows) {
98
98
  try {
99
- execSync(`powershell -Command "Expand-Archive -Path '${archivePath.replace(/'/g, "''")}' -DestinationPath '${binDir.replace(/'/g, "''")}' -Force"`, { stdio: 'pipe' });
99
+ // Use PowerShell with explicit error action and output redirection
100
+ const psCommand = `Expand-Archive -Path '${archivePath.replace(/'/g, "''")}' -DestinationPath '${binDir.replace(/'/g, "''")}' -Force -ErrorAction Stop`;
101
+ console.log(`[sshifu] Running: ${psCommand}`);
102
+ execSync(`powershell -Command "${psCommand}"`, { stdio: ['ignore', 'pipe', 'pipe'] });
103
+ console.log(`[sshifu] Extraction completed, checking files...`);
104
+ const afterExtract = fs.readdirSync(binDir);
105
+ console.log(`[sshifu] Files after extraction: ${afterExtract.join(', ')}`);
100
106
  } catch (extractErr) {
101
107
  console.error(`[sshifu] Extraction failed: ${extractErr.message}`);
108
+ console.error(`[sshifu] stderr: ${extractErr.stderr?.toString() || 'N/A'}`);
109
+ console.error(`[sshifu] stdout: ${extractErr.stdout?.toString() || 'N/A'}`);
102
110
  throw extractErr;
103
111
  }
104
112
  } else {