From a8bfcf088205d4e02b158809143bb3de3652fc98 Mon Sep 17 00:00:00 2001 From: Supakorn 'Jamie' Rassameemasmuang Date: Tue, 3 Sep 2024 22:17:11 -0600 Subject: [PATCH] BUILD: Copy installer files to the build root. --- build-scripts/build-asymptote.ps1 | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/build-scripts/build-asymptote.ps1 b/build-scripts/build-asymptote.ps1 index b0f3a530f..73d2bc5c0 100644 --- a/build-scripts/build-asymptote.ps1 +++ b/build-scripts/build-asymptote.ps1 @@ -12,6 +12,8 @@ param( [string]$Version ) +# TODO: Also handle automatic version handling + # ---------------------------------------------------- # checking documentation files $extfilesRoot="Z:\asy\asydoc" @@ -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