Skip to content
This repository was archived by the owner on Aug 13, 2026. It is now read-only.

CCSwitch Usage Widget v1.7.0

Latest

Choose a tag to compare

@Justin-Ju-0413 Justin-Ju-0413 released this 05 Aug 12:53
dd19bbc

Stable source release for the cross-platform usage widget.

Supported platforms

  • Windows 10/11 with Python 3.8 or 3.12 and Tk
  • macOS 12+ with Python 3.8+ (Python 3.12 + Tk recommended); optional pip install pyobjc-framework-Cocoa for frosted glass (auto-falls back to translucent)
  • Packaging smoke verified on GitHub Actions Windows + macOS

What's new in 1.7.0

  • Cross-platform support: font auto-adaptation (PingFang SC / SF Pro on macOS), macOS frosted glass via optional pyobjc, borderless floating window (NSPanel) interaction
  • Database path auto-resolution: manual setting → CC Switch custom config dir → default ~/.cc-switch/cc-switch.db
  • macOS autostart (setup_autostart.sh, LaunchAgent) and packaging (publish_mac.sh, PyInstaller .app)
  • Settings window: database path picker
  • CI: macOS verify + packaging smoke jobs added; Windows jobs unchanged

Install and verify

  1. Clone this tag and run python -m pip install -r requirements.txt.
  2. Run python ccswitch_widget.py.
  3. Optionally run setup_autostart.ps1 (Windows) or setup_autostart.sh (macOS) for autostart.
  4. Verify with python -m unittest discover -s tests -v and python -m py_compile ccswitch_widget.py.

Clean-checkout CI: https://github.com/Justin-Ju-0413/ccswitch-usage-widget/actions/runs/31007424612

Source commit: dd19bbc9a36658dec715d344f2693efced4c23d9

Limits and rollback

  • publish.ps1 / publish_mac.sh perform local verification/package/checksum only and do not publish to GitHub.
  • This is source-only; no EXE/APP is attached.
  • To roll back, run the previous tagged source checkout (v1.6.3); settings and the CC Switch database are not touched.
  • Real-device verified: macOS frosted glass + floating panel confirmed on Tk 9 + pyobjc.