File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 88 <AvaloniaUseCompiledBindingsByDefault >true</AvaloniaUseCompiledBindingsByDefault >
99 <ApplicationIcon >MSUScripterIcon.ico</ApplicationIcon >
1010 <PackageIcon >MSUScripterIcon.ico</PackageIcon >
11- <Version >5.0.2 </Version >
11+ <Version >5.0.3 </Version >
1212 <RuntimeFrameworkVersion >9.0.0</RuntimeFrameworkVersion >
1313 <IncludeSourceRevisionInInformationalVersion >false</IncludeSourceRevisionInInformationalVersion >
1414 <LangVersion >12</LangVersion >
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ public async Task<bool> VerifyInstalledAsync()
3636 var response = await RunCommandAsync ( "--version" ) ;
3737
3838 IsValid = response . Success && VerifyVersionNumber ( response . Result ) &&
39- ! response . Error . Contains ( "Couldn't find ffmpeg" ) ;
39+ ! response . Error . Contains ( "ffmpeg" ) ;
4040
4141 if ( IsValid )
4242 {
@@ -52,8 +52,12 @@ public async Task<bool> VerifyInstalledAsync()
5252
5353 private bool VerifyVersionNumber ( string versionString )
5454 {
55+ if ( versionString . IndexOf ( 'v' ) <= 0 )
56+ {
57+ return false ;
58+ }
5559 var minVersion = MinVersion . VersionStringToDecimal ( ) ;
56- var currentVersion = versionString . Substring ( versionString . IndexOf ( 'v' ) ) . VersionStringToDecimal ( ) ;
60+ var currentVersion = versionString [ versionString . IndexOf ( 'v' ) .. ] . VersionStringToDecimal ( ) ;
5761 return currentVersion >= minVersion ;
5862 }
5963
You can’t perform that action at this time.
0 commit comments