Skip to content

Commit 5ef31c3

Browse files
committed
1.3.5
- Improved Defender detection - Added a button to update certificates - Updated dependencies
1 parent aab6c8d commit 5ef31c3

File tree

10 files changed

+145
-48
lines changed

10 files changed

+145
-48
lines changed

inno-setup.iss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
33

44
#define MyAppName "Revision Tool"
5-
#define MyAppVersion "1.3.1"
5+
#define MyAppVersion "1.3.5"
66
#define MyAppPublisher "Revision"
77
#define MyAppURL "https://www.revi.cc/"
88
#define MyAppExeName "revitool.exe"

lib/l10n/generated/localizations.dart

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -523,12 +523,36 @@ abstract class ReviLocalizations {
523523
/// **'Reports Battery health status; Enabling will increase system usage'**
524524
String get miscBHRDescription;
525525

526+
/// The label for Update Root Certificates
527+
///
528+
/// In en, this message translates to:
529+
/// **'Update Root Certificates'**
530+
String get miscCertsLabel;
531+
532+
/// No description provided for @miscCertsDescription.
533+
///
534+
/// In en, this message translates to:
535+
/// **'Use it when having issues with certificates'**
536+
String get miscCertsDescription;
537+
538+
/// The dialog content for Update Root Certificates
539+
///
540+
/// In en, this message translates to:
541+
/// **'Updating of root certificates has finished. Try the software that you had issues with again, and if the issue persists, please contact our support.'**
542+
String get miscCertsDialog;
543+
526544
/// Default state of the Revision Tool's update card label
527545
///
528546
/// In en, this message translates to:
529547
/// **'Update Revision Tool'**
530548
String get settingsUpdateLabel;
531549

550+
/// Update button
551+
///
552+
/// In en, this message translates to:
553+
/// **'Update'**
554+
String get updateButton;
555+
532556
/// Default state of the Revision Tool's update button
533557
///
534558
/// In en, this message translates to:

lib/l10n/generated/localizations_en.dart

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,9 +220,21 @@ class ReviLocalizationsEn extends ReviLocalizations {
220220
@override
221221
String get miscBHRDescription => 'Reports Battery health status; Enabling will increase system usage';
222222

223+
@override
224+
String get miscCertsLabel => 'Update Root Certificates';
225+
226+
@override
227+
String get miscCertsDescription => 'Use it when having issues with certificates';
228+
229+
@override
230+
String get miscCertsDialog => 'Updating of root certificates has finished. Try the software that you had issues with again, and if the issue persists, please contact our support.';
231+
223232
@override
224233
String get settingsUpdateLabel => 'Update Revision Tool';
225234

235+
@override
236+
String get updateButton => 'Update';
237+
226238
@override
227239
String get settingsUpdateButton => 'Check for Updates';
228240

lib/l10n/intl_en.arb

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,10 +292,26 @@
292292
"@miscBHRgDescription": {
293293
"description": "The description for Battery Health Reporting"
294294
},
295+
"miscCertsLabel": "Update Root Certificates",
296+
"@miscCertsLabel": {
297+
"description": "The label for Update Root Certificates"
298+
},
299+
"miscCertsDescription": "Use it when having issues with certificates",
300+
"@miscCertsgDescription": {
301+
"description": "The description for Update Root Certificates"
302+
},
303+
"miscCertsDialog": "Updating of root certificates has finished. Try the software that you had issues with again, and if the issue persists, please contact our support.",
304+
"@miscCertsDialog": {
305+
"description": "The dialog content for Update Root Certificates"
306+
},
295307
"settingsUpdateLabel": "Update Revision Tool",
296308
"@settingsUpdateLabel": {
297309
"description": "Default state of the Revision Tool's update card label"
298310
},
311+
"updateButton": "Update",
312+
"@updateButton": {
313+
"description": "Update button"
314+
},
299315
"settingsUpdateButton": "Check for Updates",
300316
"@settingsUpdateButton": {
301317
"description": "Default state of the Revision Tool's update button"

lib/screens/pages/performance_page.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ class _PerformancePageState extends State<PerformancePage> {
285285
}
286286
},
287287
),
288-
subtitle(content: Text(ReviLocalizations.of(context).perfSectionFS)),
288+
Subtitle(content: Text(ReviLocalizations.of(context).perfSectionFS)),
289289
CardHighlightSwitch(
290290
icon: msicons.FluentIcons.document_bullet_list_clock_20_regular,
291291
label: ReviLocalizations.of(context).perfLTALabel,

lib/screens/pages/security_page.dart

Lines changed: 38 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,10 @@ class _SecurityPageState extends State<SecurityPage> {
4444
),
4545
children: [
4646
Visibility(
47-
visible: (readRegistryInt(
47+
visible: ((readRegistryInt(RegistryHive.localMachine,
48+
r'SYSTEM\ControlSet001\Services\WinDefend', 'Start') !=
49+
4) &&
50+
readRegistryInt(
4851
RegistryHive.localMachine,
4952
r'SOFTWARE\Microsoft\Windows Defender\Features',
5053
'TamperProtection') ==
@@ -99,6 +102,7 @@ class _SecurityPageState extends State<SecurityPage> {
99102
setState(() {
100103
_wdButtonCalled = true;
101104
});
105+
// ignore: use_build_context_synchronously
102106
showDialog(
103107
context: context,
104108
builder: (context) => ContentDialog(
@@ -381,6 +385,39 @@ class _SecurityPageState extends State<SecurityPage> {
381385
}
382386
},
383387
),
388+
389+
CardHighlight(
390+
icon: msicons.FluentIcons.certificate_20_regular,
391+
label: ReviLocalizations.of(context).miscCertsLabel,
392+
description: ReviLocalizations.of(context).miscCertsDescription,
393+
child: SizedBox(
394+
width: 150,
395+
child: Button(
396+
onPressed: () async {
397+
await run(
398+
'PowerShell -NonInteractive -NoLogo -NoP -C "& {\$tmp = (New-TemporaryFile).FullName; CertUtil -generateSSTFromWU -f \$tmp; if ( (Get-Item \$tmp | Measure-Object -Property Length -Sum).sum -gt 0 ) { \$SST_File = Get-ChildItem -Path \$tmp; \$SST_File | Import-Certificate -CertStoreLocation "Cert:\\LocalMachine\\Root"; \$SST_File | Import-Certificate -CertStoreLocation "Cert:\\LocalMachine\\AuthRoot" } Remove-Item -Path \$tmp}"');
399+
400+
// ignore: use_build_context_synchronously
401+
showDialog(
402+
context: context,
403+
builder: (context) => ContentDialog(
404+
content:
405+
Text(ReviLocalizations.of(context).miscCertsDialog),
406+
actions: [
407+
Button(
408+
child: Text(ReviLocalizations.of(context).okButton),
409+
onPressed: () {
410+
Navigator.pop(context);
411+
},
412+
),
413+
],
414+
),
415+
);
416+
},
417+
child: Text(ReviLocalizations.of(context).updateButton),
418+
),
419+
),
420+
),
384421
],
385422
);
386423
}

lib/utils.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ final int buildNumber = int.parse(readRegistryString(
1212
r'SOFTWARE\Microsoft\Windows NT\CurrentVersion\',
1313
'CurrentBuildNumber') as String);
1414

15-
String mainPath = Platform.resolvedExecutable;
16-
String directoryExe = Directory(
15+
final String mainPath = Platform.resolvedExecutable;
16+
final String directoryExe = Directory(
1717
"${mainPath.substring(0, mainPath.lastIndexOf("\\"))}\\data\\flutter_assets\\additionals")
1818
.path;
1919

20-
bool w11 = buildNumber > 19045 ? true : false;
20+
final bool w11 = buildNumber > 19045;
2121
bool expBool = readRegistryInt(RegistryHive.localMachine,
2222
r'SOFTWARE\Revision\Revision Tool', 'Experimental') ==
2323
1;

lib/widgets/subtitle.dart

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,20 @@
11
import 'package:fluent_ui/fluent_ui.dart';
22

3-
Widget subtitle({required Widget content}) {
4-
return Builder(builder: (context) {
5-
return Padding(
6-
padding: const EdgeInsets.only(top: 14.0, bottom: 2.0),
7-
child: DefaultTextStyle(
8-
style: FluentTheme.of(context).typography.subtitle!,
9-
child: content,
10-
),
11-
);
12-
});
3+
class Subtitle extends StatelessWidget {
4+
const Subtitle({super.key, required this.content});
5+
6+
final Widget content;
7+
8+
@override
9+
Widget build(BuildContext context) {
10+
return Builder(builder: (context) {
11+
return Padding(
12+
padding: const EdgeInsets.only(top: 14.0, bottom: 2.0),
13+
child: DefaultTextStyle(
14+
style: FluentTheme.of(context).typography.subtitle!,
15+
child: content,
16+
),
17+
);
18+
});
19+
}
1320
}

pubspec.lock

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ packages:
55
dependency: transitive
66
description:
77
name: args
8-
sha256: c372bb384f273f0c2a8aaaa226dad84dc27c8519a691b888725dec59518ad53a
8+
sha256: eef6c46b622e0494a36c5a12d10d77fb4e855501a91c1b9ef9339326e58f0596
99
url: "https://pub.dev"
1010
source: hosted
11-
version: "2.4.1"
11+
version: "2.4.2"
1212
async:
1313
dependency: transitive
1414
description:
@@ -50,7 +50,7 @@ packages:
5050
source: hosted
5151
version: "1.1.1"
5252
collection:
53-
dependency: transitive
53+
dependency: "direct main"
5454
description:
5555
name: collection
5656
sha256: "4a07be6cb69c84d677a6c3096fcf960cc3285a8330b4603e0d463d15d9bd934c"
@@ -61,10 +61,10 @@ packages:
6161
dependency: "direct main"
6262
description:
6363
name: dio
64-
sha256: "347d56c26d63519552ef9a569f2a593dda99a81fdbdff13c584b7197cfe05059"
64+
sha256: a9d76e72985d7087eb7c5e7903224ae52b337131518d127c554b9405936752b8
6565
url: "https://pub.dev"
6666
source: hosted
67-
version: "5.1.2"
67+
version: "5.2.1+1"
6868
fake_async:
6969
dependency: transitive
7070
description:
@@ -93,18 +93,18 @@ packages:
9393
dependency: "direct main"
9494
description:
9595
name: fluent_ui
96-
sha256: "88d6720cfded16f53ff83f0b6de3063d40664ee21696994fffc5efc5667b4fc5"
96+
sha256: be237134ab215d4a1591307f6286f4aa53ed5a492c2ee56be5d86be344fd16db
9797
url: "https://pub.dev"
9898
source: hosted
99-
version: "4.6.0"
99+
version: "4.7.0"
100100
fluentui_system_icons:
101101
dependency: "direct main"
102102
description:
103103
name: fluentui_system_icons
104-
sha256: ae3685648c572fa8011cec8d59a36278fa500d29f7164d4e769551d48b3ce8af
104+
sha256: "8f7a374e71618c101d631bdfded01f0764c882634534e1966046fd7278fec4d0"
105105
url: "https://pub.dev"
106106
source: hosted
107-
version: "1.1.200"
107+
version: "1.1.205"
108108
flutter:
109109
dependency: "direct main"
110110
description: flutter
@@ -114,10 +114,10 @@ packages:
114114
dependency: "direct dev"
115115
description:
116116
name: flutter_lints
117-
sha256: aeb0b80a8b3709709c9cc496cdc027c5b3216796bc0af0ce1007eaf24464fd4c
117+
sha256: "2118df84ef0c3ca93f96123a616ae8540879991b8b57af2f81b76a7ada49b2a4"
118118
url: "https://pub.dev"
119119
source: hosted
120-
version: "2.0.1"
120+
version: "2.0.2"
121121
flutter_localizations:
122122
dependency: "direct main"
123123
description: flutter
@@ -169,10 +169,10 @@ packages:
169169
dependency: transitive
170170
description:
171171
name: lints
172-
sha256: "6b0206b0bf4f04961fc5438198ccb3a885685cd67d4d4a32cc20ad7f8adbe015"
172+
sha256: "0a217c6c989d21039f1498c3ed9f3ed71b354e69873f13a8dfc3c9fe76f1b452"
173173
url: "https://pub.dev"
174174
source: hosted
175-
version: "2.1.0"
175+
version: "2.1.1"
176176
matcher:
177177
dependency: transitive
178178
description:
@@ -265,10 +265,10 @@ packages:
265265
dependency: transitive
266266
description:
267267
name: path_provider_linux
268-
sha256: "2ae08f2216225427e64ad224a24354221c2c7907e448e6e0e8b57b1eb9f10ad1"
268+
sha256: ffbb8cc9ed2c9ec0e4b7a541e56fd79b138e8f47d2fb86815f15358a349b3b57
269269
url: "https://pub.dev"
270270
source: hosted
271-
version: "2.1.10"
271+
version: "2.1.11"
272272
path_provider_platform_interface:
273273
dependency: transitive
274274
description:
@@ -281,10 +281,10 @@ packages:
281281
dependency: transitive
282282
description:
283283
name: path_provider_windows
284-
sha256: d3f80b32e83ec208ac95253e0cd4d298e104fbc63cb29c5c69edaed43b0c69d6
284+
sha256: "1cb68ba4cd3a795033de62ba1b7b4564dace301f952de6bfb3cd91b202b6ee96"
285285
url: "https://pub.dev"
286286
source: hosted
287-
version: "2.1.6"
287+
version: "2.1.7"
288288
platform:
289289
dependency: transitive
290290
description:
@@ -313,10 +313,10 @@ packages:
313313
dependency: "direct main"
314314
description:
315315
name: process_run
316-
sha256: "4539b7c0a34a4a4979e7345d9f5c6358961d9f53901baf2930807159d08ee59b"
316+
sha256: "0071cece7ca0fdf4aaf2cf84ee3082f3043f18afc7fcfd51f53f9424a8072c04"
317317
url: "https://pub.dev"
318318
source: hosted
319-
version: "0.12.5+3"
319+
version: "0.13.0"
320320
provider:
321321
dependency: "direct main"
322322
description:
@@ -406,10 +406,10 @@ packages:
406406
dependency: "direct main"
407407
description:
408408
name: system_theme
409-
sha256: "28bb63b997c252eee7fea6dc9e3528a9a6bf4b566ccbc8b49926389ca3e2c96b"
409+
sha256: "359e1965d70b9e492c2b1db4dc89544c2b4d0fd24172584d46c45f8df94a364d"
410410
url: "https://pub.dev"
411411
source: hosted
412-
version: "2.1.0"
412+
version: "2.3.0"
413413
system_theme_web:
414414
dependency: transitive
415415
description:
@@ -492,5 +492,5 @@ packages:
492492
source: hosted
493493
version: "3.1.2"
494494
sdks:
495-
dart: ">=3.0.0-417 <=3.0.0"
495+
dart: ">=3.0.0 <4.0.0"
496496
flutter: ">=3.10.0"

pubspec.yaml

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
1717
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
1818
# In Windows, build-name is used as the major, minor, and patch parts
1919
# of the product and file versions while build-number is used as the build suffix.
20-
version: 1.3.1+1
20+
version: 1.3.5+1
2121

2222
environment:
2323
sdk: '>=2.19.2 <3.0.0'
@@ -33,19 +33,20 @@ dependencies:
3333
sdk: flutter
3434
flutter_localizations:
3535
sdk: flutter
36-
intl: '>=0.17.0 <= 1.0.0'
37-
fluent_ui: ^4.3.0
38-
system_theme: ^2.1.0
36+
intl: '>=0.18.0 <= 1.0.0'
37+
fluent_ui: ^4.7.0
38+
system_theme: ^2.3.0
3939
provider: ^6.0.5
40-
path_provider: ^2.0.12
41-
dio: ^5.0.0
42-
win32_registry:
43-
process_run: ^0.12.3+2
40+
path_provider: ^2.0.15
41+
dio: ^5.2.1+1
42+
win32_registry:
43+
process_run: ^0.13.0
4444
window_plus:
4545
git:
4646
url: https://github.com/alexmercerind/window_plus
47-
fluentui_system_icons:
48-
package_info_plus: ^3.0.3
47+
fluentui_system_icons: ^1.1.205
48+
package_info_plus: any
49+
collection: any
4950

5051
dev_dependencies:
5152
flutter_test:

0 commit comments

Comments
 (0)