cockatrice-custom-tokens/deploy.ps1

15 lines
612 B
PowerShell

# Preview only: no files are installed or changed.
$ErrorActionPreference = 'Stop'
$SetsPath = Join-Path $PSScriptRoot 'sets'
if (-not (Test-Path -LiteralPath $SetsPath -PathType Container)) {
throw 'sets directory is missing.'
}
Write-Output 'MOCK deployment: preview only; no files will be changed.'
Get-ChildItem -LiteralPath $SetsPath -Recurse -File |
Sort-Object FullName |
ForEach-Object {
$RelativePath = $_.FullName.Substring($PSScriptRoot.Length + 1)
Write-Output "Would deploy: $RelativePath"
}
Write-Output 'Automatic installation and updates are not implemented yet.'