summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOpportunityLiu <[email protected]>2019-06-06 18:51:11 +0800
committerOpportunityLiu <[email protected]>2019-06-06 18:51:11 +0800
commitf564e7dbd980ece14d7e2e15f4499d8c1b7db858 (patch)
treeaa554a8fdc74fd93a8e494422e4f91a83743b5ca
parenta1b6a1e11a7b0dacbe718b78e80c92107e43203b (diff)
fix
-rw-r--r--.appveyor.yml6
-rw-r--r--scripts/get.ps18
2 files changed, 10 insertions, 4 deletions
diff --git a/.appveyor.yml b/.appveyor.yml
index c410b84c8..fdcf4db94 100644
--- a/.appveyor.yml
+++ b/.appveyor.yml
@@ -10,7 +10,7 @@ platform:
install:
- ps: |
- ./scripts/get.ps1 "dev"
+ ./scripts/get.ps1 -branch $env:APPVEYOR_REPO_BRANCH
build_script:
- ps: |
@@ -24,7 +24,9 @@ build_script:
after_build:
- ps: |
Copy-Item .\core\build\xmake.exe .\xmake
- Push-AppveyorArtifact .\xmake -FileName xmake.zip -DeploymentName "xmake-$($env:PLATFORM)"
+ Copy-Item .\*.md .\xmake
+ Compress-Archive -Path .\xmake -DestinationPath .\archive.zip
+ Push-AppveyorArtifact .\archive.zip -FileName xmake.zip -DeploymentName "xmake-$($env:PLATFORM)"
test_script:
- ps: |
diff --git a/scripts/get.ps1 b/scripts/get.ps1
index 9b500d44c..769585ebd 100644
--- a/scripts/get.ps1
+++ b/scripts/get.ps1
@@ -5,9 +5,13 @@
param (
[string]$branch = "master",
[string]$version = "v2.2.6",
- [string]$installdir = $(Join-Path $env:HOME 'xmake')
+ [string]$installdir = $(Join-Path $(if($env:HOME) { $env:HOME } else { "C:\" }) 'xmake')
)
+echo $branch
+echo $version
+echo $installdir
+
function myExit($code) {
if ($code -is [int] -and $code -ne 0) {
throw $Error[0]
@@ -191,6 +195,6 @@ if (-not $env:CI) {
} catch { } # continue
registerTabCompletion
} else {
- Write-Host "Self bulid and tab completion registration has been skipped"
+ Write-Host "Self bulid and tab completion registration has been skipped for CI"
}