Browse Source

Update appveyor.yml

pull/2833/head
MysticBoy GitHub 5 years ago
parent
commit
4da4b850fb
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      appveyor.yml

+ 4
- 2
appveyor.yml View File

@@ -43,6 +43,8 @@ clone_depth: 5 # clone entire repository history if not def
# environment variables # environment variables
environment: environment:
DNVer: net472
DNCVer: netcoreapp3.1
# my_var1: value1 # my_var1: value1
# # this is how to set encrypted variable. Go to "Settings" -> "Encrypt YAML" page in account menu to encrypt data. # # this is how to set encrypted variable. Go to "Settings" -> "Encrypt YAML" page in account menu to encrypt data.
# my_secure_var1: # my_secure_var1:
@@ -115,11 +117,11 @@ after_build:
$WorkingFolder = "$env:APPVEYOR_BUILD_FOLDER\working" $WorkingFolder = "$env:APPVEYOR_BUILD_FOLDER\working"
$ExeFileName = "Shadowsocks-$env:APPVEYOR_BUILD_VERSION-$env:CONFIGURATION.exe" $ExeFileName = "Shadowsocks-$env:APPVEYOR_BUILD_VERSION-$env:CONFIGURATION.exe"
$ExeFile = "$WorkingFolder\$ExeFileName"
$ExeFile = "$WorkingFolder\$DNVer\$ExeFileName"
$ExeHashFile = "$Exefile.hash" $ExeHashFile = "$Exefile.hash"
New-Item $WorkingFolder -ItemType Directory -Force 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 $env:APPVEYOR_BUILD_FOLDER\shadowsocks-csharp\bin\$env:PLATFORM\$env:CONFIGURATION\$DNVer\Shadowsocks.exe $WorkingFolder\Shadowsocks.exe
Copy-Item $WorkingFolder\Shadowsocks.exe $ExeFile Copy-Item $WorkingFolder\Shadowsocks.exe $ExeFile
CalculateHash -file $Exefile | Out-File -FilePath $ExeHashFile CalculateHash -file $Exefile | Out-File -FilePath $ExeHashFile


Loading…
Cancel
Save