Files
dcr/docs-crowdin-export/ru-RU/docs/self-update.mdx.mdx
2026-07-06 02:21:53 +08:00

47 lines
1.6 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
sidebar_label: Автоматическое обновление
---
# Автоматическое обновление
## dcr --update
Автоматическое обновление до последней версии. Downloads a binary (not an archive) from GitHub Releases and replaces the current executable.
```bash
dcr --update
```
## Как это работает
1. DCR определяет текущую платформу и архитектуру
2. Fetches the latest release from `api.github.com/repos/dexoron/dcr/releases/latest`
3. Compares versions
4. Downloads the matching asset (direct binary URL, not archive)
5. Заменяет текущий исполняемый файл
## Asset naming
Шаблон: `dcr-\<triple>.\<ext> `
| Платформа | Asset name |
| -------------- | ------------------------------------- |
| Linux x86_64 | `dcr-x86_64-unknown-linux-gnu.tar.gz` |
| macOS x86_64 | `dcr-x86_64-apple-darwin.tar.gz` |
| macOS ARM64 | `dcr-aarch64-apple-darwin.tar.gz` |
| Windows x86_64 | `dcr-x86_64-pc-windows-msvc.zip` |
## AUR
Если DCR установлен через AUR, `--update` выводит предупреждение:
```
Update via package manager: yay/paru -Syu {package_name} or sudo pacman -Syu {package_name}
```
## Ошибки
* Не удалось определить платформу — ошибка
* Не удалось скачать релиз — ошибка с URL
* Нет прав на запись бинарника — ошибка (нужен `sudo` или ручная установка)