Skip to content

Commit baf8ce2

Browse files
committed
chore: release to winget
1 parent a2b3d33 commit baf8ce2

4 files changed

Lines changed: 38 additions & 4 deletions

File tree

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
*.svg filter=lfs diff=lfs merge=lfs -text
2+
*.png filter=lfs diff=lfs merge=lfs -text

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ jobs:
3636
env:
3737
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3838
HOMEBREW_GITHUB_TOKEN: ${{ secrets.HOMEBREW_GITHUB_TOKEN }}
39+
WINGET_GITHUB_TOKEN: ${{ secrets.WINGET_GITHUB_TOKEN }}
3940
MACOS_SIGN_P12: ${{ secrets.MACOS_SIGN_P12 }}
4041
MACOS_SIGN_PASSWORD: ${{ secrets.MACOS_SIGN_PASSWORD }}
4142
MACOS_NOTARY_ISSUER_ID: ${{ secrets.MACOS_NOTARY_ISSUER_ID }}

.goreleaser.yaml

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ archives:
4545
{{- else if eq .Arch "386" }}i386
4646
{{- else }}{{ .Arch }}{{ end }}
4747
{{- if .Arm }}v{{ .Arm }}{{ end }}
48+
format_overrides:
49+
- goos: windows
50+
formats: ['zip']
4851
files:
4952
- README.md
5053
- LICENSE.md
@@ -54,7 +57,7 @@ checksum:
5457
name_template: 'checksums.txt'
5558

5659
snapshot:
57-
version_template: "{{ .Tag }}-next"
60+
version_template: "{{ .Tag }}-devel"
5861

5962
changelog:
6063
sort: asc
@@ -79,7 +82,8 @@ release:
7982
8083
### macOS
8184
```bash
82-
brew install xinnjie/homebrew-onekeymap/onekeymap-cli
85+
brew tap xinnjie/onekeymap
86+
brew install onekeymap-cli
8387
```
8488
8589
### Linux
@@ -111,6 +115,29 @@ release:
111115
### Windows
112116
Extract the zip file and add the directory to your PATH.
113117
118+
winget:
119+
- name: onekeymap-cli
120+
publisher: xinnjie
121+
license: MIT
122+
license_url: "https://github.com/xinnjie/onekeymap-cli/blob/main/LICENSE.md"
123+
homepage: https://github.com/xinnjie/onekeymap-cli
124+
short_description: "Universal keymap configuration tool for VSCode, Zed, IntelliJ and more"
125+
description: |
126+
OneKeymap CLI is a powerful command-line tool that lets you import, export, and synchronize keyboard shortcuts between VSCode, IntelliJ IDEA, Zed, Helix, and more.
127+
Stop reconfiguring keybindings every time you switch editors—maintain one universal keymap and deploy it everywhere.
128+
repository:
129+
owner: xinnjie
130+
name: winget-pkgs
131+
branch: "onekeymap-cli-{{.Version}}"
132+
token: "{{ .Env.WINGET_GITHUB_TOKEN }}"
133+
pull_request:
134+
enabled: true
135+
draft: true
136+
base:
137+
owner: microsoft
138+
name: winget-pkgs
139+
branch: master
140+
114141
homebrew_casks:
115142
- name: onekeymap-cli
116143
repository:

README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ OneKeymap CLI is a powerful command-line tool that lets you import, export, and
2828

2929
- **Homebrew**
3030
```bash
31-
brew install xinnjie/homebrew-onekeymap/onekeymap-cli
31+
brew tap xinnjie/onekeymap
32+
brew install onekeymap-cli
3233
```
3334

3435
#### Linux
@@ -50,7 +51,11 @@ OneKeymap CLI is a powerful command-line tool that lets you import, export, and
5051
```
5152

5253
#### Windows
53-
54+
<!-- TODO(xinnjie): uncomment when winget is available -->
55+
<!-- - **Winget** (Recommended)
56+
```powershell
57+
winget install xinnjie.onekeymap-cli
58+
``` -->
5459
- **Zip Archive**
5560
Download `onekeymap-cli_Windows_<arch>.zip` from [GitHub Releases](https://github.com/xinnjie/onekeymap-cli/releases), extract it, and add the directory to your PATH, or run:
5661
```powershell

0 commit comments

Comments
 (0)