Repository navigation
feat: daily release check installs new HW Widget releases (1.5.0) - #466
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
Windows only: a daily 00:00 release check that keeps HW Widget at its newest GitHub release, plus release 1.5.0.
windows/widget-release-update.ps1(new): the shared Solarity widget release updater, the same file as in the other widget repos. Its testwindows/tests/widget-release-update-test.ps1runs inwindows/tests/run.ps1, sosh tools/verify.sh windowsand CI run it.Install HW Widget (Windows).cmd: after a good install only (widget exit code 0, 4, 7 or 8), it runs-Register -Widget "HW Widget" -Repo Solarity-AI/system-stats-widget -Asset hw-widget-windows.zip -Installer "Install HW Widget (Windows).cmd" -OutsideVar HWW_OUTSIDE -SourceDir <its folder>. This runs in the real install, never in the sandboxed window that only starts the Task Scheduler install. A failed-Registerprints a WARN and never fails the install.HWW-INSTALL-DONE <code>, so the outer window returns the inner install's code.Uninstall HW Widget (Windows).cmd: runs-Unregisterfrom%LOCALAPPDATA%\Solarity\widget-updates\hw-widget\. When that copy is missing, it deletes the task "HW Widget release update" by name, and it warns if the task stays. Its exit code is 0 when removed and 5 when the CPU temperature helper is left. Everything after the unregister is 1 block that ends with(goto) 2>nul & exit /b, because an install by the daily check runs from a folder that-Unregisterdeletes, and the menu's Uninstall item starts the uninstaller there. Without that block, cmd prints "The batch file cannot be found" and loses the exit code.tools/package.ps1: the zip now shipswindows/widget-release-update.ps1.AppInfo.Version, GNOMEmetadata.json(version 5), macOSappVersion, bug template example.Fixes #465
How verified
Tag to push after merge:
v1.5.0. No workflow change needed: release.yml already uploads the zip and SHA256SUMS.txt with--latest.