Skip to content

Commit

Permalink
chore(windows): Support before-quit-for-update event
Browse files Browse the repository at this point in the history
  • Loading branch information
lijy91 committed Mar 31, 2024
1 parent 41d8443 commit ef26b7f
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 5 deletions.
4 changes: 4 additions & 0 deletions packages/auto_updater/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.2.1

* chore(windows): Support before-quit-for-update event

## 0.2.0

* feat: Convert to federated plugin
Expand Down
4 changes: 2 additions & 2 deletions packages/auto_updater/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -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
Expand Down
4 changes: 4 additions & 0 deletions packages/auto_updater_windows/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.2.1

* chore(windows): Support before-quit-for-update event

## 0.2.0

* First release.
2 changes: 1 addition & 1 deletion packages/auto_updater_windows/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
4 changes: 2 additions & 2 deletions packages/auto_updater_windows/windows/auto_updater.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down Expand Up @@ -164,6 +164,6 @@ void __onUserRunInstallerCallback() {
AutoUpdater* autoUpdater = AutoUpdater::GetInstance();
if (autoUpdater == nullptr)
return;
autoUpdater->OnWinSparkleEvent("before-quit-for-update");
autoUpdater->OnWinSparkleEvent("userRunInstaller");
}
} // namespace

0 comments on commit ef26b7f

Please sign in to comment.