diff --git a/Version.cmd b/Version.cmd index c6f18a523..5b198218b 100644 --- a/Version.cmd +++ b/Version.cmd @@ -5,7 +5,13 @@ setlocal enableextensions set SCRIPTNAME=%~dpn0.ps1 set ARGS=%* -if ["%~1"] neq [""] call :ESCAPE_ARGS + +set POSTFIX=beta +if ["%POSTFIX%"] == [""] ( + if ["%~1"] neq [""] call :ESCAPE_ARGS +) else ( + set ARGS=-VerPatch "%POSTFIX%" +) :POWERSHELL PowerShell.exe -NoProfile -NonInteractive -NoLogo -ExecutionPolicy Unrestricted -Command "& { $ErrorActionPreference = 'Stop'; & '%SCRIPTNAME%' @args; Exit $LastExitCode }" %ARGS% diff --git a/Version_alpha.cmd b/Version_alpha.cmd deleted file mode 100644 index aba0087f9..000000000 --- a/Version_alpha.cmd +++ /dev/null @@ -1,7 +0,0 @@ -:: Batch file for ALPHA and XPERIMENTAL version -@echo off -setlocal -set _VERPATCH_=alpha -echo."_%_VERPATCH_%">.\np3portableapp\_buildname.txt -Version -VerPatch "%_VERPATCH_%" -endlocal diff --git a/Version_beta.cmd b/Version_beta.cmd deleted file mode 100644 index 94e63081a..000000000 --- a/Version_beta.cmd +++ /dev/null @@ -1,7 +0,0 @@ -:: Batch file for BETA version -@echo off -setlocal -set _VERPATCH_=beta -echo."_%_VERPATCH_%">.\np3portableapp\_buildname.txt -Version -VerPatch "%_VERPATCH_%" -endlocal