@@ -7,11 +7,14 @@ function global:au_SearchReplace {
7
7
" .\tools\chocolateyInstall.ps1" = @ {
8
8
" (?i)(^\s*packageName\s*=\s*)('.*')" = " `$ 1'$ ( $Latest.PackageName ) '"
9
9
" (?i)(^\s*FileFullPath\s*=\s*`" [$]toolsDir\\).*" = " `$ {1}$ ( $Latest.FileName32 ) `" "
10
+ " (?i)(^\s*FileFullPath64\s*=\s*`" [$]toolsDir\\).*" = " `$ {1}$ ( $Latest.FileName64 ) `" "
10
11
}
11
12
12
13
" .\legal\VERIFICATION.txt" = @ {
13
14
" (?i)(\s+x32:).*" = " `$ {1} $ ( $Latest.URL32 ) "
14
15
" (?i)(checksum32:).*" = " `$ {1} $ ( $Latest.Checksum32 ) "
16
+ " (?i)(\s+x64:).*" = " `$ {1} $ ( $Latest.URL64 ) "
17
+ " (?i)(checksum64:).*" = " `$ {1} $ ( $Latest.Checksum64 ) "
15
18
" (?i)(Get-RemoteChecksum).*" = " `$ {1} $ ( $Latest.URL32 ) "
16
19
}
17
20
}
@@ -22,15 +25,18 @@ function global:au_BeforeUpdate {
22
25
}
23
26
24
27
function global :au_GetLatest {
25
- $download_page = Invoke-WebRequest - Uri $releases - UseBasicParsing
26
- $re = " ES-[\d\.]+\.zip"
27
- $urlPath = $download_page.links | ? href -match $re | Select-Object - First 1 - Expand href
28
- $version = ($urlPath -split ' -' | Select-Object - Last 1 ).trim(" .zip" )
28
+ $download_page = Invoke-WebRequest - Uri $releases - UseBasicParsing
29
+ $re = " ES-[\d\.]+\.x86.zip"
30
+ $urlPath = $download_page.links | ? href -match $re | Select-Object - First 1 - Expand href
31
+ $re64 = " ES-[\d\.]+\.x64.zip"
32
+ $urlPath64 = $download_page.links | ? href -match $re64 | Select-Object - First 1 - Expand href
33
+ $version = ($urlPath -split ' -' | Select-Object - Last 1 ).trim(" .x86.zip" )
29
34
@ {
30
35
Version = $version
31
36
URL32 = ' https://www.voidtools.com' + $urlPath
37
+ URL64 = ' https://www.voidtools.com' + $urlPath64
32
38
PackageName = ' es'
33
39
}
34
40
}
35
41
36
- update - ChecksumFor none
42
+ update - ChecksumFor none
0 commit comments