Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refine selection of binary bundle for macOS based on OS version #54

Merged
merged 40 commits into from
Mar 15, 2017

Conversation

thomas3
Copy link
Contributor

@thomas3 thomas3 commented Mar 12, 2017

There are two bundle identifiers for macOS: "mac" and "osx", the latter meant for macOS starting with version 10.8.

lukaszlenart and others added 9 commits July 8, 2015 08:43
…en-plugin

* 'master' of https://github.com/lukaszlenart/launch4j-maven-plugin: (91 commits)
  Adds example wit opts
  Adds version notes
  [maven-release-plugin] prepare for next development iteration
  [maven-release-plugin] prepare release launch4j-maven-plugin-1.7.8
  Migrates to new Tarvis infrastructure
  Use ProcessBuilder to launch 'chmod'
  Corrects small type
  Adds additional info about changes in 1.7.7
  [maven-release-plugin] prepare for next development iteration
  [maven-release-plugin] prepare release launch4j-maven-plugin-1.7.7
  Adds version notes for 1.7.7
  Uses the latest stable version of Launch4j Closes orphan-oss#21
  Adds support for bundledJreAsFallback property Closes orphan-oss#23
  Upgrades to latest snapshot version of Launch4j
  fixes for runtime scoped jars issue#5
  [maven-release-plugin] prepare for next development iteration
  [maven-release-plugin] prepare release launch4j-maven-plugin-1.7.6
  Adds version notes of 1.7.6
  Includes all direct dependencies closes orphan-oss#5
  Adds 1.7.5 version notes
  ...

# Conflicts:
#	.gitignore
#	.travis.yml
#	README
#	README.md
#	pom.xml
#	src/main/java/com/akathist/maven/plugins/launch4j/ClassPath.java
#	src/main/java/com/akathist/maven/plugins/launch4j/Jre.java
#	src/main/java/com/akathist/maven/plugins/launch4j/Launch4jMojo.java
#	src/main/resources/README
#	src/main/resources/README.adoc
…en-plugin

* 'master' of https://github.com/lukaszlenart/launch4j-maven-plugin: (31 commits)
  Adds ability to save config into a file
  Drops languageIndex as this just a fallback, using language itself should be sufficient
  Adds 1.7.15 version notes
  [maven-release-plugin] prepare for next development iteration
  [maven-release-plugin] prepare release launch4j-maven-plugin-1.7.15
  Updates version notes to add info about 1.7.14
  [maven-release-plugin] prepare for next development iteration
  [maven-release-plugin] prepare release launch4j-maven-plugin-1.7.14
  Fixes issue with setting Language Index Closes orphan-oss#50
  overwrite several properties analogous to the ANT task
  fix debug logging / also take config options from InFile into account
  Fixes small typo
  Adds version notes about 1.7.13
  [maven-release-plugin] prepare for next development iteration
  [maven-release-plugin] prepare release launch4j-maven-plugin-1.7.13
  [pom] Update assembly goal to single
  [pom] Update maven-surefire-plugin to 2.19.1
  [pom] Update maven-javadoc-plugin to 2.10.4
  [pom] Update maven-compiler-plugin to 3.6.0
  [pom] Update maven-assembly-plugin to 3.0.0
  ...
@@ -617,6 +606,16 @@ private Artifact chooseBinaryBits() throws MojoExecutionException {
getLaunch4jVersion(), "jar", "workdir-" + plat);
}

private static boolean isBelow10_8(String version) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you name this isBelowMacOSX_10_8 or something?

@lukaszlenart
Copy link
Collaborator

To avoid problems with updating a fork and all those merge commits, read this
http://struts.apache.org/submitting-patches.html#contributing-with-github

it allows to create a pure PRs without need to sync the fork ;-)

@thomas3
Copy link
Contributor Author

thomas3 commented Mar 13, 2017 via email

@lukaszlenart
Copy link
Collaborator

Continue, just for future reference

@lukaszlenart
Copy link
Collaborator

LGTM 👍

@lukaszlenart lukaszlenart merged commit 23e128e into orphan-oss:master Mar 15, 2017
@@ -608,7 +597,7 @@ private Artifact chooseBinaryBits() throws MojoExecutionException {
} else if ("Solaris".equals(os) || "SunOS".equals(os)) {
plat = "solaris";
} else if ("Mac OS X".equals(os) || "Darwin".equals(os)) {
plat = "mac";
plat = isBelowMacOSX_10_8() ? "mac" : "osx";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't that in contrary to what Grzegorz wrote at https://sourceforge.net/p/launch4j/bugs/160/#95fd ?!

launch4j-3.9-workdir-mac.jar and launch4j-3.9-workdir-osx.jar. osx is the 10.8 version.

But you're using the mac version for isBelowMacOSX_10_8() ?!

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the issue is that there is just one package for OSX
https://sourceforge.net/p/launch4j/bugs/160/#59fc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants