Created
July 21, 2015 19:53
-
-
Save turibbio/8d87699e848abf88b3f6 to your computer and use it in GitHub Desktop.
Post Build Event
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
param($ProjectDir) | |
$TargertDir = $env:LOCALAPPDATA + "\Totem" | |
$OrigineRisorse = $ProjectDir + "\Resources" | |
$OrigineTemi = $ProjectDir + "\Themes" | |
$DestRisorse = $TargertDir + "\Resources" | |
$DestTemi = $TargertDir + "\Themes" | |
$OrigineLang = $ProjectDir + "\Languages" | |
$DestLang = $TargertDir + "\Languages" | |
Write-Output "Esecuzione azioni Post Build" | |
Write-Output "Pulizia delle cartelle nella destinazione in corso" | |
Remove-Item -Path $DestRisorse -Recurse -Force | where { Test-Path -Path $DestRisorse } | |
Remove-Item -Path $DestTemi -Recurse -Force | where { Test-Path -Path $DestTemi } | |
Remove-Item -Path $DestLang -Recurse -Force | where { Test-Path -Path $DestLang } | |
Write-Output "Avvio copia cartelle custom" | |
Move-Item -Path $OrigineRisorse -Destination $DestRisorse -Force | |
Write-Output ($OrigineRisorse + " copiato in " + $DestRisorse) | |
Move-Item -Path $OrigineTemi -Destination $DestTemi -Force | |
Write-Output ($OrigineTemi + " copiato in " + $DestTemi) | |
Move-Item -Path $OrigineLang -Destination $DestLang -Force | |
Write-Output ($OrigineLang + " copiato in " + $DestLang) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment