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

How to ship a Flutter MacOS App Notarize using the command line? #148669

Closed
stephane-archer opened this issue May 20, 2024 · 6 comments
Closed

How to ship a Flutter MacOS App Notarize using the command line? #148669

stephane-archer opened this issue May 20, 2024 · 6 comments
Labels
r: invalid Issue is closed as not valid

Comments

@stephane-archer
Copy link

Steps to reproduce

How to ship a Flutter MacOS App Notarize using the command line?
Here is what I currently do:

flutter clean; flutter build macos;

I have now a Flutter MacOS App in build/macos/Build/Products/Release/
but it's not notarized.

To do that, I open the Xcode project macos/Runner.xcworkspace, create an archive, and then select Distribute App > Direct distribution.

I wait for Xcode to get the green light from Apple Notarize servers then export the app so I can distribute it.

as you can see it's a manual process and I would like to be able to do the same thing using a script.

How to achieve this?

Expected results

up

Actual results

up

Code sample

Code sample
[Paste your code here]

Screenshots or Video

Screenshots / Video demonstration

[Upload media here]

Logs

Logs
[Paste your logs here]

Flutter Doctor output

Doctor output
[Paste your output here]
@kjxbyz
Copy link

kjxbyz commented May 20, 2024

I've implemented it, you're welcome,

The build target is in dmg format and the certificate type is Developer ID Application
https://github.com/picguard/picguard/blob/main/.github/workflows/test-macos-dmg.yml

The build target is in pkg format and the certificate types are Developer ID Application and Developer ID Installer
https://github.com/picguard/picguard/blob/main/.github/workflows/test-macos-pkg.yml

The build target is in pkg format, distributed to mac app store, and the certificate types are Mac App Distribution and Mac Installer Distribution
https://github.com/picguard/picguard/blob/main/.github/workflows/test-macos-pkg-appstore.yml

The build target is in zip format and the certificate type is Developer ID Application
https://github.com/picguard/picguard/blob/main/.github/workflows/test-macos-zip.yml

@darshankawar darshankawar added the in triage Presently being triaged by the triage team label May 21, 2024
@darshankawar
Copy link
Member

@stephane-archer
Please check above and see if it helps to answer your case.
Also check https://developer.apple.com/documentation/security/notarizing_macos_software_before_distribution

@darshankawar darshankawar added the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label May 21, 2024
@github-actions github-actions bot removed the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label May 21, 2024
@darshankawar
Copy link
Member

Does that link answer / resolve your issue ?

@darshankawar darshankawar added the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label May 22, 2024
@stephane-archer
Copy link
Author

I think it will, I'm still working on it

@github-actions github-actions bot removed the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label May 22, 2024
@darshankawar darshankawar added the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label May 22, 2024
@stuartmorgan
Copy link
Contributor

Closing, as this is out of scope for Flutter. Nothing about the process of notarizing an application is Flutter-specific; anyone is welcome to write, or find and use, any automation tools intended for post-build steps.

@stuartmorgan stuartmorgan closed this as not planned Won't fix, can't repro, duplicate, stale May 31, 2024
@stuartmorgan stuartmorgan added r: invalid Issue is closed as not valid and removed waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds in triage Presently being triaged by the triage team labels May 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
r: invalid Issue is closed as not valid
Projects
None yet
Development

No branches or pull requests

4 participants