diff options
| author | OpportunityLiu <[email protected]> | 2019-06-20 21:58:22 +0800 |
|---|---|---|
| committer | OpportunityLiu <[email protected]> | 2019-06-20 21:58:22 +0800 |
| commit | f38741505acb528f609a8b269c911fc037a03fcc (patch) | |
| tree | 5cd64f6bff2fd8fe7debe053257dce9e1043b8b6 | |
| parent | 98b14d8d88d78fa39f79fe37a9d93ffe68c5580c (diff) | |
fix
| -rw-r--r-- | .appveyor.yml | 10 |
1 files 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" |
