Add support for installing via WinGet on Windows

Đang mở
#73 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
35/100
Loại issue
Tính năng
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
powershell, python
Lĩnh vực
release

Hướng nghiên cứu

Start from the Windows bootstrap path referenced in the issue and the built-in updater that must defer to winget upgrade; compare sibling issues #71 (Homebrew) and #72 (Scoop) to see which distribution channel maintainers pick. Work spans producing a versioned artifact with SHA-256, a manifest PR to microsoft/winget-pkgs, and uninstall/startup ownership checks. Done means the manifest and installer contracts validate and Windows-native install/upgrade/uninstall passes on a clean host — validation the payload notes is not yet available.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Windows bootstrap currently uses WinGet only to acquire missing Git and Python prerequisites. Token Meter itself is not available through winget install.

This is one packaging option alongside Homebrew support and Scoop support. Maintainers should choose the supported distribution channel or channels; this issue does not request a preference or commitment to ship every option.

Proposed behavior

  1. Publish a versioned Windows distributable with an immutable download URL and SHA-256 checksum suitable for a WinGet manifest. The artifact format and release process should be selected by maintainers.
  2. Add a token-meter manifest to microsoft/winget-pkgs, or to another maintainer-selected repository if that is the accepted publication path.
  3. Declare the supported runtime prerequisites in the manifest and retain a per-user installation with no administrator requirement.
  4. Make the installed lifecycle package-aware: winget upgrade owns Token Meter updates. A WinGet-installed runtime must not also fetch, fast-forward, or reinstall itself through the built-in updater.
  5. Preserve the local-only server and Windows notification-area behavior. Uninstall must remove only Token Meter resources it owns, including its current-user startup entry and managed runtime, while preserving user session evidence and unrelated dependencies.
  6. Document the selected WinGet install, update, and uninstall flow beside the existing Windows bootstrap path.

Validation

  • Add manifest and installer contracts for the versioned URL, checksum, declared dependencies, per-user paths, update ownership, and uninstall ownership.
  • On a clean Windows host, validate installation through WinGet, readiness at /health and /menubar, current-user startup, winget upgrade, and uninstall.
  • Windows-native WinGet validation is pending. macOS source checks do not prove WinGet, PowerShell, registry-startup, or notification-area behavior.

No dashboard UI addition or privacy-boundary change is intended.

Ngôn ngữ chính
Python
Star
146
Fork
34
Merge trung bình
14 giờ 35 phút
Pull request đã merge (30 ngày)
64

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của splunk/token-meter

Tất cả issue của splunk/token-meter

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.