Skip to content

Commit

Permalink
feat: use script to install dotnet-sdk, close #15
Browse files Browse the repository at this point in the history
  • Loading branch information
leoli0605 committed May 9, 2024
1 parent 863b88e commit 964cfd8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packageData.json
Original file line number Diff line number Diff line change
Expand Up @@ -300,9 +300,9 @@
"dotnet-sdk": {
"description": "",
"install": {
"linux": "sudo apt install dotnet-sdk -y",
"mac": "brew install --cask dotnet-sdk",
"windows": "choco install dotnet-sdk -y"
"linux": "curl -sSL https://dotnet.microsoft.com/download/dotnet/scripts/v1/dotnet-install.sh | bash && echo -e '\nexport PATH=\"$HOME/.dotnet:$PATH\"' >> ~/.bashrc && source ~/.bashrc",
"mac": "curl -sSL https://dotnet.microsoft.com/download/dotnet/scripts/v1/dotnet-install.sh | bash && echo -e '\nexport PATH=\"$HOME/.dotnet:$PATH\"' >> ~/.bashrc && source ~/.bashrc",
"windows": "Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass ; Invoke-Expression ((New-Object System.Net.WebClient).DownloadString('https://dotnet.microsoft.com/download/dotnet/scripts/v1/dotnet-install.ps1'))"
},
"type": "enable"
},
Expand Down

0 comments on commit 964cfd8

Please sign in to comment.