diff options
-rw-r--r-- | dist/windows/appveyor/build.ps1 | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/dist/windows/appveyor/build.ps1 b/dist/windows/appveyor/build.ps1 index 2421bd16d..c086ec0ea 100644 --- a/dist/windows/appveyor/build.ps1 +++ b/dist/windows/appveyor/build.ps1 @@ -53,13 +53,16 @@ $GHDL_BUILD_DIR = "$($env:APPVEYOR_BUILD_FOLDER)\build\$BUILD_DIRNAME" if ($env:APPVEYOR_REPO_TAG -eq "true") { - $PREFIX_DIRNAME = "$($env:APPVEYOR_REPO_TAG_NAME)-$BUILD_DIRNAME" + # There is a tag. Remove the leading v. + $BUILD_VERSION = $($env:APPVEYOR_REPO_TAG_NAME) -creplace "^v", "" } else { - $PREFIX_DIRNAME = "$($env:APPVEYOR_BUILD_VERSION)-$BUILD_DIRNAME" + $BUILD_VERSION = $($env:APPVEYOR_BUILD_VERSION) } +$PREFIX_DIRNAME = "$BUILD_VERSION-$BUILD_DIRNAME" + $GHDL_PREFIX_DIR = "c:/Tools/GHDL/$PREFIX_DIRNAME" $ZipFile = "ghdl-$PREFIX_DIRNAME.zip" |