Skip to content

Instantly share code, notes, and snippets.

@rrptex
Last active November 6, 2025 02:42
Show Gist options
  • Select an option

  • Save rrptex/7b7ae9693db3e8ad39c28a3a6e0f43b7 to your computer and use it in GitHub Desktop.

Select an option

Save rrptex/7b7ae9693db3e8ad39c28a3a6e0f43b7 to your computer and use it in GitHub Desktop.
No RAD Delphi 12.1 este script captura versão de um aplicativo e renomeia, copiando o mesmo para C:\Progs\Apps.
powershell.exe -ExecutionPolicy Bypass -Command "$f='$(OUTPUTPATH)'; $v=((Get-Item $f).VersionInfo.FileVersion -replace '\.',''); $b=[System.IO.Path]::GetFileNameWithoutExtension($f); $e=[System.IO.Path]::GetExtension($f); $n=$b + '_v' + $v + $e; $dest='C:\Progs\Apps'; Copy-Item -Path $f -Destination (Join-Path $dest $n) -Force; Write-Host \"✅ Deploy Sucesso: Arquivo copiado para $dest\nCom nome: $n\""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment