feishu-cli from github

feishu-cli: https://github.com/riba2534/feishu-cli config:备用:Windows PowerShell 快速安装/更新脚本

$dir = "$env:USERPROFILE\.local\bin"
if (!(Test-Path $dir)) { New-Item -ItemType Directory -Path $dir -Force }
$url = "https://github.com/riba2534/feishu-cli/releases/download/v1.38.3/feishu-cli_v1.38.3_windows-amd64.tar.gz"
$tmpFile = "$env:TEMP\feishu-cli.tar.gz"
Invoke-WebRequest -Uri $url -OutFile $tmpFile
tar -xzf $tmpFile -C $env:TEMP
Move-Item -Force "$env:TEMP\feishu-cli_v1.38.3_windows-amd64\feishu-cli.exe" "$dir\feishu-cli.exe"
Remove-Item -Recurse -Force $tmpFile, "$env:TEMP\feishu-cli_v1.38.3_windows-amd64" -ErrorAction SilentlyContinue