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

Add compatibility with 10.11 #144

Merged
merged 3 commits into from
Jul 8, 2018

Conversation

tectiv3
Copy link
Contributor

@tectiv3 tectiv3 commented Jul 7, 2018

What this PR does ?

goapp now can build and bundle apps for macOS 10.11

Fixes

10.11 compatibility

Copy link
Owner

@maxence-charriere maxence-charriere left a comment

Choose a reason for hiding this comment

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

That is super cool.
Thank you so much for this!

Since retro compatibility can affect couple of different things, I would be more comfortable to have it all in one file retro.h that we would include wherever it is required.

That way we don't pollute the other files and where we detect new stuff we just append it in one dedicated place.

cmd/goapp/mac.go Outdated
@@ -213,7 +213,7 @@ func fillBundle(b driver.Bundle, root string) driver.Bundle {
}

if len(b.DeploymentTarget) == 0 {
b.DeploymentTarget = "10.13"
b.DeploymentTarget = "10.11"
Copy link
Owner

Choose a reason for hiding this comment

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

I would like to keep the latest version as a default value.

@tectiv3
Copy link
Contributor Author

tectiv3 commented Jul 8, 2018

Something like this?

Copy link
Owner

@maxence-charriere maxence-charriere left a comment

Choose a reason for hiding this comment

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

Almost there :)

@@ -3,6 +3,10 @@

#import <Cocoa/Cocoa.h>

#if MAC_OS_X_VERSION_MAX_ALLOWED < 101200
Copy link
Owner

Choose a reason for hiding this comment

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

Get rid of these #if and put it just once in retro.h

@tectiv3
Copy link
Contributor Author

tectiv3 commented Jul 8, 2018

done :)

@maxence-charriere maxence-charriere merged commit 0255cc0 into maxence-charriere:master Jul 8, 2018
@maxence-charriere
Copy link
Owner

maxence-charriere commented Jul 8, 2018 via email

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.

None yet

2 participants