Skip to content

Commit

Permalink
winget-source: add
Browse files Browse the repository at this point in the history
  • Loading branch information
taoky committed Sep 14, 2024
1 parent 4f5cd7b commit 1829f0c
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
29 changes: 29 additions & 0 deletions winget-source/winget-source.zh.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
Windows Package Manager (aka. WinGet) 默认软件源。

**修改 WinGet 软件源需要管理员权限,请以管理员身份运行终端。**

### WinGet \>= 1.8

用以下命令替换 winget 源:

<tmpl z-lang="bash">
winget source remove winget
winget source add winget {{endpoint}} --trust-level trusted
</tmpl>

### WinGet \<= 1.7

用以下命令替换 winget 源:

<tmpl z-lang="bash">
winget source remove winget
winget source add winget {{endpoint}}
</tmpl>

若出现 0x80073d1b : smartscreen reputation check failed. 错误,请检查网络连接或暂时关闭 SmartScreen。

如需重置为官方地址,执行以下命令即可:

```bash
winget source reset winget
```
3 changes: 3 additions & 0 deletions winget-source/zh.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
_: WinGet 软件仓库索引
block:
- winget-source

0 comments on commit 1829f0c

Please sign in to comment.