Infisical / infisical

♾ Infisical is the open-source secret management platform: Sync secrets across your team/infrastructure, prevent secret leaks, and manage internal PKI
https://infisical.com
Other
15.77k stars 988 forks source link

fix: NPM-based CLI windows symlink #2744

Closed DanielHougaard closed 1 week ago

DanielHougaard commented 1 week ago

Description 📣

This PR fixes the NPM CLI installer for Windows. There was a smaller issue with the symlink creation, causing the infisical command to not be accessible across the system.

The primary issue was npm couldn't find a file called infisical to create the symlink for, because Windows downloads 3 files with .exe, .ps1, and .cmd extensions. The solution for this was to create an empty file that matches the unix binary file (infisical). See comment in code for further details

Type ✨

Tests 🛠️

# Here's some code block to paste some code snippets