Skip to content

Commit

Permalink
Fix package.bat version parsing
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
devinbileck committed Nov 19, 2019
1 parent 906a252 commit 3f91f60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion desktop/package/windows/package.bat
Original file line number Diff line number Diff line change
Expand Up @@ -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
)

Expand Down

0 comments on commit 3f91f60

Please sign in to comment.