name: coder
platform: linux
arch: "${GOARCH}"
version: "${CODER_VERSION}"
version_schema: semver
release: 1

vendor: Coder
homepage: https://coder.com
maintainer: Coder <support@coder.com>
description: |
  Provision development environments with infrastructure with code
license: AGPL-3.0

suggests:
  - postgresql

scripts:
  preinstall: preinstall.sh

contents:
  - src: coder
    dst: /usr/bin/coder
  - src: coder.env
    dst: /etc/coder.d/coder.env
    type: "config|noreplace"
  - src: coder.service
    dst: /usr/lib/systemd/system/coder.service
