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

‘Flutter build windows’ product cannot run on some computers #63646

Closed
wb1992321 opened this issue Aug 13, 2020 · 7 comments
Closed

‘Flutter build windows’ product cannot run on some computers #63646

wb1992321 opened this issue Aug 13, 2020 · 7 comments
Labels
a: build Building flutter applications with the tool a: quality A truly polished experience c: new feature Nothing broken; request for a new capability platform-windows Building on or for Windows specifically

Comments

@wb1992321
Copy link

The product generated by ‘flutter build windows’ is not an installation program, but an execution program and depends on the current directory environment. If you need to send it to others, you need to send the entire folder of Runner, and it will...

image

The directory structure is as follows (I sent out the Runner folder):

image

image

Is it possible to generate installable program files?

@markusaksli-nc
Copy link
Member

Hi @wb1992321
Did I understand correctly that you cannot open the application when copying the Release folder to a different windows machine opening the flutter executable? Could you translate what this error says or copy the text here?
Thank you

@markusaksli-nc markusaksli-nc added in triage Presently being triaged by the triage team waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds labels Aug 13, 2020
@wb1992321
Copy link
Author

Hi @wb1992321
Did I understand correctly that you cannot open the application when copying the Release folder to a different windows machine opening the flutter executable? Could you translate what this error says or copy the text here?
Thank you

The product compiled by "flutter build windows" cannot be directly sent to the computer of other ordinary users, because his computer may lack components, so if possible, I hope to be able to compile a package that needs to be installed, and install the required program environment to On the computer. MacOS also encountered the same problem. The only app file cannot be generated for dmg files. Fortunately, the macOS environment is relatively uniform, and the lack of related components rarely occurs.

Note: From Google Translate

@no-response no-response bot removed the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Aug 13, 2020
@markusaksli-nc
Copy link
Member

markusaksli-nc commented Aug 13, 2020

I'm going to label this as a new feature request for a flutter windows installer build option. Not sure what this installer would do other than unpacking the contents of Release. Does a flutter windows app depend on anything that the installer could bundle? I was able to run the exe on all of my machines.

If this seems like a non-issue feel free to close

@markusaksli-nc markusaksli-nc added a: build Building flutter applications with the tool a: quality A truly polished experience platform-windows Building on or for Windows specifically c: new feature Nothing broken; request for a new capability and removed in triage Presently being triaged by the triage team labels Aug 13, 2020
@stuartmorgan
Copy link
Contributor

There are different kinds of installers, with different targets; one option isn't going to satisfy all use cases. I've filed #63672 to consider MSIX, however, which is an option that is worth considering as a built-in.

The error in the screenshot is due to not reading https://github.com/flutter/flutter/wiki/Desktop-shells#distributing. Since this is already documented (and to the extent that there's a feature request here, the issue above tracks it), closing.

MacOS also encountered the same problem.

Everything you have described in this issue is entirely Windows-specific, and there is no comparable structure on macOS (which has application bundles as a core OS concept), so I have no idea what this is referring to. If you have issues with macOS, you'll need to file a specific bug with details.

@wb1992321
Copy link
Author

Everything you have described in this issue is entirely Windows-specific, and there is no comparable structure on macOS (which has application bundles as a core OS concept), so I have no idea what this is referring to. If you have issues with macOS, you'll need to file a specific bug with details

Of course, there will be no running problems on macOS. I just want to be able to output the installation package file in the'dmg' format instead of the executable file in the'app' format. Of course, this is not a problem, I just want to make it as perfect as possible . I have tried to replace the file on macOS with Dart but it failed. It should be a permission problem, but there is no pop-up permission request and any solution, so I did not continue to try.

@stuartmorgan
Copy link
Contributor

I just want to be able to output the installation package file in the'dmg' format instead of the executable file in the'app' format.

There are plenty of existing utilities/scripts that already exist for packing a macOS application in a disk image for those who want to distribute their app on a disk image. Any of them will work just as well with an app build with Flutter as with any other app. We have no plans to reinvent that wheel, or to pick one specific implementation (especially given that they have different features, aesthetic choices, etc.)

I have tried to replace the file on macOS with Dart but it failed.

I have no idea what this means, but if it's about packaging in a disk image, it's out of scope.

@github-actions
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 17, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
a: build Building flutter applications with the tool a: quality A truly polished experience c: new feature Nothing broken; request for a new capability platform-windows Building on or for Windows specifically
Projects
None yet
Development

No branches or pull requests

3 participants