mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-25 05:56:58 +01:00
Adds versioning to release filenames
This commit is contained in:
+6
-4
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user