kur
Clone
https://git.tahinli.com/Tahinli/kur.git
0 watching0 forksRustAGPL-3.073.7 KiB6ae6238Tahinli21 days ago5 commits
| 1 | # Example kur config. Install it as ~/.config/kur/kur.toml (mode 0600). |
| 2 | # Field reference: README.md. Paths may start with ~/, which expands to $HOME/. |
| 3 | |
| 4 | # Forge base URL. A trailing slash is fine. |
| 5 | forge = "https://git.tahinli.com" |
| 6 | |
| 7 | # Optional: file holding a forge token for private repos. Read once at start, trimmed. |
| 8 | # Use a read-only token. Must be mode 0600. |
| 9 | # token_file = "~/.config/kur/token" |
| 10 | |
| 11 | # Optional: where kur keeps .bad and .tag files. Default shown. |
| 12 | # state_dir = "~/.local/state/kur" |
| 13 | |
| 14 | # The im server. Its unit is the user unit im.service, which kur restarts after a swap. |
| 15 | [[app]] |
| 16 | name = "im" |
| 17 | repo = "Tahinli/im" |
| 18 | # {arch} is replaced by the machine architecture (x86_64, aarch64). |
| 19 | asset = "im-{arch}-linux" |
| 20 | path = "~/bin/im" |
| 21 | unit = "im.service" |
| 22 | # im has no --version flag, so there is no pre-swap check. |
| 23 | # health_url must match the listen address in im's config. |
| 24 | health_url = "http://127.0.0.1:7650/healthz" |
| 25 | # health_timeout_secs = 30 |
| 26 | # prerelease = false |
| 27 | |
| 28 | # kur updates itself. There is no unit: the new binary is swapped in and |
| 29 | # used from the next timer run on. kur runs `kur --version` on the new build |
| 30 | # before swapping it in, so a broken build is never installed. |
| 31 | [[app]] |
| 32 | name = "kur" |
| 33 | repo = "Tahinli/kur" |
| 34 | asset = "kur-{arch}-linux" |
| 35 | path = "~/bin/kur" |
| 36 | check = ["--version"] |
| 37 | |
| 38 | # A directory served from a release tarball. kur unpacks it into ~/courier.kur-new, |
| 39 | # swaps it in, and keeps the old one as ~/courier.prev. |
| 40 | # [[app]] |
| 41 | # name = "courier" |
| 42 | # repo = "Tahinli/courier" |
| 43 | # asset = "courier-web.tar.gz" |
| 44 | # path = "~/courier" |
| 45 | # unpack = true |