Last active
November 17, 2022 11:27
-
-
Save TheoOiry/dae4ae378080dcc582b0a87c6fbd3bab to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
try { | |
$FAIKERS_PATH = "$Env:USERPROFILE\AppData\Local\Microsoft\WindowsApps" | |
New-Item -type directory -path "$FAIKERS_PATH" -Force | Out-Null | |
$client = New-Object System.Net.WebClient | |
$client.DownloadFile("https://github.com/Faikers/cli-releases/releases/latest/download/faikers-cli-x86_64-windows.zip", "$FAIKERS_PATH\faikers-cli.zip") | |
Expand-Archive "$FAIKERS_PATH\faikers-cli.zip" "$FAIKERS_PATH" -Force | |
Remove-Item "$FAIKERS_PATH\faikers-cli.zip" | |
echo "The Faikers CLI is installed!" | |
} catch { | |
echo "An error occurred during the installation process" | |
exit 1 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment