go-flutter icon indicating copy to clipboard operation
go-flutter copied to clipboard

New plugin: self-updating package

Open crossle opened this issue 5 years ago • 8 comments

Have any plan add upgrade plugin for go-flutter? like upload to GitHub release package for upgrade.

crossle avatar Sep 23 '19 03:09 crossle

I don't understand the question, hover has a hover upgrade to upgrade the go-flutter dependency.

Do you want a hover plugin upgrade command?

pchampio avatar Sep 23 '19 08:09 pchampio

like auto update https://www.npmjs.com/package/electron-updater

crossle avatar Sep 23 '19 09:09 crossle

No we don't have any plan on adding such features. But soon with #265 and https://github.com/go-flutter-desktop/plugins/pull/26 users (devs) will have the ability to query PlatformVersion (go-flutter version) and ProjectVersion (version of your app in pubspec.yaml).

Once those 2 PRs are merged, flutter dev can show a pop-up info to inform user of an update. When it comes to self-updating package, it is a bit more complex but possible!

pchampio avatar Sep 23 '19 09:09 pchampio

There is an android and iOS downloader that is sort of like a self updater It's API for the plugin could be used for desktop and then a golang self updater is pretty easy.

Downloading a new PKG on Mac will require running the full installer. Do you want in place updating though ?

joeblew99 avatar Dec 07 '19 15:12 joeblew99

https://github.com/rodydavis/auto_updater

crossle avatar Jan 23 '20 09:01 crossle

That plugin uses the official flutter desktop embedder so we can't use it. Also we have some packaging so it would be better to update the whole packaged app and not just the flutter code, because the update go code would be missing.

provokateurin avatar Jan 23 '20 09:01 provokateurin

That plugin

That's not a plugin actually, it's just a desktop Flutter app that's had the Sparkle framework—a popular macOS updater—manually integrated. (Longer term I would hope that a Sparkle-based updated could be built as a plugin, but the necessary APIs aren't in place yet.)

it would be better to update the whole packaged app and not just the flutter code

Sparkle does update the entire application; it's a general-purpose macOS updater. Using it in a go-flutter-desktop application would just be a case of finding the right hook points for calling into the framework, and whatever packaging steps are necessary to bundle it.

stuartmorgan avatar Jan 23 '20 17:01 stuartmorgan

Any improvement for desktop force auto-update? Has anyone been able to integrate it with electronjs-package I need help on this

aydemiromer avatar Jun 23 '21 07:06 aydemiromer