Skip to content

Commit 613307d

Browse files
committed
ci: fix ci
1 parent ba90fa5 commit 613307d

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

.prepare.ps1

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -273,12 +273,12 @@ function Install-AutoHotkey {
273273
Show-Message "Found: $($_.Name)" $StyleCommand
274274
}
275275
$installPath = (Get-ChildItem -Path $downloadFolder -Recurse | Where-Object { $_.Name -match "^$searchFilter$" } | Select-Object -First 1)
276-
if (![System.IO.File]::Exists($installPath)) { Throw "Missing AutoHotkey Executable '$exeName'." }
276+
if (![System.IO.File]::Exists($installPath.FullName)) { Throw "Missing AutoHotkey Executable '$exeName'." }
277277
Show-Message "Installation path: $installPath" $StyleCommand
278278
Show-Message "Installation completed" $StyleStatus
279279

280280
[void](Set-MessageHeader $previousHeader)
281-
return $installPath
281+
return $installPath.FullName
282282
}
283283

284284
function Install-Ahk2Exe {
@@ -301,12 +301,12 @@ function Install-Ahk2Exe {
301301

302302
Show-Message "Verifying installation..." $StyleAction
303303
$installPath = (Get-ChildItem -Path $downloadFolder -Recurse -Filter $exeName | Select-Object -First 1)
304-
if (![System.IO.File]::Exists($installPath)) { Throw "Missing Ahk2Exe Executable '$exeName'." }
304+
if (![System.IO.File]::Exists($installPath.FullName)) { Throw "Missing Ahk2Exe Executable '$exeName'." }
305305
Show-Message "Installation path: $installPath" $StyleCommand
306306
Show-Message "Installation completed" $StyleStatus
307307

308308
[void](Set-MessageHeader $previousHeader)
309-
return $installPath
309+
return $installPath.FullName
310310
}
311311

312312
function Install-BinMod {
@@ -331,12 +331,12 @@ function Install-BinMod {
331331
Invoke-Ahk2Exe -Path "$ahk2exePath" -Base "$ahk2exePath" -In "$downloadFile" -Out "$installPath" -Icon "" -Compression "none" -ResourceId ""
332332

333333
Show-Message "Verifying installation..." $StyleAction
334-
if (![System.IO.File]::Exists($installPath)) { Throw "Missing BinMod Executable '$exeName'." }
334+
if (![System.IO.File]::Exists($installPath.FullName)) { Throw "Missing BinMod Executable '$exeName'." }
335335
Show-Message "Installation path: $installPath" $StyleCommand
336336
Show-Message "Installation completed" $StyleStatus
337337

338338
[void](Set-MessageHeader $previousHeader)
339-
return $installPath
339+
return $installPath.FullName
340340
}
341341

342342
function Install-UPX {
@@ -363,20 +363,20 @@ function Install-UPX {
363363
Invoke-UnzipAllInPlace -FolderPath $downloadFolder
364364

365365
$upxPath = (Get-ChildItem -Path $downloadFolder -Recurse -Filter $exeName | Select-Object -First 1)
366-
if ([string]::IsNullOrEmpty($upxPath)) { Throw "Missing UPX Executable '$upxPath'." }
366+
if ([string]::IsNullOrEmpty($upxPath.FullName)) { Throw "Missing UPX Executable '$upxPath'." }
367367

368368
Show-Message "Copying UPX executable into Ahk2Exe directory..." $StyleAction
369369
Show-Message "Source: $upxPath" $StyleCommand
370370
Show-Message "Destination: $installPath" $StyleCommand
371371
Move-Item -Path $upxPath -Destination $installPath -Force
372372

373373
Show-Message "Verifying installation..." $StyleAction
374-
if (![System.IO.File]::Exists($installPath)) { throw "Failed to install UPX. File was not present in Ahk2Exe folder after installation step completed." }
374+
if (![System.IO.File]::Exists($installPath.FullName)) { throw "Failed to install UPX. File was not present in Ahk2Exe folder after installation step completed." }
375375
Show-Message "Installation path: $installPath" $StyleCommand
376376
Show-Message "Installation completed" $StyleStatus
377377

378378
[void](Set-MessageHeader $previousHeader)
379-
return $installPath
379+
return $installPath.FullName
380380
}
381381

382382
function Invoke-Ahk2Exe {

0 commit comments

Comments
 (0)