diff options
| author | TitanSnow <[email protected]> | 2017-04-19 13:03:40 +0800 |
|---|---|---|
| committer | TitanSnow <[email protected]> | 2017-04-19 13:03:40 +0800 |
| commit | 92ab2a45cb137ea0d904d9d4ba204714f4296b90 (patch) | |
| tree | cad1cbab0c3770ecb5ca01230c1b02ce468bb749 /scripts | |
| parent | 11c5bbc8834916441d1c3ceb18dadcb01004b931 (diff) | |
add get.ps1
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/get.ps1 | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/scripts/get.ps1 b/scripts/get.ps1 new file mode 100644 index 000000000..ea496f91a --- /dev/null +++ b/scripts/get.ps1 @@ -0,0 +1,12 @@ +# xmake getter +# usage: (in powershell) +# Invoke-Webrequest <my location> -OutFile get.ps1 +# . .\get.ps1 + +$ver='v2.1.3' +Invoke-Webrequest "https://github.com/tboox/xmake/releases/download/$ver/xmake-$ver.exe" -OutFile "$pid-xmake-installer.exe" +$pid-xmake-installer.exe /S /D=C:\xmake +Remove-Item "$pid-xmake-installer.exe" +$env:Path+=";C:\xmake" +[Environment]::SetEnvironmentVariable("Path",$env:Path,[System.EnvironmentVariableTarget]::User) +xmake --version |
