Skip to content

Commit e3634bf

Browse files
committed
chore: update WinSparkle to 0.8.3
1 parent 1d81a82 commit e3634bf

File tree

24 files changed

+915
-872
lines changed

24 files changed

+915
-872
lines changed

packages/auto_updater/lib/src/auto_updater.dart

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,13 @@ class AutoUpdater {
108108
case UpdaterEvent.updateInstalled:
109109
// this event is only available on Windows
110110
listener.onUpdaterUpdateInstalled(appcastItem);
111+
case UpdaterEvent.updateDismissed:
112+
// this event is only available on Windows
113+
listener.onUpdaterUpdateCancelled(appcastItem);
114+
case UpdaterEvent.updatePostponed:
115+
case UpdaterEvent.userRunInstaller:
116+
// this event is only available on Windows, ignore it
117+
break;
111118
}
112119
}
113120
}

packages/auto_updater/lib/src/events.dart

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,12 @@ enum UpdaterEvent {
1010
userUpdateChoice,
1111

1212
// these events are only available on Windows
13+
updatePostponed,
14+
updateDismissed,
1315
updateCancelled,
1416
updateSkipped,
15-
updateInstalled;
17+
updateInstalled,
18+
userRunInstaller;
1619

1720
static UpdaterEvent fromString(String name) {
1821
switch (name) {
@@ -36,6 +39,12 @@ enum UpdaterEvent {
3639
return UpdaterEvent.updateSkipped;
3740
case 'update-installed':
3841
return UpdaterEvent.updateInstalled;
42+
case 'update-postponed':
43+
return UpdaterEvent.updatePostponed;
44+
case 'update-dismissed':
45+
return UpdaterEvent.updateDismissed;
46+
case 'user-run-installer':
47+
return UpdaterEvent.userRunInstaller;
3948
default:
4049
throw ArgumentError('Invalid event name: $name');
4150
}

packages/auto_updater/pubspec.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,5 @@ flutter:
3838
default_package: auto_updater_macos
3939
windows:
4040
default_package: auto_updater_windows
41+
linux:
42+
default_package: auto_updater_linux
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
Maintainer:
2-
3-
Vaclav Slavik <[email protected]>
4-
5-
6-
Contributors:
7-
8-
Kohan Ikin <[email protected]>
9-
Christian L. Jacobsen <[email protected]>
10-
Littleboy <[email protected]>
11-
Vasco Veloso
12-
Jonas Emanuel Mueller <[email protected]>
1+
Maintainer:
2+
3+
Vaclav Slavik <[email protected]>
4+
5+
6+
Contributors:
7+
8+
Kohan Ikin <[email protected]>
9+
Christian L. Jacobsen <[email protected]>
10+
Littleboy <[email protected]>
11+
Vasco Veloso
12+
Jonas Emanuel Mueller <[email protected]>
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
1-
Copyright (c) 2009-2023 Vaclav Slavik
2-
3-
Permission is hereby granted, free of charge, to any person obtaining a copy of
4-
this software and associated documentation files (the "Software"), to deal in
5-
the Software without restriction, including without limitation the rights to
6-
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
7-
of the Software, and to permit persons to whom the Software is furnished to do
8-
so, subject to the following conditions:
9-
10-
The above copyright notice and this permission notice shall be included in all
11-
copies or substantial portions of the Software.
12-
13-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19-
SOFTWARE.
20-
21-
22-
23-
24-
This product includes software developed by the OpenSSL Project
25-
for use in the OpenSSL Toolkit (http://www.openssl.org/).
1+
Copyright (c) 2009-2024 Vaclav Slavik
2+
3+
Permission is hereby granted, free of charge, to any person obtaining a copy of
4+
this software and associated documentation files (the "Software"), to deal in
5+
the Software without restriction, including without limitation the rights to
6+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
7+
of the Software, and to permit persons to whom the Software is furnished to do
8+
so, subject to the following conditions:
9+
10+
The above copyright notice and this permission notice shall be included in all
11+
copies or substantial portions of the Software.
12+
13+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19+
SOFTWARE.
20+
21+
22+
23+
24+
This product includes software developed by the OpenSSL Project
25+
for use in the OpenSSL Toolkit (http://www.openssl.org/).

0 commit comments

Comments
 (0)