diff --git a/packages/auto_updater/CHANGELOG.md b/packages/auto_updater/CHANGELOG.md index 77e3db5..d1d696f 100644 --- a/packages/auto_updater/CHANGELOG.md +++ b/packages/auto_updater/CHANGELOG.md @@ -1,3 +1,7 @@ +## 0.2.1 + +* chore(windows): Support before-quit-for-update event + ## 0.2.0 * feat: Convert to federated plugin diff --git a/packages/auto_updater/pubspec.yaml b/packages/auto_updater/pubspec.yaml index 192d9f7..dc7d9a9 100644 --- a/packages/auto_updater/pubspec.yaml +++ b/packages/auto_updater/pubspec.yaml @@ -1,6 +1,6 @@ name: auto_updater description: This plugin allows Flutter desktop apps to automatically update themselves (based on sparkle and winsparkle). -version: 0.2.0 +version: 0.2.1 homepage: https://github.com/leanflutter/auto_updater platforms: @@ -17,7 +17,7 @@ environment: dependencies: auto_updater_macos: ^0.2.0 auto_updater_platform_interface: ^0.2.0 - auto_updater_windows: ^0.2.0 + auto_updater_windows: ^0.2.1 flutter: sdk: flutter json_annotation: ^4.8.0 diff --git a/packages/auto_updater_windows/CHANGELOG.md b/packages/auto_updater_windows/CHANGELOG.md index 2f145ce..ef66df9 100644 --- a/packages/auto_updater_windows/CHANGELOG.md +++ b/packages/auto_updater_windows/CHANGELOG.md @@ -1,3 +1,7 @@ +## 0.2.1 + +* chore(windows): Support before-quit-for-update event + ## 0.2.0 * First release. diff --git a/packages/auto_updater_windows/pubspec.yaml b/packages/auto_updater_windows/pubspec.yaml index d91d276..cf57a92 100644 --- a/packages/auto_updater_windows/pubspec.yaml +++ b/packages/auto_updater_windows/pubspec.yaml @@ -1,6 +1,6 @@ name: auto_updater_windows description: Windows implementation of the auto_updater plugin. -version: 0.2.0 +version: 0.2.1 repository: https://github.com/leanflutter/auto_updater/tree/main/packages/auto_updater_windows environment: diff --git a/packages/auto_updater_windows/windows/auto_updater.cpp b/packages/auto_updater_windows/windows/auto_updater.cpp index 37eb7c8..d5ea5f3 100644 --- a/packages/auto_updater_windows/windows/auto_updater.cpp +++ b/packages/auto_updater_windows/windows/auto_updater.cpp @@ -115,7 +115,7 @@ void __onShutdownRequestCallback() { AutoUpdater* autoUpdater = AutoUpdater::GetInstance(); if (autoUpdater == nullptr) return; - autoUpdater->OnWinSparkleEvent("shutdownRequest"); + autoUpdater->OnWinSparkleEvent("before-quit-for-update"); } void __onDidFindUpdateCallback() { @@ -164,6 +164,6 @@ void __onUserRunInstallerCallback() { AutoUpdater* autoUpdater = AutoUpdater::GetInstance(); if (autoUpdater == nullptr) return; - autoUpdater->OnWinSparkleEvent("before-quit-for-update"); + autoUpdater->OnWinSparkleEvent("userRunInstaller"); } } // namespace