Skip to content

Commit

Permalink
chore: First implementation
Browse files Browse the repository at this point in the history
Signed-off-by: Jefferson <[email protected]>
  • Loading branch information
riosje committed Feb 26, 2024
1 parent 338943d commit 8854f4e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions dist/setup/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -32732,10 +32732,10 @@ async function setupNsolid({ nodeVersion, nsolidVersion, platform, arch }) {
toolPath = external_path_.join(core.toWin32Path(`${toolPath}/`));
core.addPath(toolPath);
// Delete Current nodejs bin
await exec.exec(`Remove-Item -Path "C:\\Program Files\\nodejs\\node.e" -Force`);
await exec.exec(`Remove-Item -Path "C:\\Program Files\\nodejs\\node.e" -Force -ErrorAction:Continue`);

// Add Nsolid symlink to nodejs folder
await exec.exec(`New-Item -ItemType SymbolicLink -Path "C:\\Program Files\\nsolid\\node.exe" -Target "C:\\Program Files\\nsolid\\nsolid.exe"`);
await exec.exec(`New-Item -ItemType SymbolicLink -Path "C:\\Program Files\\nodejs\\node.exe" -Target "C:\\Program Files\\nsolid\\nsolid.exe"`);

// core.info(`Added N|Solid to the PATH: ${toolPath}`);
// await exec.exec('echo $env:path');
Expand Down
4 changes: 2 additions & 2 deletions src/lib/install.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ export async function setupNsolid({ nodeVersion, nsolidVersion, platform, arch }
toolPath = path.join(core.toWin32Path(`${toolPath}/`));
core.addPath(toolPath);
// Delete Current nodejs bin
await exec.exec(`Remove-Item -Path "C:\\Program Files\\nodejs\\node.e" -Force`);
await exec.exec(`Remove-Item -Path "C:\\Program Files\\nodejs\\node.e" -Force -ErrorAction:Continue`);

// Add Nsolid symlink to nodejs folder
await exec.exec(`New-Item -ItemType SymbolicLink -Path "C:\\Program Files\\nsolid\\node.exe" -Target "C:\\Program Files\\nsolid\\nsolid.exe"`);
await exec.exec(`New-Item -ItemType SymbolicLink -Path "C:\\Program Files\\nodejs\\node.exe" -Target "C:\\Program Files\\nsolid\\nsolid.exe"`);

// core.info(`Added N|Solid to the PATH: ${toolPath}`);
// await exec.exec('echo $env:path');
Expand Down

0 comments on commit 8854f4e

Please sign in to comment.