From f38741505acb528f609a8b269c911fc037a03fcc Mon Sep 17 00:00:00 2001 From: OpportunityLiu Date: Thu, 20 Jun 2019 21:58:22 +0800 Subject: fix --- .appveyor.yml | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/.appveyor.yml b/.appveyor.yml index a97775057..9841e52de 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -49,9 +49,7 @@ build_script: after_build: # publish exe - ps: Push-AppveyorArtifact .\core\build\xmake.exe -FileName xmake.exe -DeploymentName "xmake-executable" - - ps: $Utf8NoBomEncoding = New-Object System.Text.UTF8Encoding $False - - ps: |- - [IO.File]::AppendAllText("$PWD/shafile", (Get-FileHash .\core\build\xmake.exe -Algorithm SHA256).Hash.ToLower() + " *xmake.exe`n", $Utf8NoBomEncoding) + - ps: (Get-FileHash .\core\build\xmake.exe -Algorithm SHA256).Hash.ToLower() + " *xmake.exe`n" | Out-File ./shafile -Encoding ASCII -NoNewLine # compose & publish installer - ps: Copy-Item C:\winenv\ . -Recurse - ps: $version = (Get-Command xmake).FileVersionInfo @@ -63,8 +61,7 @@ after_build: /D$($env:platform) .\scripts\installer.nsi - ps: Push-AppveyorArtifact .\scripts\xmake.exe -FileName xmake-installer.exe -DeploymentName "xmake-installer" - - ps: |- - [IO.File]::AppendAllText("$PWD/shafile", (Get-FileHash .\scripts\xmake.exe -Algorithm SHA256).Hash.ToLower() + " *xmake-installer.exe`n", $Utf8NoBomEncoding) + - ps: (Get-FileHash .\scripts\xmake.exe -Algorithm SHA256).Hash.ToLower() + " *xmake-installer.exe`n" | Out-File ./shafile -Encoding ASCII -NoNewLine -Append # publish zip archive - ps: Copy-Item .\*.md .\xmake - ps: Copy-Item C:\winenv\ .\xmake -Recurse @@ -86,8 +83,7 @@ after_build: [System.IO.Compression.ZipFile]::CreateFromDirectory("$PWD\archive", "$PWD\archive.zip", [System.IO.Compression.CompressionLevel]::Optimal, $false, [FixedEncoder]::new()) - ps: Push-AppveyorArtifact .\archive.zip -FileName xmake.zip -DeploymentName "xmake-archive" - - ps: |- - [IO.File]::AppendAllText("$PWD/shafile", (Get-FileHash .\archive.zip -Algorithm SHA256).Hash.ToLower() + " *xmake.zip`n", $Utf8NoBomEncoding) + - ps: (Get-FileHash .\archive.zip -Algorithm SHA256).Hash.ToLower() + " *xmake.zip`n" | Out-File ./shafile -Encoding ASCII -NoNewLine -Append # publish sha file - ps: Push-AppveyorArtifact ./shafile -FileName xmake.sha256 -DeploymentName "xmake-shafile" -- cgit v1.3.1