leanflutter / auto_updater

This plugin allows Flutter desktop apps to automatically update themselves (based on sparkle and winsparkle).
MIT License
278 stars 38 forks source link

[Windows] The app just closes when it says 'install update' #18

Closed ollyde closed 2 years ago

ollyde commented 2 years ago

Below

ollyde commented 2 years ago

It works in debugger mode, but not in release mode (msix) it seems.

So starting in debugger mode and tapping update, everything works fine. Soon as we package with msix and release, it crashes on update.

ollyde commented 2 years ago

Our release looks like so using msix: ^3.6.2

// Create and get signature
flutter pub run msix:create

// pubspec.yaml
msix_config:
  display_name: TestApp
  publisher_display_name: Polydelic
  identity_name: com.polydelic.test
  msix_version: 1.0.0.0
  logo_path: ios\Runner\Assets.xcassets\AppIcon.appiconset\1024.png
  capabilities: internetClient, location, microphone, webcam
ollyde commented 2 years ago

For anyone else that's stuck on this, you can use INNO 6. It works great on release :-)

lijy91 commented 2 years ago

winsparkle may not support msix

lijy91 commented 2 years ago

https://github.com/vslavik/winsparkle/wiki/Appcast-Feeds#installer-arguments

Please use inno setup or nsis package