Skip to content

Commit

Permalink
BUILD: Copy installer files to the build root.
Browse files Browse the repository at this point in the history
  • Loading branch information
jamievlin committed Sep 4, 2024
1 parent 6e07a11 commit 18d9680
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions build-scripts/build-asymptote.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ param(
[string]$Version
)

# TODO: Also handle automatic version handling

# ----------------------------------------------------
# checking documentation files
$extfilesRoot="Z:\asy\asydoc"
Expand Down Expand Up @@ -153,4 +155,16 @@ Pop-EnvironmentBlock # Visual studio vars
# Generate NSIS installer file
& ./asymptote/cmake-install-w32-nsis-release/build-asy-installer.ps1 "$makeNsisLoc"


$asySetupFile="./asymptote/cmake-install-w32-nsis-release/asymptote-$Version-setup.exe"
if (Test-Path -PathType leaf $asySetupFile)
{
Copy-Item $asySetupFile .
}
else
{
Write-Error "Asymptote setup file not built."
Break
}

# TODO: Also handle CTAN builds

0 comments on commit 18d9680

Please sign in to comment.