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
Comments
Hi @wb1992321 |
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 |
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 If this seems like a non-issue feel free to close |
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.
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. |
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 no idea what this means, but if it's about packaging in a disk image, it's out of scope. |
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 |
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...
The directory structure is as follows (I sent out the Runner folder):
Is it possible to generate installable program files?
The text was updated successfully, but these errors were encountered: