Skip to content

Commit

Permalink
Update Build.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
marcingminski authored Sep 30, 2022
1 parent e7b6c2d commit 4c16494
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions AppVeyor/Build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -133,16 +133,6 @@ Expand-Archive -LiteralPath $ReleaseFolder\SQLWATCH.dacpac.zip -DestinationPath

$Version = ($xml.DacType.Version).trim()

#fix 417:
$predeploysql = Get-Content -Path "$ReleaseFolder\SQLWATCH-DACPAC\predeploy.sql"
$predeploysql = $predeploysql -replace '\$\(DacVersion\)', $Version
$predeploysql | Out-File -FilePath "$ReleaseFolder\SQLWATCH-DACPAC\predeploy.sql" -Force

Remove-item -Path "$ReleaseFolder\SQLWATCH.dacpac" -Force
Remove-item -Path "$ReleaseFolder\SQLWATCH.dacpac.zip" -Force
Compress-Archive -Path "$ReleaseFolder\SQLWATCH-DACPAC" -DestinationPath "$ReleaseFolder\SQLWATCH.dacpac.zip"
Rename-item -Path "$ReleaseFolder\SQLWATCH.dacpac.zip" -NewName "$ReleaseFolder\SQLWATCH.dacpac"

#Rename folder to now include version number from dacpac:
$ReleaseFolderName = "SQLWATCH $Version $(get-date -f yyyyMMddHHmmss)"

Expand Down

0 comments on commit 4c16494

Please sign in to comment.