Skip to content

feat: daily release check installs new HW Widget releases (1.5.0) - #466

Merged
ataturhan21 merged 3 commits into
mainfrom
feat/465-release-updater
Dec 6, 2026
Merged

ataturhan21 merged 3 commits into
mainfrom
feat/465-release-updater

Conversation

@ataturhan21

@ataturhan21 ataturhan21 commented Dec 6, 2026 •

Copy link
Copy Markdown
Member

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 test windows/tests/widget-release-update-test.ps1 runs in windows/tests/run.ps1, so sh tools/verify.sh windows and 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 -Register prints a WARN and never fails the install.
  • The installer now exits 0 on success and 1 on failure (pause kept for double-clicks). The Task Scheduler wrapper writes HWW-INSTALL-DONE <code>, so the outer window returns the inner install's code.
  • Uninstall HW Widget (Windows).cmd: runs -Unregister from %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 -Unregister deletes, 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 ships windows/widget-release-update.ps1.
  • Docs: README (Updates paragraph, uninstall, test table), AGENTS.md layout line, network wording in README, AGENTS.md and site.
  • Release 1.5.0: CHANGELOG entry (2026-12-05), AppInfo.Version, GNOME metadata.json (version 5), macOS appVersion, bug template example.

Fixes #465

How verified

command: sh tools/verify.sh windows
result:  PASS windows: self-test 232 passed, 0 failed; widget-release-update-test 19/19 (after the follow-up commit with the updated updater copies); scripts-test 71 passed, 0 failed (was 52; new: exit codes, -Register only on success incl. the Task Scheduler path and odd folder names, -Unregister, task fallback, uninstall from inside the release check folder)
command: sh tools/verify.sh privacy
result:  PASS privacy
command: powershell -File tools\package.ps1 -Version 1.5.0 -OutDir <scratch>
result:  Packaged version 1.5.0; the zip lists windows/widget-release-update.ps1; -Version 1.4.0 fails as it should

Tag to push after merge: v1.5.0. No workflow change needed: release.yml already uploads the zip and SHA256SUMS.txt with --latest.

@ataturhan21
ataturhan21 merged commit af3fbff into main Dec 6, 2026
5 checks passed
@ataturhan21
ataturhan21 deleted the feat/465-release-updater branch December 6, 2026 05:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Windows: daily release check that installs new HW Widget releases

1 participant