Skip to content

Commit

Permalink
ver
Browse files Browse the repository at this point in the history
  • Loading branch information
tunisiano187 committed May 11, 2024
1 parent f8fb031 commit 2c2d2ea
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion automatic/megui/update.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@ function global:au_AfterUpdate($Package) {
function global:au_GetLatest {
$url32 = ((Invoke-WebRequest -Uri $releases -UseBasicParsing).Links | Where-Object {$_ -match '.7z'}).href | Select-Object -First 1
$ver = $url32.Split('/')[-2]
$version = "1.0.$($ver.Split('-')[-2])"
if($ver -match "&") {
$ver = $ver -split '&' | Select-Object -First 1
}
$version = "1.0.$($ver)"
$url32 = "https://master.dl.sourceforge.net/project/megui/megui-stable/$ver/MeGUI-$ver-32.7z"

$Latest = @{ URL32 = $url32; Version = $version }
Expand Down

0 comments on commit 2c2d2ea

Please sign in to comment.