Skip to content

Commit

Permalink
use the linux amd64 binaries (issue #52)
Browse files Browse the repository at this point in the history
This commit will use the `workdir-linux64` artifact to get the correct
binaries. To fix the issue Grzegorz Kowal has to merge the
[PR #11](https://sourceforge.net/p/launch4j/git/merge-requests/11/) and
publish the `workdir-linux64` artifact.
  • Loading branch information
TheBoegl committed Mar 13, 2017
1 parent cb5e20f commit 35efac1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/main/groovy/edu/sc/seis/launch4j/Launch4jPlugin.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,12 @@ class Launch4jPlugin implements Plugin<Project> {
} else if (os.isMacOsX()) {
return 'workdir-mac'
} else if (os.isLinux() || os.isUnix()) { // isUnix will also match MacOs, hence, call it as last resort
return 'workdir-linux'
String arch = System.getProperty("os.arch")
if ("amd64".equals(arch) || "x86_64".equals(arch)) {
return 'workdir-linux64'
} else {
return 'workdir-linux'
}
}
return ''
}
Expand Down

0 comments on commit 35efac1

Please sign in to comment.