mirror of
https://github.com/dexoron/dcr.git
synced 2026-10-21 19:59:36 +00:00
New translations self-update.mdx (Russian)
[ci skip]
This commit is contained in:
@@ -1,46 +1,46 @@
|
|||||||
---
|
---
|
||||||
sidebar_label: Self Update
|
sidebar_label: Автоматическое обновление
|
||||||
---
|
---
|
||||||
|
|
||||||
# Self Update
|
# Автоматическое обновление
|
||||||
|
|
||||||
## dcr --update
|
## dcr --update
|
||||||
|
|
||||||
Automatic update to the latest version. Downloads a binary (not an archive) from GitHub Releases and replaces the current executable.
|
Автоматическое обновление до последней версии. Downloads a binary (not an archive) from GitHub Releases and replaces the current executable.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
dcr --update
|
dcr --update
|
||||||
```
|
```
|
||||||
|
|
||||||
## How it works
|
## Как это работает
|
||||||
|
|
||||||
1. DCR detects the current platform and architecture
|
1. DCR определяет текущую платформу и архитектуру
|
||||||
2. Fetches the latest release from `api.github.com/repos/dexoron/dcr/releases/latest`
|
2. Fetches the latest release from `api.github.com/repos/dexoron/dcr/releases/latest`
|
||||||
3. Compares versions
|
3. Compares versions
|
||||||
4. Downloads the matching asset (direct binary URL, not archive)
|
4. Downloads the matching asset (direct binary URL, not archive)
|
||||||
5. Replaces the current executable via `self_replace`
|
5. Заменяет текущий исполняемый файл
|
||||||
|
|
||||||
## Asset naming
|
## Asset naming
|
||||||
|
|
||||||
Pattern: `dcr-\<triple>` or `dcr-\<triple>.exe`
|
Шаблон: `dcr-\<triple>.\<ext> `
|
||||||
|
|
||||||
| Platform | Asset name |
|
| Платформа | Asset name |
|
||||||
| -------------- | -------------------------------- |
|
| -------------- | ------------------------------------- |
|
||||||
| Linux x86_64 | `dcr-x86_64-unknown-linux-gnu` |
|
| Linux x86_64 | `dcr-x86_64-unknown-linux-gnu.tar.gz` |
|
||||||
| macOS x86_64 | `dcr-x86_64-apple-darwin` |
|
| macOS x86_64 | `dcr-x86_64-apple-darwin.tar.gz` |
|
||||||
| macOS ARM64 | `dcr-aarch64-apple-darwin` |
|
| macOS ARM64 | `dcr-aarch64-apple-darwin.tar.gz` |
|
||||||
| Windows x86_64 | `dcr-x86_64-pc-windows-msvc.exe` |
|
| Windows x86_64 | `dcr-x86_64-pc-windows-msvc.zip` |
|
||||||
|
|
||||||
## AUR
|
## AUR
|
||||||
|
|
||||||
If DCR was installed via AUR, `--update` shows a warning:
|
Если DCR установлен через AUR, `--update` выводит предупреждение:
|
||||||
|
|
||||||
```
|
```
|
||||||
Update via package manager: yay/paru -Syu {package_name} or sudo pacman -Syu {package_name}
|
Update via package manager: yay/paru -Syu {package_name} or sudo pacman -Syu {package_name}
|
||||||
```
|
```
|
||||||
|
|
||||||
## Errors
|
## Ошибки
|
||||||
|
|
||||||
* Cannot detect platform — error
|
* Не удалось определить платформу — ошибка
|
||||||
* Cannot fetch release — error with URL
|
* Не удалось скачать релиз — ошибка с URL
|
||||||
* No write permission — error (use `sudo` or manual install)
|
* Нет прав на запись бинарника — ошибка (нужен `sudo` или ручная установка)
|
||||||
|
|||||||
Reference in New Issue
Block a user