Skip to content

Instantly share code, notes, and snippets.

@TheoOiry
Last active November 17, 2022 11:27
Show Gist options
  • Save TheoOiry/dae4ae378080dcc582b0a87c6fbd3bab to your computer and use it in GitHub Desktop.
Save TheoOiry/dae4ae378080dcc582b0a87c6fbd3bab to your computer and use it in GitHub Desktop.
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