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 a8bfcf0
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 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,17 @@ Pop-EnvironmentBlock # Visual studio vars
# Generate NSIS installer file
& ./asymptote/cmake-install-w32-nsis-release/build-asy-installer.ps1 "$makeNsisLoc"

# TODO: Copy installer file to root directory

$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 a8bfcf0

Please sign in to comment.