diff --git a/TGS3Release.ps1 b/TGS3Release.ps1 index d663f48c4e..0749e410db 100644 --- a/TGS3Release.ps1 +++ b/TGS3Release.ps1 @@ -1,11 +1,13 @@ $bf = $Env:APPVEYOR_BUILD_FOLDER $src = "$bf\TGInstallerWrapper\bin\Release" +$version = [System.Diagnostics.FileVersionInfo]::GetVersionInfo("$src\TG Station Server Installer.exe").FileVersion Remove-Item "$src\Microsoft.Deployment.WindowsInstaller.xml" Remove-Item "$src\TG Station Server Installer.exe.config" Remove-Item "$src\TG Station Server Installer.pdb" +Rename-Item -Path "$src\TG Station Server Installer.exe" -NewName "$src\TG Station Server Installer v$version.exe" -$destination = "$bf\TGS3-Server.zip" +$destination = "$bf\TGS3-Server-v$version.zip" If(Test-path $destination) {Remove-item $destination} @@ -13,7 +15,7 @@ Add-Type -assembly "system.io.compression.filesystem" [io.compression.zipfile]::CreateFromDirectory($src, $destination) -$destination_md5sha = $Env:APPVEYOR_BUILD_FOLDER + "\MD5-SHA1-Server.txt" +$destination_md5sha = $Env:APPVEYOR_BUILD_FOLDER + "\MD5-SHA1-Server-v$version.txt" $src2 = $Env:APPVEYOR_BUILD_FOLDER + "\ClientApps" [system.io.directory]::CreateDirectory($src2) @@ -21,10 +23,10 @@ Copy-Item "$bf\TGCommandLine\bin\Release\TGCommandLine.exe" "$src2\TGCommandLine Copy-Item "$bf\TGControlPanel\bin\Release\TGControlPanel.exe" "$src2\TGControlPanel.exe" Copy-Item "$bf\TGServiceInterface\bin\x86\Release\TGServiceInterface.dll" "$src2\TGServiceInterface.dll" -$dest2 = "$bf\TGS3-Client.zip" +$dest2 = "$bf\TGS3-Client-v$version.zip" [io.compression.zipfile]::CreateFromDirectory($src2, $dest2) -$destination_md5sha2 = $Env:APPVEYOR_BUILD_FOLDER + "\MD5-SHA1-Client.txt" +$destination_md5sha2 = $Env:APPVEYOR_BUILD_FOLDER + "\MD5-SHA1-Client-v$version.txt" & fciv -both $destination > $destination_md5sha & fciv -both $dest2 > $destination_md5sha2 diff --git a/appveyor.yml b/appveyor.yml index 7fd6c4944e..cd29c86075 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -5,13 +5,13 @@ image: Visual Studio 2017 configuration: Release shallow_clone: true artifacts: -- path: TGS3-Server.zip +- path: TGS3-Server-v*.zip name: TGS3Server -- path: MD5-SHA1-Server.txt +- path: MD5-SHA1-Server-v*.txt name: MD5SHA1Server -- path: TGS3-Client.zip +- path: TGS3-Client-v*.zip name: TGS3Client -- path: MD5-SHA1-Client.txt +- path: MD5-SHA1-Client-v*.txt name: MD5SHA1Client install: - choco install fciv