File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
src/main/java/com/akathist/maven/plugins/launch4j Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -586,14 +586,21 @@ private void retrieveBinaryBits(Artifact a) throws MojoExecutionException {
586
586
private Artifact chooseBinaryBits () throws MojoExecutionException {
587
587
String plat ;
588
588
String os = System .getProperty ("os.name" );
589
+ String arch = System .getProperty ("os.arch" );
589
590
getLog ().debug ("OS = " + os );
591
+ getLog ().debug ("Architecture = " + arch );
590
592
591
593
// See here for possible values of os.name:
592
594
// http://lopica.sourceforge.net/os.html
593
595
if (os .startsWith ("Windows" )) {
594
596
plat = "win32" ;
595
597
} else if ("Linux" .equals (os )) {
596
- plat = "linux" ;
598
+ if ("amd64" .equals (arch )) {
599
+ plat = "linux64" ;
600
+ }
601
+ else {
602
+ plat = "linux" ;
603
+ }
597
604
} else if ("Solaris" .equals (os ) || "SunOS" .equals (os )) {
598
605
plat = "solaris" ;
599
606
} else if ("Mac OS X" .equals (os ) || "Darwin" .equals (os )) {
You can’t perform that action at this time.
0 commit comments