# Example kur config. Install it as ~/.config/kur/kur.toml (mode 0600). # Field reference: README.md. Paths may start with ~/, which expands to $HOME/. # Forge base URL. A trailing slash is fine. forge = "https://git.tahinli.com" # Optional: file holding a forge token for private repos. Read once at start, trimmed. # Use a read-only token. Must be mode 0600. # token_file = "~/.config/kur/token" # Optional: where kur keeps .bad and .tag files. Default shown. # state_dir = "~/.local/state/kur" # The im server. Its unit is the user unit im.service, which kur restarts after a swap. [[app]] name = "im" repo = "Tahinli/im" # {arch} is replaced by the machine architecture (x86_64, aarch64). asset = "im-{arch}-linux" path = "~/bin/im" unit = "im.service" # im has no --version flag, so there is no pre-swap check. # health_url must match the listen address in im's config. health_url = "http://127.0.0.1:7650/healthz" # health_timeout_secs = 30 # prerelease = false # kur updates itself. There is no unit: the new binary is swapped in and # used from the next timer run on. kur runs `kur --version` on the new build # before swapping it in, so a broken build is never installed. [[app]] name = "kur" repo = "Tahinli/kur" asset = "kur-{arch}-linux" path = "~/bin/kur" check = ["--version"] # A directory served from a release tarball. kur unpacks it into ~/courier.kur-new, # swaps it in, and keeps the old one as ~/courier.prev. # [[app]] # name = "courier" # repo = "Tahinli/courier" # asset = "courier-web.tar.gz" # path = "~/courier" # unpack = true