Skip to content

Commit ef26b7f

Browse files
committed
chore(windows): Support before-quit-for-update event
1 parent 41d8443 commit ef26b7f

File tree

5 files changed

+13
-5
lines changed

5 files changed

+13
-5
lines changed

packages/auto_updater/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.2.1
2+
3+
* chore(windows): Support before-quit-for-update event
4+
15
## 0.2.0
26

37
* feat: Convert to federated plugin

packages/auto_updater/pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: auto_updater
22
description: This plugin allows Flutter desktop apps to automatically update themselves (based on sparkle and winsparkle).
3-
version: 0.2.0
3+
version: 0.2.1
44
homepage: https://github.com/leanflutter/auto_updater
55

66
platforms:
@@ -17,7 +17,7 @@ environment:
1717
dependencies:
1818
auto_updater_macos: ^0.2.0
1919
auto_updater_platform_interface: ^0.2.0
20-
auto_updater_windows: ^0.2.0
20+
auto_updater_windows: ^0.2.1
2121
flutter:
2222
sdk: flutter
2323
json_annotation: ^4.8.0
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.2.1
2+
3+
* chore(windows): Support before-quit-for-update event
4+
15
## 0.2.0
26

37
* First release.

packages/auto_updater_windows/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: auto_updater_windows
22
description: Windows implementation of the auto_updater plugin.
3-
version: 0.2.0
3+
version: 0.2.1
44
repository: https://github.com/leanflutter/auto_updater/tree/main/packages/auto_updater_windows
55

66
environment:

packages/auto_updater_windows/windows/auto_updater.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ void __onShutdownRequestCallback() {
115115
AutoUpdater* autoUpdater = AutoUpdater::GetInstance();
116116
if (autoUpdater == nullptr)
117117
return;
118-
autoUpdater->OnWinSparkleEvent("shutdownRequest");
118+
autoUpdater->OnWinSparkleEvent("before-quit-for-update");
119119
}
120120

121121
void __onDidFindUpdateCallback() {
@@ -164,6 +164,6 @@ void __onUserRunInstallerCallback() {
164164
AutoUpdater* autoUpdater = AutoUpdater::GetInstance();
165165
if (autoUpdater == nullptr)
166166
return;
167-
autoUpdater->OnWinSparkleEvent("before-quit-for-update");
167+
autoUpdater->OnWinSparkleEvent("userRunInstaller");
168168
}
169169
} // namespace

0 commit comments

Comments
 (0)