From 3f91f60cd3445ab80fa4a3f735627cfabf4fe715 Mon Sep 17 00:00:00 2001 From: Devin Bileck <603793+devinbileck@users.noreply.github.com> Date: Mon, 18 Nov 2019 23:36:40 -0800 Subject: [PATCH] Fix package.bat version parsing The package.bat script parses the first 3 tokens of the version string to determine the file version. This is done to strip "-SNAPSHOT" from the version string since the file version can only contain a numeric version number. --- desktop/package/windows/package.bat | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/desktop/package/windows/package.bat b/desktop/package/windows/package.bat index fe1abc93fac..44c93561560 100644 --- a/desktop/package/windows/package.bat +++ b/desktop/package/windows/package.bat @@ -17,7 +17,7 @@ if not exist "%JAVA_HOME%\bin\javapackager.exe" ( set JAVA_HOME=%ProgramFiles%\Java\jdk-10.0.2 ) set package_dir=%~dp0.. -for /F "tokens=1.2.3-SNAPSHOT delims=.-" %%a in ("%version%") do ( +for /F "tokens=1,2,3 delims=.-" %%a in ("%version%") do ( set file_version=%%a.%%b.%%c )