Skip to content

Commit

Permalink
Guard against conflicting JNA version
Browse files Browse the repository at this point in the history
Allow installer and app to run even when a newer version of JNA is
installed on $PATH
Closes #577
  • Loading branch information
tresf committed Feb 10, 2020
1 parent 44a4124 commit dfb0d18
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ant/project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ project.name=QZ Tray
project.filename=qz-tray
project.datadir=qz

launch.opts=-Xms512m
launch.opts=-Xms512m -Djna.nosys=true

src.dir=${basedir}/src
out.dir=${basedir}/out
Expand Down
4 changes: 2 additions & 2 deletions ant/windows/windows-installer.nsi.in
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ RequestExecutionLevel admin
SetDetailsPrint textonly
DetailPrint "Running ${step}..."
SetDetailsPrint listonly
DetailPrint 'Running ${step}: $java -jar "$OUTDIR\${project.filename}.jar" "${step}" "${option}" "${value}"'
DetailPrint 'Running ${step}: $java ${launch.opts} -jar "$OUTDIR\${project.filename}.jar" "${step}" "${option}" "${value}"'
SetDetailsPrint both
ClearErrors
nsExec::ExecToLog '$java -jar "$OUTDIR\${project.filename}.jar" "${step}" "${option}" "${value}"'
nsExec::ExecToLog '$java ${launch.opts} -jar "$OUTDIR\${project.filename}.jar" "${step}" "${option}" "${value}"'
Pop $0
${If} "$0" != "0"
Abort "Installation failed during ${step} step. Please check log for details."
Expand Down

0 comments on commit dfb0d18

Please sign in to comment.