mirror of
https://gitlab.com/vyla-entertainment/home.git
synced 2026-11-20 00:57:22 -05:00
Fix Mac tar extraction argument parsing
This commit is contained in:
@@ -293,9 +293,14 @@ function ensureBundledNode() {
|
|||||||
|
|
||||||
download(nodeUrl, tarPath, () => {
|
download(nodeUrl, tarPath, () => {
|
||||||
try {
|
try {
|
||||||
execSync(`tar -xzf node.tar.gz ${tarName}/bin/node --strip-components=2`, { cwd: binDir });
|
execSync(`tar -xzf node.tar.gz ${tarName}/bin/node`, { cwd: binDir });
|
||||||
|
|
||||||
|
fs.renameSync(path.join(binDir, tarName, 'bin', 'node'), path.join(binDir, 'node'));
|
||||||
|
fs.rmSync(path.join(binDir, tarName), { recursive: true, force: true });
|
||||||
fs.unlinkSync(tarPath);
|
fs.unlinkSync(tarPath);
|
||||||
|
|
||||||
execSync(`chmod +x node`, { cwd: binDir });
|
execSync(`chmod +x node`, { cwd: binDir });
|
||||||
|
|
||||||
fs.writeFileSync(versionMarker, nodeVersion, 'utf8');
|
fs.writeFileSync(versionMarker, nodeVersion, 'utf8');
|
||||||
resolve();
|
resolve();
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
|||||||
Reference in New Issue
Block a user