summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOpportunityLiu <[email protected]>2019-06-08 14:45:37 +0800
committerOpportunityLiu <[email protected]>2019-06-08 14:45:37 +0800
commit51f194fcff8fb7ddaaf85f152e4722ca4f55af3a (patch)
tree6de3ff092a51e5b73087b4a41420c2797b830153
parent904616dd0b27c6769696bad066fe71182cb72cd3 (diff)
UseBasicParsing
-rw-r--r--.appveyor.yml19
1 files changed, 9 insertions, 10 deletions
diff --git a/.appveyor.yml b/.appveyor.yml
index bd8b17d1a..52f4ad303 100644
--- a/.appveyor.yml
+++ b/.appveyor.yml
@@ -17,11 +17,11 @@ install:
- ps: Expand-Archive ./nsis.zip -DestinationPath ./nsis
- ps: Move-Item ./nsis/*/* ./nsis
# unzip
- - ps: Invoke-WebRequest "https://svwh.dl.sourceforge.net/project/gnuwin32/unzip/5.51-1/unzip-5.51-1-bin.zip" -OutFile .\unzip.zip
+ - ps: Invoke-WebRequest "https://svwh.dl.sourceforge.net/project/gnuwin32/unzip/5.51-1/unzip-5.51-1-bin.zip" -UseBasicParsing -OutFile .\unzip.zip
- ps: Expand-Archive ./unzip.zip -DestinationPath ./unzip
- ps: Copy-Item ./unzip/bin/unzip.exe ./winenv/bin
# curl
- - ps: Invoke-WebRequest "https://curl.haxx.se/windows/dl-7.65.1/curl-7.65.1-win$(if ($env:platform -eq 'x64') { '64' } else { '32' })-mingw.zip" -OutFile .\curl.zip
+ - ps: Invoke-WebRequest "https://curl.haxx.se/windows/dl-7.65.1/curl-7.65.1-win$(if ($env:platform -eq 'x64') { '64' } else { '32' })-mingw.zip" -UseBasicParsing -OutFile .\curl.zip
- ps: Expand-Archive ./curl.zip -DestinationPath ./curl
- ps: Move-Item ./curl/*/* ./curl
- ps: Copy-Item ./curl/bin/curl.exe ./winenv/bin
@@ -51,14 +51,13 @@ after_build:
# compose & publish installer
- ps: Copy-Item C:\winenv\ . -Recurse
- ps: $version = (Get-Command xmake).FileVersionInfo
- - ps: >
- C:\nsis\makensis.exe
- /DMAJOR=$($version.ProductMajorPart)
- /DMINOR=$($version.ProductMinorPart)
- /DALTER=$($version.ProductBuildPart)
- /DBUILD=$($($version.ProductVersion -split "\+")[1])
- /D$($env:platform)
- .\scripts\installer.nsi
+ - ps: C:\nsis\makensis.exe
+ /DMAJOR=$($version.ProductMajorPart)
+ /DMINOR=$($version.ProductMinorPart)
+ /DALTER=$($version.ProductBuildPart)
+ /DBUILD=$($($version.ProductVersion -split '\+')[1])
+ /D$($env:platform)
+ .\scripts\installer.nsi
- ps: Push-AppveyorArtifact .\scripts\xmake.exe -FileName xmake-installer.exe -DeploymentName "xmake-installer"
# publish zip archive
- ps: Copy-Item .\*.md .\xmake