@eggplanty/mycli 0.1.19 → 0.1.20

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": "@eggplanty/mycli",
3
- "version": "0.1.19",
3
+ "version": "0.1.20",
4
4
  "description": "A simple CLI demo built with Go",
5
5
  "bin": {
6
6
  "mycli": "scripts/run.js"
@@ -84,9 +84,7 @@ async function install() {
84
84
  }
85
85
 
86
86
  const binaryName = NAME + (isWindows ? ".exe" : "");
87
- // GoReleaser extracts into a subdirectory matching the archive name (without extension)
88
- const baseName = archiveName.replace(/\.(tar\.gz|zip)$/, "");
89
- const extractedBinary = path.join(tmpDir, baseName, binaryName);
87
+ const extractedBinary = path.join(tmpDir, binaryName);
90
88
 
91
89
  fs.copyFileSync(extractedBinary, dest);
92
90
  fs.chmodSync(dest, 0o755);