version number variable
This commit is contained in:
Родитель
ccb79f0709
Коммит
293e772829
|
@ -1,8 +1,10 @@
|
|||
Param(
|
||||
[string]$version,
|
||||
[string]$suffix
|
||||
)
|
||||
|
||||
# nuget.exe pack
|
||||
$nugetargs = "pack", "$PSScriptRoot/../src/Peachpie.Templates.nuspec", "-OutputDirectory", "out"
|
||||
if ($version) { $nugetargs += "-Version", $version }
|
||||
if ($suffix) { $nugetargs += "-Suffix", $suffix }
|
||||
./tools/nuget.exe $nugetargs
|
|
@ -1,6 +1,7 @@
|
|||
Param(
|
||||
[string]$version = $env:PackageVersion,
|
||||
[string]$suffix = $env:PrereleaseTag
|
||||
)
|
||||
|
||||
Invoke-Expression "$PSScriptRoot/build/build.ps1 $suffix"
|
||||
Invoke-Expression "$PSScriptRoot/build/build.ps1 $version $suffix"
|
||||
Invoke-Expression "$PSScriptRoot/tests/test.ps1"
|
Загрузка…
Ссылка в новой задаче