From 01f7882865c5cfca03e110edc781897091483dfa Mon Sep 17 00:00:00 2001 From: database64128 Date: Sun, 18 Oct 2020 02:45:47 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=A6=20Update=20appveyor.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Include localization .dll folders when packaging --- appveyor.yml | 21 +++------------------ 1 file changed, 3 insertions(+), 18 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index 803437c4..04d25c38 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -112,30 +112,15 @@ after_build: return $text } - $WorkingFolder = "$env:APPVEYOR_BUILD_FOLDER\working" - $ExeFileName = "Shadowsocks-$env:APPVEYOR_BUILD_VERSION-$env:CONFIGURATION.exe" - $ExeFile = "$WorkingFolder\$ExeFileName" - $ExeHashFile = "$Exefile.hash" - - New-Item "$WorkingFolder" -ItemType Directory -Force - Copy-Item "$env:APPVEYOR_BUILD_FOLDER\shadowsocks-csharp\bin\$env:PLATFORM\$env:CONFIGURATION\Shadowsocks.exe" "$WorkingFolder\Shadowsocks.exe" - Copy-Item "$WorkingFolder\Shadowsocks.exe" "$ExeFile" - - CalculateHash -file "$Exefile" | Out-File -FilePath "$ExeHashFile" - - Push-AppveyorArtifact "$ExeFile" - Push-AppveyorArtifact "$ExeHashFile" - - # Create and deploy the release zip - + $WorkingFolder = "$env:APPVEYOR_BUILD_FOLDER\shadowsocks-csharp\bin\$env:PLATFORM\$env:CONFIGURATION" $ReleaseFile = "$WorkingFolder\Shadowsocks.exe" $ReleaseHashFile = "$ReleaseFile.hash" + $ReleaseLocalizationFiles = "$WorkingFolder\*\" $ZipFile = "$WorkingFolder\Shadowsocks-$env:APPVEYOR_BUILD_VERSION.zip" $ZipHashFile = "$ZipFile.hash" - # Calculate exe Hash and archieve both exe and hash to zip CalculateHash -file "$ReleaseFile" | Out-File -FilePath "$ReleaseHashFile" - 7z a "$ZipFile" "$ReleaseFile" "$ReleaseHashFile" + 7z a "$ZipFile" "$ReleaseFile" "$ReleaseHashFile" "$ReleaseLocalizationFiles" Push-AppveyorArtifact "$ZipFile" # Calculate packed zip Hash