Skip to content

Commit a97b5b7

Browse files
committed
Use version.sh instead.
1 parent 5677c7a commit a97b5b7

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

AppVeyor/Build.ps1

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,15 +48,15 @@ function GetVersion()
4848
$version = "7.x.x"
4949
$addendum = "-x"
5050

51-
foreach ($line in [System.IO.File]::ReadLines("../VisualMagick/installer/inc/version.isx"))
51+
foreach ($line in [System.IO.File]::ReadLines("../ImageMagick/version.sh"))
5252
{
53-
if ($line.StartsWith("#define public MagickPackageVersionAddendum"))
53+
if ($line.StartsWith("PACKAGE_VERSION="))
5454
{
55-
$addendum = $line.SubString(45, $line.Length - 46)
55+
$addendum = "-" + $line.SubString(17, $line.Length - 18)
5656
}
57-
elseif ($line.StartsWith("#define public MagickPackageVersion"))
57+
elseif ($line.StartsWith("PACKAGE_VERSION="))
5858
{
59-
$version = $line.SubString(37, $line.Length - 38)
59+
$version = $line.SubString(17, $line.Length - 18)
6060
}
6161
}
6262

0 commit comments

Comments
 (0)