Skip to content

Commit ce21def

Browse files
committed
feat: update to WinSparkle-0.8.3
1 parent 2b28b04 commit ce21def

File tree

8 files changed

+10
-8
lines changed

8 files changed

+10
-8
lines changed

packages/auto_updater/bin/generate_keys.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import 'dart:convert';
22
import 'dart:io';
3+
34
import 'package:path/path.dart' as p;
45

56
Future<void> main(List<String> arguments) async {
@@ -18,7 +19,7 @@ Future<void> main(List<String> arguments) async {
1819
'.plugin_symlinks',
1920
'auto_updater_windows',
2021
'windows',
21-
'WinSparkle-0.8.1',
22+
'WinSparkle-0.8.3',
2223
'bin',
2324
'generate_keys.bat',
2425
],

packages/auto_updater/bin/sign_update.dart

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import 'dart:io';
2+
23
import 'package:path/path.dart' as p;
34

45
class SignUpdateResult {
@@ -23,7 +24,7 @@ SignUpdateResult signUpdate(List<String> args) {
2324
'.plugin_symlinks',
2425
'auto_updater_windows',
2526
'windows',
26-
'WinSparkle-0.8.1',
27+
'WinSparkle-0.8.3',
2728
'bin',
2829
'sign_update.bat',
2930
],
@@ -54,7 +55,8 @@ SignUpdateResult signUpdate(List<String> args) {
5455
stderr.write(processResult.stderr);
5556
}
5657

57-
final RegExp regex = RegExp(r'sparkle:(dsa|ed)Signature="([^"]+)" length="(\d+)"');
58+
final RegExp regex =
59+
RegExp(r'sparkle:(dsa|ed)Signature="([^"]+)" length="(\d+)"');
5860
final RegExpMatch? match = regex.firstMatch(signUpdateOutput!);
5961

6062
if (match == null) {

packages/auto_updater_windows/windows/.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ x86/
1616
# but keep track of directories ending in .cache
1717
!*.[Cc]ache/
1818

19-
!WinSparkle-0.8.1/x64
19+
!WinSparkle-0.8.3/x64

packages/auto_updater_windows/windows/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ cmake_policy(VERSION 3.14...3.25)
1717
set(PLUGIN_NAME "auto_updater_windows_plugin")
1818

1919
# WinSparkle
20-
set(WIN_SPARKLE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/WinSparkle-0.8.1")
20+
set(WIN_SPARKLE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/WinSparkle-0.8.3")
2121
set(WIN_SPARKLE_BINARIES "${WIN_SPARKLE_DIR}/x64/Release/WinSparkle.dll")
2222
set(WIN_SPARKLE_LIBRARIES "${WIN_SPARKLE_DIR}/x64/Release/WinSparkle.lib")
2323

@@ -50,7 +50,7 @@ target_compile_definitions(${PLUGIN_NAME} PRIVATE FLUTTER_PLUGIN_IMPL)
5050
# Source include directories and library dependencies. Add any plugin-specific
5151
# dependencies here.
5252
target_include_directories(${PLUGIN_NAME} INTERFACE
53-
"${CMAKE_CURRENT_SOURCE_DIR}/include"
53+
"${CMAKE_CURRENT_SOURCE_DIR}/include"
5454
"${WIN_SPARKLE_DIR}/include"
5555
)
5656
target_link_libraries(${PLUGIN_NAME} PRIVATE flutter flutter_wrapper_plugin)
Binary file not shown.
Binary file not shown.
Binary file not shown.

packages/auto_updater_windows/windows/auto_updater.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include "WinSparkle-0.8.1/include/winsparkle.h"
1+
#include "WinSparkle-0.8.3/include/winsparkle.h"
22

33
#include <flutter/event_channel.h>
44
#include <flutter/method_channel.h>
@@ -67,7 +67,6 @@ void AutoUpdater::SetFeedURL(std::string feedURL) {
6767
win_sparkle_set_did_find_update_callback(__onDidFindUpdateCallback);
6868
win_sparkle_set_did_not_find_update_callback(__onDidNotFindUpdateCallback);
6969
win_sparkle_set_update_cancelled_callback(__onUpdateCancelledCallback);
70-
7170
win_sparkle_set_update_skipped_callback(__onUpdateSkippedCallback);
7271
win_sparkle_set_update_postponed_callback(__onUpdatePostponedCallback);
7372
win_sparkle_set_update_dismissed_callback(__onUpdateDismissedCallback);

0 commit comments

Comments
 (0)