Skip to content

Commit

Permalink
Add -> winget -> auto update
Browse files Browse the repository at this point in the history
  • Loading branch information
YU-7 committed Dec 25, 2024
1 parent 11f8e99 commit 37d77a7
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 25 deletions.
22 changes: 0 additions & 22 deletions .github/workflows/winget

This file was deleted.

13 changes: 13 additions & 0 deletions .github/workflows/winget.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Publish to WinGet
on:
release:
types: [released]
jobs:
publish:
runs-on: windows-latest
steps:
- uses: vedantmgoyal9/winget-releaser@main
with:
identifier: RubyMetric.chsrc
installers-regex: '\.exe$' # Only .exe files
token: ${{ secrets.WINGET_TOKEN }}
7 changes: 6 additions & 1 deletion pkg/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ https://github.com/RubyMetric/chsrc/issues/16
- [x] `Homebrew`
- [x] `Scoop`
- [x] `AUR`
- [x] [Winget
- [ ] `Flatpak`
- [ ] `snap`
- [ ] ...
Expand All @@ -23,7 +24,7 @@ yay -S chsrc-git # Build from the latest main branch (stable)

# Homebrew

https://github.com/Homebrew/homebrew-core/blob/master/Formula/c/chsrc.rb
https://github.com/Homebrew/homebrew-core/blob/master/Formula/c/chsrc.rbRubyMetric.chsrcRubyMetric.chsrc

# Scoop

Expand All @@ -36,3 +37,7 @@ https://github.com/ScoopInstaller/Main/blob/master/bucket/chsrc.json
[chsrc](https://aur.archlinux.org/packages/chsrc):从GitHub Release的代码构建

[chsrc-git](https://aur.archlinux.org/packages/chsrc-git):从最新源码构建的版本,偶尔可能不稳定

# Winget

`winget install RubyMetric.chsrc`:直接使用winget命令安装
4 changes: 2 additions & 2 deletions src/chsrc-main.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
* | czyt <[email protected]>
* | zouri <[email protected]>
* | yongxiang <[email protected]>
* |
* | YU-7 <[email protected]>
* Created On : <2023-08-28>
* Last Modified : <2024-12-18>
* Last Modified : <2024-12-25>
*
* chsrc: Change Source —— 全平台通用命令行换源工具
* ------------------------------------------------------------*/
Expand Down

0 comments on commit 37d77a7

Please sign in to comment.