From 50a2c59fed4cb1e7da6d07ab15d1c40f69ddb6a0 Mon Sep 17 00:00:00 2001 From: Dexoron Date: Tue, 7 Jul 2026 11:22:28 +0800 Subject: [PATCH] New translations self-update.mdx (Polish) [ci skip] --- .../pl-PL/docs/self-update.mdx.mdx | 46 +++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 docs-crowdin-export/pl-PL/docs/self-update.mdx.mdx diff --git a/docs-crowdin-export/pl-PL/docs/self-update.mdx.mdx b/docs-crowdin-export/pl-PL/docs/self-update.mdx.mdx new file mode 100644 index 0000000..f9e7e88 --- /dev/null +++ b/docs-crowdin-export/pl-PL/docs/self-update.mdx.mdx @@ -0,0 +1,46 @@ +--- +sidebar_label: Self Update +--- + +# Self Update + +## dcr --update + +Automatic update to the latest version. Downloads a binary (not an archive) from GitHub Releases and replaces the current executable. + +```bash +dcr --update +``` + +## How it works + +1. DCR detects the current platform and architecture +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. Replaces the current executable via `self_replace` + +## Asset naming + +Pattern: `dcr-\` or `dcr-\.exe` + +| Platform | Asset name | +| -------------- | -------------------------------- | +| Linux x86_64 | `dcr-x86_64-unknown-linux-gnu` | +| macOS x86_64 | `dcr-x86_64-apple-darwin` | +| macOS ARM64 | `dcr-aarch64-apple-darwin` | +| Windows x86_64 | `dcr-x86_64-pc-windows-msvc.exe` | + +## AUR + +If DCR was installed via AUR, `--update` shows a warning: + +``` +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 +* No write permission — error (use `sudo` or manual install)