deadbranch 0.1.2 → 0.1.3
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/README.md +1 -1
- package/package.json +1 -1
- package/scripts/install.js +4 -4
package/README.md
CHANGED
package/package.json
CHANGED
package/scripts/install.js
CHANGED
|
@@ -80,11 +80,11 @@ function download(url) {
|
|
|
80
80
|
*/
|
|
81
81
|
function extractTarGz(buffer, destDir) {
|
|
82
82
|
const tarPath = path.join(os.tmpdir(), 'deadbranch.tar');
|
|
83
|
-
|
|
83
|
+
|
|
84
84
|
// Decompress gzip
|
|
85
85
|
const decompressed = zlib.gunzipSync(buffer);
|
|
86
86
|
fs.writeFileSync(tarPath, decompressed);
|
|
87
|
-
|
|
87
|
+
|
|
88
88
|
// Extract tar
|
|
89
89
|
execSync(`tar -xf "${tarPath}" -C "${destDir}"`, { stdio: 'inherit' });
|
|
90
90
|
fs.unlinkSync(tarPath);
|
|
@@ -96,7 +96,7 @@ function extractTarGz(buffer, destDir) {
|
|
|
96
96
|
function extractZip(buffer, destDir) {
|
|
97
97
|
const zipPath = path.join(os.tmpdir(), 'deadbranch.zip');
|
|
98
98
|
fs.writeFileSync(zipPath, buffer);
|
|
99
|
-
|
|
99
|
+
|
|
100
100
|
// Use PowerShell to extract
|
|
101
101
|
execSync(`powershell -Command "Expand-Archive -Path '${zipPath}' -DestinationPath '${destDir}' -Force"`, { stdio: 'inherit' });
|
|
102
102
|
fs.unlinkSync(zipPath);
|
|
@@ -135,7 +135,7 @@ async function install() {
|
|
|
135
135
|
const destBinary = path.join(binDir, BINARY_NAME + binaryExt);
|
|
136
136
|
|
|
137
137
|
fs.copyFileSync(srcBinary, destBinary);
|
|
138
|
-
|
|
138
|
+
|
|
139
139
|
// Make executable on Unix
|
|
140
140
|
if (os.platform() !== 'win32') {
|
|
141
141
|
fs.chmodSync(destBinary, 0o755);
|