Skip to content

Commit

Permalink
Merge pull request #22 from tfurci/beta
Browse files Browse the repository at this point in the history
Update to 9.1.0
  • Loading branch information
tfurci authored Jan 17, 2025
2 parents ca29876 + 1ef9e90 commit 826d9fe
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 5 deletions.
5 changes: 3 additions & 2 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
- MAW-MUTER.ahk is now default muting method
- 9.1.0: Update for maw-muter(fix pid muting errors), add force update GUI
- 9.0.0: MAW-MUTER.ahk is now default muting method
- Settings.ini was added to handle multiple options
- Mute apps by PID options was added as fix for some apps(has to be manually enabled)

(OLDER RELEASE)
(8.0.0 older)
- Added configurator to change config files easier.
- Added new muting method maw-muter.ahk (based on my fix for mute_current_application) (needs to be downloaded manually)
- Fix updatemaw.bat updating if auto-updates are disabled
Expand Down
37 changes: 35 additions & 2 deletions MuteActiveWindow/MuteActiveWindow.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ ConfigDir := ScriptDir . "\Config"
ConfigFile := ConfigDir . "\Settings.ini"
ExcludedAppsFile := ConfigDir . "\ExcludedApps.txt"

global ScriptVersion := "9.0.0"
global ScriptVersion := "9.1.0"

; Add custom menu items to the tray menu
AddCustomMenus() ; Add custom menu options on script startup
Expand Down Expand Up @@ -247,6 +247,7 @@ CheckForUpdatesFromMenu() {
}

CheckForUpdates(isFromMenu := false) {
global UpdateScriptBat, UpdateScriptBetaURL, UpdateScriptStableURL
; Define the URL of your raw VERSION text file on GitHub
GitHubStableVersionURL := "https://raw.githubusercontent.com/tfurci/MuteActiveWindow/main/VERSION"
GitHubBetaVersionURL := "https://raw.githubusercontent.com/tfurci/MuteActiveWindow/beta/VERSION"
Expand Down Expand Up @@ -343,7 +344,39 @@ CheckForUpdates(isFromMenu := false) {
}
} else if (isFromMenu) {
; Display a message if called from the menu and versions are the same
MsgBox, Your script is already up-to-date.`n`nLatest available version: v%LatestVersion%`nYour current version: v%ScriptVersion%`n`nChangelog:`n%Changelog%
GuiCurrentVersion := "Current Version: v" ScriptVersion "`nLatest Version: v" LatestVersion
Gui, +AlwaysOnTop +Resize
Gui, Add, Text, w500 h30 Center, %GuiCurrentVersion%
Gui, Add, Text, w500 h150 Center, %Changelog%
Gui, Add, Button, x200 w150 Center gForceUpdate, Force Update
Gui, Add, Button, x200 w150 Center gCancelUpdate, Cancel
Gui, Show,, Update Checker
Return

ForceUpdate:
Gui, Destroy
Gui, +AlwaysOnTop +Resize
Gui, Add, Text,, Select Branch for Force Update:
Gui, Add, Button, gForceStableUpdate, Stable Branch
Gui, Add, Button, gForceBetaUpdate, Beta Branch
Gui, Show,, Force Update
Return

ForceStableUpdate:
URLDownloadToFile, %UpdateScriptStableURL%, %UpdateScriptBat%
Run, %UpdateScriptBat%
Gui, Destroy
Return

ForceBetaUpdate:
URLDownloadToFile, %UpdateScriptBetaURL%, %UpdateScriptBat%
Run, %UpdateScriptBat% -beta
Gui, Destroy
Return

CancelUpdate:
Gui, Destroy
Return
}
}
else {
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
9.0.0
9.1.0

0 comments on commit 826d9fe

Please sign in to comment.