From 94204206229275a58694cab2d8e106f559fd6569 Mon Sep 17 00:00:00 2001 From: Faryan Rezagholi Date: Sun, 23 Dec 2018 23:17:02 +0100 Subject: [PATCH] added post-build script to copy tiles and manifest --- Tools/copy_tiles.ps1 | 19 +++++++++++++++++++ Tools/postbuild_mremotev1.ps1 | 1 + 2 files changed, 20 insertions(+) create mode 100644 Tools/copy_tiles.ps1 diff --git a/Tools/copy_tiles.ps1 b/Tools/copy_tiles.ps1 new file mode 100644 index 00000000..52c73630 --- /dev/null +++ b/Tools/copy_tiles.ps1 @@ -0,0 +1,19 @@ +param ( + [string] + [Parameter(Mandatory=$true)] + $SolutionDir, + + [string] + [Parameter(Mandatory=$true)] + $TargetDir +) + +Write-Output "===== Beginning $($PSCmdlet.MyInvocation.MyCommand) =====" +Write-Output "Copying TILES folder to output" + +$sourceFiles = [io.path]::combine($SolutionDir , 'mRemoteV1\Resources\Tiles' ) +$DestinationDir = $TargetDir + +robocopy $sourceFiles $DestinationDir *.* + +Write-Output "" \ No newline at end of file diff --git a/Tools/postbuild_mremotev1.ps1 b/Tools/postbuild_mremotev1.ps1 index 7129950d..a03c457b 100644 --- a/Tools/postbuild_mremotev1.ps1 +++ b/Tools/postbuild_mremotev1.ps1 @@ -40,6 +40,7 @@ Format-Table -AutoSize -Wrap -InputObject @{ & "$PSScriptRoot\copy_puttyng.ps1" -SolutionDir $SolutionDir -TargetDir $TargetDir & "$PSScriptRoot\copy_themes.ps1" -SolutionDir $SolutionDir -TargetDir $TargetDir +& "$PSScriptRoot\copy_tiles.ps1" -SolutionDir $SolutionDir -TargetDir $TargetDir & "$PSScriptRoot\move_help_files.ps1" -TargetDir $TargetDir & "$PSScriptRoot\set_LargeAddressAware.ps1" -TargetDir $TargetDir -TargetFileName $TargetFileName & "$PSScriptRoot\verify_LargeAddressAware.ps1" -TargetDir $TargetDir -TargetFileName $TargetFileName