-
Notifications
You must be signed in to change notification settings - Fork 282
Hover: app packaging #207
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
Comments
Maybe a different repo then within the org ? I would really like to see the polish of proper packaging. I was also working on auto updating functionality. Again not finished. |
@joeblew99 no it should not be in another repo of the organization. |
I think it would be better to not have to initialize the packaging, because the configuration files for will change when the pubspec.yaml changes and have to be regenerated. I would prefer something like this: hover package snapcraft
hover package innosetup |
There's a lot of nice stuff in go-flutter-desktop/hover#15. Thanks @jld3103 for getting started on this story and working out a viable solution. I've been discussing with @Drakirus about how to fit packaging into the hover cli. A number of idea's came to mind, and after some brainstorming we've come to realize some changes are required to improve how the packaging features can be used by developers. In the examples here I will pretend that go-flutter-desktop/hover#12 has already been merged, which means that the Packaging and distribution works differently on desktops than it does on mobile. For starters, packaging is optional. The current build outputs can be zipped and distributed. There is no complex structures or file formats needed like there is for mobile. We propose a structure where configuration for packaging tools is separated from the packaging process and the actual packaged output. Packaging methods Packaging configuration Packaging configuration is stored in a folder which should be included in Packaging and packaged output Packaged output files are stored in Breaking change to hover CLI A breaking change to the hover CLI will be introduced. Currently,
This breaking change will also be beneficial to future cross-compiling efforts. |
@GeertJohan On mobile the version of the app changes with the version in the pubspec. The way you mentioned only generates the files once and the user would have to update the version manually. |
@GeertJohan Your approach outlined above looks really good. Going to try out the branch and see if i can help. |
@jld3103 you mean the version number? |
@GeertJohan yes |
@jld3103 I agree, but currently we dont have a version number compiled into the binary anyway. It's still on my wishlist though, with support for override via the --build-number and --build-name flags as well. |
New packaging formats: |
The feature got released into hover |
Regrouping the issues related to app packaging:
Packaging can be done by the user, that why it's not our top priority.
We don't want to add too much dependencies in hover; what we would like to have is commands like
hover package init-snapcraft
,hover package init-innosetup
. Those commands will create templates files that can be customized by the user; once the user is happy with the configuration, he can run manually the actual program that does the packaging.Packaging Status:
Snapcraft
&deb
--------- Add support for linux-appimage hover#39, supports:
linux-appimage
.windows-msi
darwin-bundle
anddarwin-pkg
Packaging requires
Docker
, using docker, you can package from any platform TO any platform. Many thanks to @jld3103 for his work!The text was updated successfully, but these errors were encountered: