Skip to content

Commit

Permalink
Update to UG-Miner
Browse files Browse the repository at this point in the history
  • Loading branch information
UselessGuru authored Jan 5, 2024
1 parent 5a4b046 commit 8b7e3cc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Includes/Include.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -3044,21 +3044,21 @@ Function Get-NMVersion {

$Variables.CheckedForUpdate = Get-Date

If ($UpdateVersion.Product -eq $Variables.Branding.ProductLabel -and [Version]$UpdateVersion.Version -gt $Variables.Branding.Version) {
If ($UpdateVersion.Product -eq "UG-Miner") {
If ($UpdateVersion.AutoUpdate) {
If ($Config.AutoUpdate) {
Write-Message -Level Verbose "Version checker: New Version $($UpdateVersion.Version) found. Starting update..."
Write-Message -Level Verbose "Version checker: New Version $($UpdateVersion.Version) of UG-Miner found. Starting update..."
Initialize-Autoupdate -UpdateVersion $UpdateVersion
}
Else {
Write-Message -Level Verbose "Version checker: New Version $($UpdateVersion.Version) found. Auto Update is disabled in config - You must update manually."
Write-Message -Level Verbose "Version checker: New Version $($UpdateVersion.Version) of UG-Miner found. Auto Update is disabled in config - You must update manually."
}
}
Else {
Write-Message -Level Verbose "Version checker: New Version is available. $($UpdateVersion.Version) does not support auto-update. You must update manually."
}
If ($Config.ShowChangeLog) {
Start-Process "https://github.com/Minerx117/NemosMiner/releases/tag/v$($UpdateVersion.Version)"
Start-Process "https://github.com/UselessGuru/UG-Miner/releases/tag/v$($UpdateVersion.Version)"
}
}
Else {
Expand Down

0 comments on commit 8b7e3cc

Please sign in to comment.