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

fyne package macOS missing mmacosx-version-min #886

Closed
andrewarrow opened this issue Apr 20, 2020 · 8 comments
Closed

fyne package macOS missing mmacosx-version-min #886

andrewarrow opened this issue Apr 20, 2020 · 8 comments
Labels
blocker Items that would block a forthcoming release OS:macOS Tickets affecting only macOS

Comments

@andrewarrow
Copy link

Is your feature request related to a problem? Please describe:

My binary runs in mac but the terminal window opens and I want to distribute it with an icon and maybe a nice .dmg image disk installer.

Is it possible to construct a solution with the existing API?

This feels like a whole other part of the fyne echo system if it doesn't already exist?

Describe the solution you'd like to see:

A whole documented system for how to release your final fyne binary on mac, windows and linux.

mac

when I right click on a normal MacOS app I get "Show Package Contents" menu option and then all this inside the .app file ^

What's the process for distributing apps created with fyne to the Mac App Store?

@andrewarrow
Copy link
Author

oh, i found https://fyne.io/develop/distribution thanks!

@andrewarrow
Copy link
Author

andrewarrow commented Apr 25, 2020

Ran into a few more issues:

export CGO_CFLAGS=-mmacosx-version-min=10.8   
export CGO_LDFLAGS=-mmacosx-version-min=10.8

Had to set these when building for a target less than my mac's version.

Also a friend got:

dyld: Library not loaded: /usr/local/opt/portaudio/lib/libportaudio.2.dylib

And to fix he did brew install portaudio but how can I make fyne package include that dylib?

image

i.e. we need some system for "Frameworks"? This image above is from another mac app (Zoom) which includes some dylibs.

@andrewarrow andrewarrow reopened this Apr 25, 2020
@andrewarrow andrewarrow changed the title packaging, signing, and Mac AppStore fyne package aka distribution Apr 25, 2020
@andrewarrow
Copy link
Author

And 1 more thing that didn't work in testing, he got message:

https://discussions.apple.com/thread/7022499

Check with the developer to make sure "foo" works with this version of OS X.

This was when he was trying to just open foo.app fyne package produced. Finally I sent him just the binary and he chmod +x foo and ran it from terminal and then that worked. (After brew install portaudio issue was fixed.)

@andrewarrow andrewarrow changed the title fyne package aka distribution fyne package aka distribution: (mmacosx-version-min issue, dylib frameworks, and 'works with this version of OS X') Apr 25, 2020
@andrewarrow andrewarrow changed the title fyne package aka distribution: (mmacosx-version-min issue, dylib frameworks, and 'works with this version of OS X') fyne package aka distribution: (mmacosx-version-min, dylib) Apr 25, 2020
@andydotxyz
Copy link
Member

You can manually install .dylib to our app bundle after fyne package similar to: http://www.chilkatforum.com/questions/4235/how-to-distribute-a-dylib-with-a-mac-os-x-application

It's possible that we could somehow simplfy this process, but it's hard to think how to do this in platform agnostic manner... Please open a feature request if this is something you want to explore further

@andydotxyz
Copy link
Member

And 1 more thing that didn't work in testing, he got message:

I looked up that thread but could not understand how installers relate to our app packages. This should just work. Perhaps you can open a fresh issue with the error information and details of his computer?

@andydotxyz
Copy link
Member

"fyne package" is pretty complete now, for app based distribution (not installers) and "fyne release" does the same for store upload.
Changing this to be specifically about the min-version

@andydotxyz andydotxyz changed the title fyne package aka distribution: (mmacosx-version-min, dylib) fyne package macOS missing mmacosx-version-min Nov 17, 2020
@andydotxyz andydotxyz added the OS:macOS Tickets affecting only macOS label Nov 17, 2020
@andydotxyz andydotxyz added the blocker Items that would block a forthcoming release label Nov 17, 2020
andydotxyz added a commit to andydotxyz/fyne that referenced this issue Nov 27, 2020
This suppports most computers sold in the last 12 years
and goes beyond Apple support plans.

Fixes fyne-io#886
@andydotxyz
Copy link
Member

Updated the min to 10.11 in PR #1612 if you'd like to test @andrewarrow

@andydotxyz
Copy link
Member

Now on branch release/v1.4.x and prepping for 1.4.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocker Items that would block a forthcoming release OS:macOS Tickets affecting only macOS
Projects
None yet
Development

No branches or pull requests

2 participants