docs(install): improve package managers installation

This commit is contained in:
iyear 2024-04-29 14:32:00 +08:00
parent 436c66fbfa
commit e9bd188932
2 changed files with 74 additions and 20 deletions

View File

@ -63,30 +63,57 @@ curl -sSL https://docs.iyear.me/tdl/install.sh | sudo bash -s -- --version VERSI
## Package Managers
{{< tabs "package managers" >}}
{{< tab "Windows" >}}
#### Scoop
{{<tab "Homebrew" >}}
{{< command >}}
brew install telegram-downloader
{{< /command >}}
{{< /tab >}}
{{<tab "Scoop" >}}
{{< command >}}
scoop bucket add extras
scoop install telegram-downloader
{{< /command >}}
{{< /tab >}}
{{< tab "MacOS" >}}
#### Homebrew
{{<tab "Termux" >}}
{{< command >}}
brew install telegram-downloader
pkg install tdl
{{< /command >}}
{{< /tab >}}
{{<tab "AUR" >}}
{{< command >}}
yay -S tdl
{{< /command >}}
{{< /tab >}}
{{<tab "Nix" >}}
#### nix-env
{{< command >}}
nix-env -iA nixos.tdl
{{< /command >}}
#### NixOS-Configuration
```
environment.systemPackages = [
pkgs.tdl
];
```
#### nix-shell
{{< command >}}
nix-shell -p tdl
{{< /command >}}
{{< /tab >}}
{{< tab "Linux" >}}
Contributions are welcome!
{{< /tab >}}
{{< /tabs >}}
[![Packaging status](https://repology.org/badge/vertical-allrepos/telegram-downloader.svg)](https://repology.org/project/telegram-downloader/versions)
## Prebuilt Binaries
1. Download the archive for the desired operating system, and architecture:

View File

@ -62,30 +62,57 @@ curl -sSL https://docs.iyear.me/tdl/install.sh | sudo bash -s -- --version VERSI
## 包管理器
{{< tabs "package managers" >}}
{{< tab "Windows" >}}
#### Scoop
{{<tab "Homebrew" >}}
{{< command >}}
brew install telegram-downloader
{{< /command >}}
{{< /tab >}}
{{<tab "Scoop" >}}
{{< command >}}
scoop bucket add extras
scoop install telegram-downloader
{{< /command >}}
{{< /tab >}}
{{< tab "MacOS" >}}
#### Homebrew
{{<tab "Termux" >}}
{{< command >}}
brew install telegram-downloader
pkg install tdl
{{< /command >}}
{{< /tab >}}
{{<tab "AUR" >}}
{{< command >}}
yay -S tdl
{{< /command >}}
{{< /tab >}}
{{<tab "Nix" >}}
#### nix-env
{{< command >}}
nix-env -iA nixos.tdl
{{< /command >}}
#### NixOS-Configuration
```
environment.systemPackages = [
pkgs.tdl
];
```
#### nix-shell
{{< command >}}
nix-shell -p tdl
{{< /command >}}
{{< /tab >}}
{{< tab "Linux" >}}
欢迎贡献!
{{< /tab >}}
{{< /tabs >}}
[![Packaging status](https://repology.org/badge/vertical-allrepos/telegram-downloader.svg)](https://repology.org/project/telegram-downloader/versions)
## 预编译二进制
1. 下载指定操作系统和架构的压缩包: