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.
This commit is contained in:
Devin Bileck 2019-11-18 23:36:40 -08:00
parent 906a2526e0
commit 3f91f60cd3
No known key found for this signature in database
GPG key ID: C86D829C2399D073

View file

@ -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
)