Skip to content

Commit

Permalink
📦 Update appveyor.yml
Browse files Browse the repository at this point in the history
- Include localization .dll folders when packaging
  • Loading branch information
database64128 committed Oct 17, 2020
1 parent 11af88f commit 01f7882
Showing 1 changed file with 3 additions and 18 deletions.
21 changes: 3 additions & 18 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 01f7882

Please sign in to comment.