diff options
| author | ruki <[email protected]> | 2021-09-24 16:00:47 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-09-24 16:00:47 +0800 |
| commit | 413dfb47ea08bb19b91a96cd7ce44249821e8c6a (patch) | |
| tree | 5b9fa0e86a4eeede2e5884c9b643524ed039383f /scripts | |
| parent | 1c3f72be90e527db15044d2677647507341eaf91 (diff) | |
update get.ps1 and remove appveyor
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/get.ps1 | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/scripts/get.ps1 b/scripts/get.ps1 index 8cb27a888..a8834718d 100755 --- a/scripts/get.ps1 +++ b/scripts/get.ps1 @@ -11,6 +11,7 @@ param ( ) & { + $LastRelease = "v2.5.7" $ErrorActionPreference = 'Stop' function writeErrorTip($msg) { @@ -30,9 +31,9 @@ param ( } if ($IsLinux -or $IsMacOS) { - writeErrorTip 'Install on *nix is not supported, try ' + writeErrorTip 'Install on *nix is not supported, try ' writeErrorTip '(Use curl) "bash <(curl -fsSL https://raw.githubusercontent.com/xmake-io/xmake/master/scripts/get.sh)"' - writeErrorTip 'or' + writeErrorTip 'or' writeErrorTip '(Use wget) "bash <(wget https://raw.githubusercontent.com/xmake-io/xmake/master/scripts/get.sh -O -)"' throw 'Unsupported platform' } @@ -90,7 +91,7 @@ param ( $url = if ($v -is [version]) { "https://github.com/xmake-io/xmake/releases/download/v$v/xmake-v$v.$winarch.exe" } else { - "https://ci.appveyor.com/api/projects/waruqi/xmake/artifacts/xmake-installer.exe?branch=$v&pr=false&job=Image%3A+Visual+Studio+2017%3B+Platform%3A+$arch" + "https://github.com/xmake-io/xmake/releases/download/$LastRelease/xmake-$v.$winarch.exe" } Write-Host "Start downloading $url .." try { @@ -145,9 +146,9 @@ param ( writeErrorTip "Please try again as administrator" return } - + if ($content) { - $content = [System.Text.RegularExpressions.Regex]::Replace($content, "\n*(# PowerShell parameter completion shim for xmake)?\s*Register-ArgumentCompleter -Native -CommandName xmake -ScriptBlock\s*{.+?\n}\s*", "`n", [System.Text.RegularExpressions.RegexOptions]::Singleline) + $content = [System.Text.RegularExpressions.Regex]::Replace($content, "\n*(# PowerShell parameter completion shim for xmake)?\s*Register-ArgumentCompleter -Native -CommandName xmake -ScriptBlock\s*{.+?\n}\s*", "`n", [System.Text.RegularExpressions.RegexOptions]::Singleline) } try { $appendcontent = (Invoke-Webrequest 'https://xmake.io/assets/scripts/pscompletions.text' -UseBasicParsing).Content |
