mirror of
https://github.com/tribufu/ServerManagers
synced 2026-06-01 09:42:39 +00:00
Removal of all Build and Deploy files
This commit is contained in:
parent
2d5dcfa37e
commit
638242ae42
14 changed files with 0 additions and 823 deletions
|
|
@ -1,2 +0,0 @@
|
||||||
powershell -ExecutionPolicy Bypass -File MakeLatestBetaVersionGithub.ps1
|
|
||||||
PAUSE
|
|
||||||
|
|
@ -1,2 +0,0 @@
|
||||||
powershell -ExecutionPolicy Bypass -File MakeLatestVersionGithub.ps1
|
|
||||||
PAUSE
|
|
||||||
|
|
@ -1,54 +0,0 @@
|
||||||
; Script generated by the Inno Setup Script Wizard.
|
|
||||||
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
|
|
||||||
#define rootPath "D:\GitHub\ServerManagers\src\ARKServerManager"
|
|
||||||
#include "D:\GitHub\ServerManagers\src\ARKServerManager\Installer.txt"
|
|
||||||
|
|
||||||
[Setup]
|
|
||||||
; NOTE: The value of AppId uniquely identifies this application.
|
|
||||||
; Do not use the same AppId value in installers for other applications.
|
|
||||||
; (To generate a new GUID, click Tools | Generate GUID inside the IDE.)
|
|
||||||
AppId={{8CF4109C-917A-4F81-A189-164E4DF22C7C}
|
|
||||||
AppName=Ark Server Manager
|
|
||||||
AppVersion={#AppVer}
|
|
||||||
AppPublisher=Bletch1971
|
|
||||||
AppPublisherURL=http://arkservermanager.freeforums.net/
|
|
||||||
AppSupportURL=http://arkservermanager.freeforums.net/board/3/tech-support-bug-reports
|
|
||||||
AppUpdatesURL=http://arkservermanager.freeforums.net/thread/5193/downloads
|
|
||||||
DefaultDirName={pf}\ArkServerManager
|
|
||||||
DisableProgramGroupPage=yes
|
|
||||||
SetupIconFile={#rootPath}\Art\favicon.ico
|
|
||||||
VersionInfoVersion={#AppVerFull}
|
|
||||||
|
|
||||||
ArchitecturesAllowed=x86 x64 ia64
|
|
||||||
ArchitecturesInstallIn64BitMode=x64 ia64
|
|
||||||
|
|
||||||
Compression=lzma
|
|
||||||
SolidCompression=yes
|
|
||||||
|
|
||||||
UninstallDisplayName=Ark Server Manager
|
|
||||||
UninstallDisplayIcon={app}\ARK Server Manager.exe
|
|
||||||
|
|
||||||
SourceDir={#rootPath}\publish\Application Files\ARK Server Manager_{#AppVerPath}
|
|
||||||
OutputDir={#rootPath}\publish\
|
|
||||||
OutputBaseFilename=ArkServerManager_{#AppVer}
|
|
||||||
|
|
||||||
[Languages]
|
|
||||||
Name: "english"; MessagesFile: "compiler:Default.isl"
|
|
||||||
|
|
||||||
[Tasks]
|
|
||||||
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
|
|
||||||
Name: "quicklaunchicon"; Description: "{cm:CreateQuickLaunchIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked; OnlyBelowVersion: 0,6.1
|
|
||||||
|
|
||||||
[Files]
|
|
||||||
Source: "ARK Server Manager.exe"; DestDir: "{app}"; Flags: ignoreversion
|
|
||||||
Source: "*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
|
|
||||||
; NOTE: Don't use "Flags: ignoreversion" on any shared system files
|
|
||||||
|
|
||||||
[Icons]
|
|
||||||
Name: "{commonprograms}\Ark Server Manager"; Filename: "{app}\ARK Server Manager.exe"; Comment: "Start Ark Server Manager"
|
|
||||||
Name: "{commondesktop}\Ark Server Manager"; Filename: "{app}\ARK Server Manager.exe"; Comment: "Start Ark Server Manager"; Tasks: desktopicon
|
|
||||||
Name: "{userappdata}\Microsoft\Internet Explorer\Quick Launch\Ark Server Manager"; Filename: "{app}\ARK Server Manager.exe"; Comment: "Start Ark Server Manager"; Tasks: quicklaunchicon
|
|
||||||
|
|
||||||
[Run]
|
|
||||||
Filename: "{app}\ARK Server Manager.exe"; Description: "{cm:LaunchProgram,Ark Server Manager}"; Flags: nowait postinstall skipifsilent unchecked
|
|
||||||
|
|
||||||
|
|
@ -1,103 +0,0 @@
|
||||||
Param
|
|
||||||
(
|
|
||||||
[Parameter()]
|
|
||||||
[string]$rootPath = "D:\GitHub\ServerManagers\src\ARKServerManager",
|
|
||||||
|
|
||||||
[Parameter()]
|
|
||||||
[string]$publishDir = "publish",
|
|
||||||
|
|
||||||
[Parameter()]
|
|
||||||
[string]$srcXmlFilename = "ARK Server Manager.application",
|
|
||||||
|
|
||||||
[Parameter()]
|
|
||||||
[string]$destLatestFilename = "latestbeta.txt",
|
|
||||||
|
|
||||||
[Parameter()]
|
|
||||||
[string]$filenamePrefix = "Ark Server Manager_",
|
|
||||||
|
|
||||||
[Parameter()]
|
|
||||||
[string]$feedFilename = "VersionFeedBeta.xml",
|
|
||||||
|
|
||||||
[Parameter()]
|
|
||||||
[string]$signTool = "C:\Program Files (x86)\Microsoft SDKs\ClickOnce\SignTool\SignTool.exe",
|
|
||||||
|
|
||||||
[Parameter()]
|
|
||||||
[string]$signNFlag = "${env:SIGN_NFLAG}",
|
|
||||||
|
|
||||||
[Parameter()]
|
|
||||||
[string]$signTFlag = "http://timestamp.digicert.com",
|
|
||||||
|
|
||||||
[Parameter()]
|
|
||||||
[string]$githubRoot = "D:\GitHub\ServerManagers\ASM\beta"
|
|
||||||
)
|
|
||||||
|
|
||||||
[string] $AppVersion = ""
|
|
||||||
[string] $AppVersionShort = ""
|
|
||||||
|
|
||||||
function Get-LatestVersion()
|
|
||||||
{
|
|
||||||
$xmlFile = "$($rootPath)\$($publishDir)\$($srcXmlFilename)"
|
|
||||||
$xml = [xml](Get-Content $xmlFile)
|
|
||||||
$version = $xml.assembly.assemblyIdentity | Select version
|
|
||||||
return $version.version;
|
|
||||||
}
|
|
||||||
|
|
||||||
function Sign-Application ( $sourcedir , $signFile )
|
|
||||||
{
|
|
||||||
if(Test-Path $signTool)
|
|
||||||
{
|
|
||||||
if(($signFile -ne "") -and ($signNFlag -ne "") -and ($signTFlag -ne ""))
|
|
||||||
{
|
|
||||||
Write-Host "Signing $($signFile)"
|
|
||||||
& $signTool sign /n "$($signNFlag)" /t $signTFlag "$($sourcedir)\$($signFile)"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function Create-Zip( $sourcePath , $zipFile )
|
|
||||||
{
|
|
||||||
if(Test-Path $zipFile)
|
|
||||||
{
|
|
||||||
Remove-Item -LiteralPath:$zipFile -Force
|
|
||||||
}
|
|
||||||
Add-Type -Assembly System.IO.Compression.FileSystem
|
|
||||||
Write-Host "Zipping $($sourcePath) into $($zipFile)"
|
|
||||||
$compressionLevel = [System.IO.Compression.CompressionLevel]::Optimal
|
|
||||||
[System.IO.Compression.ZipFile]::CreateFromDirectory($sourcePath, $zipFile, $compressionLevel, $false)
|
|
||||||
}
|
|
||||||
|
|
||||||
$publishPath = "$($rootPath)\$($publishDir)"
|
|
||||||
$txtDestFile = "$($publishPath)\$($destLatestFilename)"
|
|
||||||
$feedFile = "$($rootPath)\$($feedFilename)"
|
|
||||||
$languageFile = "$($rootPath)\Globalization\en-US\en-US.xaml"
|
|
||||||
$filenamePrefixStripped = $filenamePrefix.Replace(' ', '')
|
|
||||||
|
|
||||||
$AppVersion = Get-LatestVersion
|
|
||||||
$AppVersionShort = $AppVersion
|
|
||||||
$AppVersionShort | Set-Content "$($txtDestFile)"
|
|
||||||
Write-Host "LatestVersion $($AppVersionShort) ($($AppVersion))"
|
|
||||||
|
|
||||||
$versionWithUnderscores = $AppVersion.Replace('.', '_')
|
|
||||||
$publishSrcDir = "$($publishPath)\Application Files\$($filenamePrefix)$($versionWithUnderscores)"
|
|
||||||
Remove-Item -Path "$($publishSrcDir)\$($srcXmlFilename)" -ErrorAction Ignore
|
|
||||||
|
|
||||||
#copy the server manager updater (exe) and prefix with 'New'
|
|
||||||
Write-Host "Copying the server manager updater (exe) and prefix with 'New'"
|
|
||||||
Copy-Item -Path "$($publishSrcDir)\ServerManagerUpdater.exe" -Destination "$($publishSrcDir)\NewServerManagerUpdater.exe"
|
|
||||||
|
|
||||||
#sign the executable files
|
|
||||||
Sign-Application $publishSrcDir "*.exe"
|
|
||||||
|
|
||||||
$zipDestFileName = "$($filenamePrefixStripped)$($AppVersionShort).zip"
|
|
||||||
$zipDestFile = "$($publishPath)\$($zipDestFileName)"
|
|
||||||
Create-Zip $publishSrcDir $zipDestFile
|
|
||||||
|
|
||||||
#delete the copied server manager updater File
|
|
||||||
Remove-Item -Path "$($publishSrcDir)\NewServerManagerUpdater.exe" -ErrorAction Ignore
|
|
||||||
|
|
||||||
# copy the files to the GITHUB folder
|
|
||||||
Write-Host "Copying files to the github folder"
|
|
||||||
Copy-Item -Path "$feedFile" -Destination "$githubRoot\VersionFeed.xml"
|
|
||||||
Copy-Item -Path "$languageFile" -Destination $githubRoot
|
|
||||||
Copy-Item -Path "$txtDestFile" -Destination "$githubRoot\latest.txt"
|
|
||||||
Copy-Item -Path "$zipDestFile" -Destination "$githubRoot\latest.zip"
|
|
||||||
|
|
@ -1,137 +0,0 @@
|
||||||
Param
|
|
||||||
(
|
|
||||||
[Parameter()]
|
|
||||||
[string]$rootPath = "D:\GitHub\ServerManagers\src\ARKServerManager",
|
|
||||||
|
|
||||||
[Parameter()]
|
|
||||||
[string]$publishDir = "publish",
|
|
||||||
|
|
||||||
[Parameter()]
|
|
||||||
[string]$srcXmlFilename = "ARK Server Manager.application",
|
|
||||||
|
|
||||||
[Parameter()]
|
|
||||||
[string]$destLatestFilename = "latest.txt",
|
|
||||||
|
|
||||||
[Parameter()]
|
|
||||||
[string]$filenamePrefix = "Ark Server Manager_",
|
|
||||||
|
|
||||||
[Parameter()]
|
|
||||||
[string]$feedFilename = "VersionFeed.xml",
|
|
||||||
|
|
||||||
[Parameter()]
|
|
||||||
[string]$signTool = "C:\Program Files (x86)\Microsoft SDKs\ClickOnce\SignTool\SignTool.exe",
|
|
||||||
|
|
||||||
[Parameter()]
|
|
||||||
[string]$signNFlag = "${env:SIGN_NFLAG}",
|
|
||||||
|
|
||||||
[Parameter()]
|
|
||||||
[string]$signTFlag = "http://timestamp.digicert.com",
|
|
||||||
|
|
||||||
[Parameter()]
|
|
||||||
[string]$installerTool = "D:\Program Files\Inno Setup 6\ISCC.exe",
|
|
||||||
|
|
||||||
[Parameter()]
|
|
||||||
[string]$githubRoot = "D:\GitHub\ServerManagers\ASM"
|
|
||||||
)
|
|
||||||
|
|
||||||
[string] $AppVersion = ""
|
|
||||||
[string] $AppVersionShort = ""
|
|
||||||
|
|
||||||
function Get-LatestVersion()
|
|
||||||
{
|
|
||||||
$xmlFile = "$($rootPath)\$($publishDir)\$($srcXmlFilename)"
|
|
||||||
$xml = [xml](Get-Content $xmlFile)
|
|
||||||
$version = $xml.assembly.assemblyIdentity | Select version
|
|
||||||
return $version.version;
|
|
||||||
}
|
|
||||||
|
|
||||||
function Sign-Application ( $sourcedir , $signFile )
|
|
||||||
{
|
|
||||||
if(Test-Path $signTool)
|
|
||||||
{
|
|
||||||
if(($signFile -ne "") -and ($signNFlag -ne "") -and ($signTFlag -ne ""))
|
|
||||||
{
|
|
||||||
Write-Host "Signing $($signFile)"
|
|
||||||
& $signTool sign /n "$($signNFlag)" /t $signTFlag "$($sourcedir)\$($signFile)"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function Create-Zip( $sourcePath , $zipFile )
|
|
||||||
{
|
|
||||||
if(Test-Path $zipFile)
|
|
||||||
{
|
|
||||||
Remove-Item -LiteralPath:$zipFile -Force
|
|
||||||
}
|
|
||||||
Add-Type -Assembly System.IO.Compression.FileSystem
|
|
||||||
Write-Host "Zipping $($sourcePath) into $($zipFile)"
|
|
||||||
$compressionLevel = [System.IO.Compression.CompressionLevel]::Optimal
|
|
||||||
[System.IO.Compression.ZipFile]::CreateFromDirectory($sourcePath, $zipFile, $compressionLevel, $false)
|
|
||||||
}
|
|
||||||
|
|
||||||
function Create-Installer()
|
|
||||||
{
|
|
||||||
if(Test-Path $installerTool)
|
|
||||||
{
|
|
||||||
if(($installScriptFile -ne "") -and ($installTextFile -ne ""))
|
|
||||||
{
|
|
||||||
$installTextFileContent = @"
|
|
||||||
#define AppVer "$($AppVersionShort)"
|
|
||||||
#define AppVerFull "$($AppVersion)"
|
|
||||||
#define AppVerPath "$($versionWithUnderscores)"
|
|
||||||
"@
|
|
||||||
$installTextFileContent | Out-File -LiteralPath:$installTextFile -Force -Encoding ascii
|
|
||||||
|
|
||||||
Write-Host "Creating installer $($installerFile)"
|
|
||||||
& "$installerTool" "$installScriptFile"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
$publishPath = "$($rootPath)\$($publishDir)"
|
|
||||||
$txtDestFile = "$($publishPath)\$($destLatestFilename)"
|
|
||||||
$feedFile = "$($rootPath)\$($feedFilename)"
|
|
||||||
$languageFile = "$($rootPath)\Globalization\en-US\en-US.xaml"
|
|
||||||
$installTextFile = "$($rootPath)\Installer.txt"
|
|
||||||
$installScriptFile = "$($rootPath)\Installer.iss"
|
|
||||||
$filenamePrefixStripped = $filenamePrefix.Replace(' ', '')
|
|
||||||
|
|
||||||
$AppVersion = Get-LatestVersion
|
|
||||||
$AppVersionShort = $AppVersion.Substring(0, $AppVersion.LastIndexOf('.'))
|
|
||||||
$AppVersionShort | Set-Content "$($txtDestFile)"
|
|
||||||
Write-Host "LatestVersion $($AppVersionShort) ($($AppVersion))"
|
|
||||||
|
|
||||||
$versionWithUnderscores = $AppVersion.Replace('.', '_')
|
|
||||||
$publishSrcDir = "$($publishPath)\Application Files\$($filenamePrefix)$($versionWithUnderscores)"
|
|
||||||
Remove-Item -Path "$($publishSrcDir)\$($srcXmlFilename)" -ErrorAction Ignore
|
|
||||||
|
|
||||||
#copy the server manager updater (exe) and prefix with 'New'
|
|
||||||
Write-Host "Copying the server manager updater (exe) and prefix with 'New'"
|
|
||||||
Copy-Item -Path "$($publishSrcDir)\ServerManagerUpdater.exe" -Destination "$($publishSrcDir)\NewServerManagerUpdater.exe"
|
|
||||||
|
|
||||||
#sign the executable files
|
|
||||||
Sign-Application $publishSrcDir "*.exe"
|
|
||||||
|
|
||||||
$zipDestFileName = "$($filenamePrefixStripped)$($AppVersionShort).zip"
|
|
||||||
$zipDestFile = "$($publishPath)\$($zipDestFileName)"
|
|
||||||
Create-Zip $publishSrcDir $zipDestFile
|
|
||||||
|
|
||||||
#delete the copied server manager updater File - do not want to include in the installer
|
|
||||||
Remove-Item -Path "$($publishSrcDir)\NewServerManagerUpdater.exe" -ErrorAction Ignore
|
|
||||||
|
|
||||||
$installerFileName = "$($filenamePrefixStripped)$($AppVersionShort).exe"
|
|
||||||
$installerFile = "$($publishPath)\$($installerFileName)"
|
|
||||||
Create-Installer
|
|
||||||
|
|
||||||
#sign the installer file
|
|
||||||
Sign-Application $publishPath $installerFileName
|
|
||||||
|
|
||||||
# copy the files to the GITHUB folder
|
|
||||||
Write-Host "Copying files to the github folder"
|
|
||||||
Copy-Item -Path "$feedFile" -Destination "$githubRoot\VersionFeed.xml"
|
|
||||||
Copy-Item -Path "$languageFile" -Destination $githubRoot
|
|
||||||
Copy-Item -Path "$txtDestFile" -Destination "$githubRoot\latest.txt"
|
|
||||||
Copy-Item -Path "$zipDestFile" -Destination $githubRoot
|
|
||||||
Copy-Item -Path "$installerFile" -Destination $githubRoot
|
|
||||||
Copy-Item -Path "$zipDestFile" -Destination "$githubRoot\latest.zip"
|
|
||||||
Copy-Item -Path "$installerFile" -Destination "$githubRoot\latest.exe"
|
|
||||||
|
|
@ -1,2 +0,0 @@
|
||||||
powershell -ExecutionPolicy Bypass -File MakeLatestBetaVersionGithub.ps1
|
|
||||||
PAUSE
|
|
||||||
|
|
@ -1,2 +0,0 @@
|
||||||
powershell -ExecutionPolicy Bypass -File MakeLatestVersionGithub.ps1
|
|
||||||
PAUSE
|
|
||||||
|
|
@ -1,54 +0,0 @@
|
||||||
; Script generated by the Inno Setup Script Wizard.
|
|
||||||
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
|
|
||||||
#define rootPath "D:\GitHub\ServerManagers\src\ConanServerManager"
|
|
||||||
#include "D:\GitHub\ServerManagers\src\ConanServerManager\Installer.txt"
|
|
||||||
|
|
||||||
[Setup]
|
|
||||||
; NOTD: The value of AppId uniquely identifies this application.
|
|
||||||
; Do not use the same AppId value in installers for other applications.
|
|
||||||
; (To generate a new GUID, click Tools | Generate GUID inside the IDE.)
|
|
||||||
AppId={{783D6AFF-E78C-44D5-B9E2-764D7C62C7FD}
|
|
||||||
AppName=Conan Server Manager
|
|
||||||
AppVersion={#AppVer}
|
|
||||||
AppPublisher=Bletch1971
|
|
||||||
AppPublisherURL=http://servermanagers.freeforums.net
|
|
||||||
AppSupportURL=http://servermanagers.freeforums.net/board/39/tech-support-bug-reports
|
|
||||||
AppUpdatesURL=http://servermanagers.freeforums.net/thread/36/downloads
|
|
||||||
DefaultDirName={pf}\ConanServerManager
|
|
||||||
DisableProgramGroupPage=yes
|
|
||||||
SetupIconFile={#rootPath}\Art\favicon.ico
|
|
||||||
VersionInfoVersion={#AppVerFull}
|
|
||||||
|
|
||||||
ArchitecturesAllowed=x86 x64 ia64
|
|
||||||
ArchitecturesInstallIn64BitMode=x64 ia64
|
|
||||||
|
|
||||||
Compression=lzma
|
|
||||||
SolidCompression=yes
|
|
||||||
|
|
||||||
UninstallDisplayName=Conan Server Manager
|
|
||||||
UninstallDisplayIcon={app}\ConanServerManager.exe
|
|
||||||
|
|
||||||
SourceDir={#rootPath}\publish\Application Files\ConanServerManager_{#AppVerPath}
|
|
||||||
OutputDir={#rootPath}\publish\
|
|
||||||
OutputBaseFilename=ConanServerManager_{#AppVer}
|
|
||||||
|
|
||||||
[Languages]
|
|
||||||
Name: "english"; MessagesFile: "compiler:Default.isl"
|
|
||||||
|
|
||||||
[Tasks]
|
|
||||||
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
|
|
||||||
Name: "quicklaunchicon"; Description: "{cm:CreateQuickLaunchIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked; OnlyBelowVersion: 0,6.1
|
|
||||||
|
|
||||||
[Files]
|
|
||||||
Source: "ConanServerManager.exe"; DestDir: "{app}"; Flags: ignoreversion
|
|
||||||
Source: "*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
|
|
||||||
; NOTE: Don't use "Flags: ignoreversion" on any shared system files
|
|
||||||
|
|
||||||
[Icons]
|
|
||||||
Name: "{commonprograms}\Conan Server Manager"; Filename: "{app}\ConanServerManager.exe"; Comment: "Start Conan Server Manager"
|
|
||||||
Name: "{commondesktop}\Conan Server Manager"; Filename: "{app}\ConanServerManager.exe"; Comment: "Start Conan Server Manager"; Tasks: desktopicon
|
|
||||||
Name: "{userappdata}\Microsoft\Internet Explorer\Quick Launch\Conan Server Manager"; Filename: "{app}\ConanServerManager.exe"; Comment: "Start Conan Server Manager"; Tasks: quicklaunchicon
|
|
||||||
|
|
||||||
[Run]
|
|
||||||
Filename: "{app}\ConanServerManager.exe"; Description: "{cm:LaunchProgram,Conan Server Manager}"; Flags: nowait postinstall skipifsilent unchecked
|
|
||||||
|
|
||||||
|
|
@ -1,103 +0,0 @@
|
||||||
Param
|
|
||||||
(
|
|
||||||
[Parameter()]
|
|
||||||
[string]$rootPath = "D:\GitHub\ServerManagers\src\ConanServerManager",
|
|
||||||
|
|
||||||
[Parameter()]
|
|
||||||
[string]$publishDir = "publish",
|
|
||||||
|
|
||||||
[Parameter()]
|
|
||||||
[string]$srcXmlFilename = "ConanServerManager.application",
|
|
||||||
|
|
||||||
[Parameter()]
|
|
||||||
[string]$destLatestFilename = "latestbeta.txt",
|
|
||||||
|
|
||||||
[Parameter()]
|
|
||||||
[string]$filenamePrefix = "ConanServerManager_",
|
|
||||||
|
|
||||||
[Parameter()]
|
|
||||||
[string]$feedFilename = "VersionFeedBeta.xml",
|
|
||||||
|
|
||||||
[Parameter()]
|
|
||||||
[string]$signTool = "C:\Program Files (x86)\Microsoft SDKs\ClickOnce\SignTool\SignTool.exe",
|
|
||||||
|
|
||||||
[Parameter()]
|
|
||||||
[string]$signNFlag = "${env:SIGN_NFLAG}",
|
|
||||||
|
|
||||||
[Parameter()]
|
|
||||||
[string]$signTFlag = "http://timestamp.digicert.com",
|
|
||||||
|
|
||||||
[Parameter()]
|
|
||||||
[string]$githubRoot = "D:\GitHub\ServerManagers\CSM\beta"
|
|
||||||
)
|
|
||||||
|
|
||||||
[string] $AppVersion = ""
|
|
||||||
[string] $AppVersionShort = ""
|
|
||||||
|
|
||||||
function Get-LatestVersion()
|
|
||||||
{
|
|
||||||
$xmlFile = "$($rootPath)\$($publishDir)\$($srcXmlFilename)"
|
|
||||||
$xml = [xml](Get-Content $xmlFile)
|
|
||||||
$version = $xml.assembly.assemblyIdentity | Select version
|
|
||||||
return $version.version;
|
|
||||||
}
|
|
||||||
|
|
||||||
function Sign-Application ( $sourcedir , $signFile )
|
|
||||||
{
|
|
||||||
if(Test-Path $signTool)
|
|
||||||
{
|
|
||||||
if(($signFile -ne "") -and ($signNFlag -ne "") -and ($signTFlag -ne ""))
|
|
||||||
{
|
|
||||||
Write-Host "Signing $($signFile)"
|
|
||||||
& $signTool sign /n "$($signNFlag)" /t $signTFlag "$($sourcedir)\$($signFile)"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function Create-Zip( $sourcePath , $zipFile )
|
|
||||||
{
|
|
||||||
if(Test-Path $zipFile)
|
|
||||||
{
|
|
||||||
Remove-Item -LiteralPath:$zipFile -Force
|
|
||||||
}
|
|
||||||
Add-Type -Assembly System.IO.Compression.FileSystem
|
|
||||||
Write-Host "Zipping $($sourcePath) into $($zipFile)"
|
|
||||||
$compressionLevel = [System.IO.Compression.CompressionLevel]::Optimal
|
|
||||||
[System.IO.Compression.ZipFile]::CreateFromDirectory($sourcePath, $zipFile, $compressionLevel, $false)
|
|
||||||
}
|
|
||||||
|
|
||||||
$publishPath = "$($rootPath)\$($publishDir)"
|
|
||||||
$txtDestFile = "$($publishPath)\$($destLatestFilename)"
|
|
||||||
$feedFile = "$($rootPath)\$($feedFilename)"
|
|
||||||
$languageFile = "$($rootPath)\Globalization\en-US\en-US.xaml"
|
|
||||||
$filenamePrefixStripped = $filenamePrefix.Replace(' ', '')
|
|
||||||
|
|
||||||
$AppVersion = Get-LatestVersion
|
|
||||||
$AppVersionShort = $AppVersion
|
|
||||||
$AppVersionShort | Set-Content "$($txtDestFile)"
|
|
||||||
Write-Host "LatestVersion $($AppVersionShort) ($($AppVersion))"
|
|
||||||
|
|
||||||
$versionWithUnderscores = $AppVersion.Replace('.', '_')
|
|
||||||
$publishSrcDir = "$($publishPath)\Application Files\$($filenamePrefix)$($versionWithUnderscores)"
|
|
||||||
Remove-Item -Path "$($publishSrcDir)\$($srcXmlFilename)" -ErrorAction Ignore
|
|
||||||
|
|
||||||
#copy the server manager updater (exe) and prefix with 'New'
|
|
||||||
Write-Host "Copying the server manager updater (exe) and prefix with 'New'"
|
|
||||||
Copy-Item -Path "$($publishSrcDir)\ServerManagerUpdater.exe" -Destination "$($publishSrcDir)\NewServerManagerUpdater.exe"
|
|
||||||
|
|
||||||
#sign the executable files
|
|
||||||
Sign-Application $publishSrcDir "*.exe"
|
|
||||||
|
|
||||||
$zipDestFileName = "$($filenamePrefixStripped)$($AppVersionShort).zip"
|
|
||||||
$zipDestFile = "$($publishPath)\$($zipDestFileName)"
|
|
||||||
Create-Zip $publishSrcDir $zipDestFile
|
|
||||||
|
|
||||||
#delete the copied server manager updater File
|
|
||||||
Remove-Item -Path "$($publishSrcDir)\NewServerManagerUpdater.exe" -ErrorAction Ignore
|
|
||||||
|
|
||||||
# copy the files to the GITHUB folder
|
|
||||||
Write-Host "Copying files to the github folder"
|
|
||||||
Copy-Item -Path "$feedFile" -Destination "$githubRoot\VersionFeed.xml"
|
|
||||||
Copy-Item -Path "$languageFile" -Destination $githubRoot
|
|
||||||
Copy-Item -Path "$txtDestFile" -Destination "$githubRoot\latest.txt"
|
|
||||||
Copy-Item -Path "$zipDestFile" -Destination "$githubRoot\latest.zip"
|
|
||||||
|
|
@ -1,137 +0,0 @@
|
||||||
Param
|
|
||||||
(
|
|
||||||
[Parameter()]
|
|
||||||
[string]$rootPath = "D:\GitHub\ServerManagers\src\ConanServerManager",
|
|
||||||
|
|
||||||
[Parameter()]
|
|
||||||
[string]$publishDir = "publish",
|
|
||||||
|
|
||||||
[Parameter()]
|
|
||||||
[string]$srcXmlFilename = "ConanServerManager.application",
|
|
||||||
|
|
||||||
[Parameter()]
|
|
||||||
[string]$destLatestFilename = "latest.txt",
|
|
||||||
|
|
||||||
[Parameter()]
|
|
||||||
[string]$filenamePrefix = "ConanServerManager_",
|
|
||||||
|
|
||||||
[Parameter()]
|
|
||||||
[string]$feedFilename = "VersionFeed.xml",
|
|
||||||
|
|
||||||
[Parameter()]
|
|
||||||
[string]$signTool = "C:\Program Files (x86)\Microsoft SDKs\ClickOnce\SignTool\SignTool.exe",
|
|
||||||
|
|
||||||
[Parameter()]
|
|
||||||
[string]$signNFlag = "${env:SIGN_NFLAG}",
|
|
||||||
|
|
||||||
[Parameter()]
|
|
||||||
[string]$signTFlag = "http://timestamp.digicert.com",
|
|
||||||
|
|
||||||
[Parameter()]
|
|
||||||
[string]$installerTool = "D:\Program Files\Inno Setup 6\ISCC.exe",
|
|
||||||
|
|
||||||
[Parameter()]
|
|
||||||
[string]$githubRoot = "D:\GitHub\ServerManagers\CSM"
|
|
||||||
)
|
|
||||||
|
|
||||||
[string] $AppVersion = ""
|
|
||||||
[string] $AppVersionShort = ""
|
|
||||||
|
|
||||||
function Get-LatestVersion()
|
|
||||||
{
|
|
||||||
$xmlFile = "$($rootPath)\$($publishDir)\$($srcXmlFilename)"
|
|
||||||
$xml = [xml](Get-Content $xmlFile)
|
|
||||||
$version = $xml.assembly.assemblyIdentity | Select version
|
|
||||||
return $version.version;
|
|
||||||
}
|
|
||||||
|
|
||||||
function Sign-Application ( $sourcedir , $signFile )
|
|
||||||
{
|
|
||||||
if(Test-Path $signTool)
|
|
||||||
{
|
|
||||||
if(($signFile -ne "") -and ($signNFlag -ne "") -and ($signTFlag -ne ""))
|
|
||||||
{
|
|
||||||
Write-Host "Signing $($signFile)"
|
|
||||||
& $signTool sign /n "$($signNFlag)" /t $signTFlag "$($sourcedir)\$($signFile)"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function Create-Zip( $sourcePath , $zipFile )
|
|
||||||
{
|
|
||||||
if(Test-Path $zipFile)
|
|
||||||
{
|
|
||||||
Remove-Item -LiteralPath:$zipFile -Force
|
|
||||||
}
|
|
||||||
Add-Type -Assembly System.IO.Compression.FileSystem
|
|
||||||
Write-Host "Zipping $($sourcePath) into $($zipFile)"
|
|
||||||
$compressionLevel = [System.IO.Compression.CompressionLevel]::Optimal
|
|
||||||
[System.IO.Compression.ZipFile]::CreateFromDirectory($sourcePath, $zipFile, $compressionLevel, $false)
|
|
||||||
}
|
|
||||||
|
|
||||||
function Create-Installer()
|
|
||||||
{
|
|
||||||
if(Test-Path $installerTool)
|
|
||||||
{
|
|
||||||
if(($installScriptFile -ne "") -and ($installTextFile -ne ""))
|
|
||||||
{
|
|
||||||
$installTextFileContent = @"
|
|
||||||
#define AppVer "$($AppVersionShort)"
|
|
||||||
#define AppVerFull "$($AppVersion)"
|
|
||||||
#define AppVerPath "$($versionWithUnderscores)"
|
|
||||||
"@
|
|
||||||
$installTextFileContent | Out-File -LiteralPath:$installTextFile -Force -Encoding ascii
|
|
||||||
|
|
||||||
Write-Host "Creating installer $($installerFile)"
|
|
||||||
& "$installerTool" "$installScriptFile"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
$publishPath = "$($rootPath)\$($publishDir)"
|
|
||||||
$txtDestFile = "$($publishPath)\$($destLatestFilename)"
|
|
||||||
$feedFile = "$($rootPath)\$($feedFilename)"
|
|
||||||
$languageFile = "$($rootPath)\Globalization\en-US\en-US.xaml"
|
|
||||||
$installTextFile = "$($rootPath)\Installer.txt"
|
|
||||||
$installScriptFile = "$($rootPath)\Installer.iss"
|
|
||||||
$filenamePrefixStripped = $filenamePrefix.Replace(' ', '')
|
|
||||||
|
|
||||||
$AppVersion = Get-LatestVersion
|
|
||||||
$AppVersionShort = $AppVersion.Substring(0, $AppVersion.LastIndexOf('.'))
|
|
||||||
$AppVersionShort | Set-Content "$($txtDestFile)"
|
|
||||||
Write-Host "LatestVersion $($AppVersionShort) ($($AppVersion))"
|
|
||||||
|
|
||||||
$versionWithUnderscores = $AppVersion.Replace('.', '_')
|
|
||||||
$publishSrcDir = "$($publishPath)\Application Files\$($filenamePrefix)$($versionWithUnderscores)"
|
|
||||||
Remove-Item -Path "$($publishSrcDir)\$($srcXmlFilename)" -ErrorAction Ignore
|
|
||||||
|
|
||||||
#copy the server manager updater (exe) and prefix with 'New'
|
|
||||||
Write-Host "Copying the server manager updater (exe) and prefix with 'New'"
|
|
||||||
Copy-Item -Path "$($publishSrcDir)\ServerManagerUpdater.exe" -Destination "$($publishSrcDir)\NewServerManagerUpdater.exe"
|
|
||||||
|
|
||||||
#sign the executable files
|
|
||||||
Sign-Application $publishSrcDir "*.exe"
|
|
||||||
|
|
||||||
$zipDestFileName = "$($filenamePrefixStripped)$($AppVersionShort).zip"
|
|
||||||
$zipDestFile = "$($publishPath)\$($zipDestFileName)"
|
|
||||||
Create-Zip $publishSrcDir $zipDestFile
|
|
||||||
|
|
||||||
#delete the copied server manager updater File - do not want to include in the installer
|
|
||||||
Remove-Item -Path "$($publishSrcDir)\NewServerManagerUpdater.exe" -ErrorAction Ignore
|
|
||||||
|
|
||||||
$installerFileName = "$($filenamePrefixStripped)$($AppVersionShort).exe"
|
|
||||||
$installerFile = "$($publishPath)\$($installerFileName)"
|
|
||||||
Create-Installer
|
|
||||||
|
|
||||||
#sign the installer file
|
|
||||||
Sign-Application $publishPath $installerFileName
|
|
||||||
|
|
||||||
# copy the files to the GITHUB folder
|
|
||||||
Write-Host "Copying files to the github folder"
|
|
||||||
Copy-Item -Path "$feedFile" -Destination "$githubRoot\VersionFeed.xml"
|
|
||||||
Copy-Item -Path "$languageFile" -Destination $githubRoot
|
|
||||||
Copy-Item -Path "$txtDestFile" -Destination "$githubRoot\latest.txt"
|
|
||||||
Copy-Item -Path "$zipDestFile" -Destination $githubRoot
|
|
||||||
Copy-Item -Path "$installerFile" -Destination $githubRoot
|
|
||||||
Copy-Item -Path "$zipDestFile" -Destination "$githubRoot\latest.zip"
|
|
||||||
Copy-Item -Path "$installerFile" -Destination "$githubRoot\latest.exe"
|
|
||||||
|
|
@ -1,2 +0,0 @@
|
||||||
powershell -ExecutionPolicy Bypass -File MakeLatestBetaVersionGithub.ps1
|
|
||||||
PAUSE
|
|
||||||
|
|
@ -1,2 +0,0 @@
|
||||||
powershell -ExecutionPolicy Bypass -File MakeLatestVersionGithub.ps1
|
|
||||||
PAUSE
|
|
||||||
|
|
@ -1,111 +0,0 @@
|
||||||
Param
|
|
||||||
(
|
|
||||||
[Parameter()]
|
|
||||||
[string]$rootPath = "D:\GitHub\ServerManagers\src\Plugin.Discord",
|
|
||||||
|
|
||||||
[Parameter()]
|
|
||||||
[string]$binDir = "bin\Release\net462",
|
|
||||||
|
|
||||||
[Parameter()]
|
|
||||||
[string]$publishDir = "Publish",
|
|
||||||
|
|
||||||
[Parameter()]
|
|
||||||
[string]$srcFilename = "ServerManager.Plugin.Discord.dll",
|
|
||||||
|
|
||||||
[Parameter()]
|
|
||||||
[string]$destLatestFilename = "latestbeta.txt",
|
|
||||||
|
|
||||||
[Parameter()]
|
|
||||||
[string]$filenamePrefix = "ServerManager.Plugin.Discord_",
|
|
||||||
|
|
||||||
[Parameter()]
|
|
||||||
[string]$feedFilename = "VersionFeedBeta.xml",
|
|
||||||
|
|
||||||
[Parameter()]
|
|
||||||
[string]$signTool = "C:\Program Files (x86)\Microsoft SDKs\ClickOnce\SignTool\SignTool.exe",
|
|
||||||
|
|
||||||
[Parameter()]
|
|
||||||
[string]$signNFlag = "${env:SIGN_NFLAG}",
|
|
||||||
|
|
||||||
[Parameter()]
|
|
||||||
[string]$signTFlag = "http://timestamp.digicert.com",
|
|
||||||
|
|
||||||
[Parameter()]
|
|
||||||
[string]$githubRoot = "D:\GitHub\ServerManagers\Plugins\Discord\beta"
|
|
||||||
)
|
|
||||||
|
|
||||||
[string] $AppVersion = ""
|
|
||||||
[string] $AppVersionShort = ""
|
|
||||||
|
|
||||||
function Get-LatestVersion( $srcFile )
|
|
||||||
{
|
|
||||||
$assembly = [Reflection.Assembly]::Loadfile($srcFile)
|
|
||||||
$assemblyName = $assembly.GetName()
|
|
||||||
return $assemblyName.version;
|
|
||||||
}
|
|
||||||
|
|
||||||
function Sign-Application ( $sourcedir , $signFile )
|
|
||||||
{
|
|
||||||
if(Test-Path $signTool)
|
|
||||||
{
|
|
||||||
if(($signFile -ne "") -and ($signNFlag -ne "") -and ($signTFlag -ne ""))
|
|
||||||
{
|
|
||||||
Write-Host "Signing $($signFile)"
|
|
||||||
& $signTool sign /n "$($signNFlag)" /t $signTFlag "$($sourcedir)\$($signFile)"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function Create-Zip( $sourcePath , $zipFile )
|
|
||||||
{
|
|
||||||
if(Test-Path $zipFile)
|
|
||||||
{
|
|
||||||
Remove-Item -LiteralPath:$zipFile -Force
|
|
||||||
}
|
|
||||||
Add-Type -Assembly System.IO.Compression.FileSystem
|
|
||||||
Write-Host "Zipping $($sourcePath) into $($zipFile)"
|
|
||||||
$compressionLevel = [System.IO.Compression.CompressionLevel]::Optimal
|
|
||||||
[System.IO.Compression.ZipFile]::CreateFromDirectory($sourcePath, $zipFile, $compressionLevel, $false)
|
|
||||||
}
|
|
||||||
|
|
||||||
$srcFile = "$($rootPath)\$($binDir)\$($srcFilename)"
|
|
||||||
$feedFile = "$($rootPath)\$($feedFilename)"
|
|
||||||
$languageFile = "$($rootPath)\Globalization\en-US\en-US.xaml"
|
|
||||||
|
|
||||||
$AppVersion = Get-LatestVersion $srcFile
|
|
||||||
$AppVersionShort = $AppVersion
|
|
||||||
Write-Host "LatestVersion $($AppVersionShort) ($($AppVersion))"
|
|
||||||
|
|
||||||
# test if the publish directory exists
|
|
||||||
$versionWithUnderscores = $AppVersion.Replace('.', '_')
|
|
||||||
$publishPath = "$($rootPath)\$($publishDir)\$($filenamePrefix)$($versionWithUnderscores)"
|
|
||||||
if(!(Test-Path -Path ($publishPath)))
|
|
||||||
{
|
|
||||||
Write-Host "Creating folder $($publishPath)"
|
|
||||||
|
|
||||||
# create the destination directory
|
|
||||||
New-Item -ItemType directory -Path "$($publishPath)"
|
|
||||||
}
|
|
||||||
|
|
||||||
# copy the source file
|
|
||||||
Copy-Item -Path $($srcFile) -Destination $($publishPath) -Force
|
|
||||||
Write-Host "Copied $($srcFile) to $($publishPath)"
|
|
||||||
|
|
||||||
# write latest version file
|
|
||||||
$txtDestFileName = "$($destLatestFilename)"
|
|
||||||
$txtDestFile = "$($rootPath)\$($publishDir)\$($txtDestFileName)"
|
|
||||||
$AppVersionShort | Set-Content "$($txtDestFile)"
|
|
||||||
|
|
||||||
Sign-Application $publishPath "*.dll"
|
|
||||||
|
|
||||||
# create the zip file
|
|
||||||
$zipDestFileName = "$($filenamePrefix)$($AppVersionShort).zip"
|
|
||||||
$zipDestFile = "$($rootPath)\$($publishDir)\$($zipDestFileName)"
|
|
||||||
Create-Zip $publishPath $zipDestFile
|
|
||||||
|
|
||||||
# copy the files to the GITHUB folder
|
|
||||||
Write-Host "Copying files to the github folder"
|
|
||||||
Copy-Item -Path "$feedFile" -Destination "$githubRoot\VersionFeed.xml"
|
|
||||||
Copy-Item -Path "$languageFile" -Destination $githubRoot
|
|
||||||
Copy-Item -Path "$txtDestFile" -Destination "$githubRoot\latest.txt"
|
|
||||||
Copy-Item -Path "$zipDestFile" -Destination "$githubRoot\latest.zip"
|
|
||||||
|
|
@ -1,112 +0,0 @@
|
||||||
Param
|
|
||||||
(
|
|
||||||
[Parameter()]
|
|
||||||
[string]$rootPath = "D:\GitHub\ServerManagers\src\Plugin.Discord",
|
|
||||||
|
|
||||||
[Parameter()]
|
|
||||||
[string]$binDir = "bin\Release\net462",
|
|
||||||
|
|
||||||
[Parameter()]
|
|
||||||
[string]$publishDir = "Publish",
|
|
||||||
|
|
||||||
[Parameter()]
|
|
||||||
[string]$srcFilename = "ServerManager.Plugin.Discord.dll",
|
|
||||||
|
|
||||||
[Parameter()]
|
|
||||||
[string]$destLatestFilename = "latest.txt",
|
|
||||||
|
|
||||||
[Parameter()]
|
|
||||||
[string]$filenamePrefix = "ServerManager.Plugin.Discord_",
|
|
||||||
|
|
||||||
[Parameter()]
|
|
||||||
[string]$feedFilename = "VersionFeed.xml",
|
|
||||||
|
|
||||||
[Parameter()]
|
|
||||||
[string]$signTool = "C:\Program Files (x86)\Microsoft SDKs\ClickOnce\SignTool\SignTool.exe",
|
|
||||||
|
|
||||||
[Parameter()]
|
|
||||||
[string]$signNFlag = "${env:SIGN_NFLAG}",
|
|
||||||
|
|
||||||
[Parameter()]
|
|
||||||
[string]$signTFlag = "http://timestamp.digicert.com",
|
|
||||||
|
|
||||||
[Parameter()]
|
|
||||||
[string]$githubRoot = "D:\GitHub\ServerManagers\Plugins\Discord"
|
|
||||||
)
|
|
||||||
|
|
||||||
[string] $AppVersion = ""
|
|
||||||
[string] $AppVersionShort = ""
|
|
||||||
|
|
||||||
function Get-LatestVersion( $srcFile )
|
|
||||||
{
|
|
||||||
$assembly = [Reflection.Assembly]::Loadfile($srcFile)
|
|
||||||
$assemblyName = $assembly.GetName()
|
|
||||||
return $assemblyName.version;
|
|
||||||
}
|
|
||||||
|
|
||||||
function Sign-Application ( $sourcedir , $signFile )
|
|
||||||
{
|
|
||||||
if(Test-Path $signTool)
|
|
||||||
{
|
|
||||||
if(($signFile -ne "") -and ($signNFlag -ne "") -and ($signTFlag -ne ""))
|
|
||||||
{
|
|
||||||
Write-Host "Signing $($signFile)"
|
|
||||||
& $signTool sign /n "$($signNFlag)" /t $signTFlag "$($sourcedir)\$($signFile)"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function Create-Zip( $sourcePath , $zipFile )
|
|
||||||
{
|
|
||||||
if(Test-Path $zipFile)
|
|
||||||
{
|
|
||||||
Remove-Item -LiteralPath:$zipFile -Force
|
|
||||||
}
|
|
||||||
Add-Type -Assembly System.IO.Compression.FileSystem
|
|
||||||
Write-Host "Zipping $($sourcePath) into $($zipFile)"
|
|
||||||
$compressionLevel = [System.IO.Compression.CompressionLevel]::Optimal
|
|
||||||
[System.IO.Compression.ZipFile]::CreateFromDirectory($sourcePath, $zipFile, $compressionLevel, $false)
|
|
||||||
}
|
|
||||||
|
|
||||||
$srcFile = "$($rootPath)\$($binDir)\$($srcFilename)"
|
|
||||||
$feedFile = "$($rootPath)\$($feedFilename)"
|
|
||||||
$languageFile = "$($rootPath)\Globalization\en-US\en-US.xaml"
|
|
||||||
|
|
||||||
$AppVersion = Get-LatestVersion $srcFile
|
|
||||||
$AppVersionShort = $AppVersion.Substring(0, $AppVersion.LastIndexOf('.'))
|
|
||||||
Write-Host "LatestVersion $($AppVersionShort) ($($AppVersion))"
|
|
||||||
|
|
||||||
# test if the publish directory exists
|
|
||||||
$versionWithUnderscores = $AppVersion.Replace('.', '_')
|
|
||||||
$publishPath = "$($rootPath)\$($publishDir)\$($filenamePrefix)$($versionWithUnderscores)"
|
|
||||||
if(!(Test-Path -Path ($publishPath)))
|
|
||||||
{
|
|
||||||
Write-Host "Creating folder $($publishPath)"
|
|
||||||
|
|
||||||
# create the destination directory
|
|
||||||
New-Item -ItemType directory -Path "$($publishPath)"
|
|
||||||
}
|
|
||||||
|
|
||||||
# copy the source file
|
|
||||||
Copy-Item -Path $($srcFile) -Destination $($publishPath) -Force
|
|
||||||
Write-Host "Copied $($srcFile) to $($publishPath)"
|
|
||||||
|
|
||||||
# write latest version file
|
|
||||||
$txtDestFileName = "$($destLatestFilename)"
|
|
||||||
$txtDestFile = "$($rootPath)\$($publishDir)\$($txtDestFileName)"
|
|
||||||
$AppVersionShort | Set-Content "$($txtDestFile)"
|
|
||||||
|
|
||||||
Sign-Application $publishPath "*.dll"
|
|
||||||
|
|
||||||
# create the zip file
|
|
||||||
$zipDestFileName = "$($filenamePrefix)$($AppVersionShort).zip"
|
|
||||||
$zipDestFile = "$($rootPath)\$($publishDir)\$($zipDestFileName)"
|
|
||||||
Create-Zip $publishPath $zipDestFile
|
|
||||||
|
|
||||||
# copy the files to the GITHUB folder
|
|
||||||
Write-Host "Copying files to the github folder"
|
|
||||||
Copy-Item -Path "$feedFile" -Destination "$githubRoot\VersionFeed.xml"
|
|
||||||
Copy-Item -Path "$languageFile" -Destination $githubRoot
|
|
||||||
Copy-Item -Path "$zipDestFile" -Destination $githubRoot
|
|
||||||
Copy-Item -Path "$txtDestFile" -Destination "$githubRoot\latest.txt"
|
|
||||||
Copy-Item -Path "$zipDestFile" -Destination "$githubRoot\latest.zip"
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue