name: "code-server"
arch: "${NFPM_ARCH}"
platform: "linux"
version: "v${VERSION}"
section: "devel"
priority: "optional"
maintainer: "Anmol Sethi <hi@nhooyr.io>"
description: |
  Run VS Code in the browser.
vendor: "Coder"
homepage: "https://github.com/coder/code-server"
license: "MIT"

contents:
  - src: ./ci/build/code-server-nfpm.sh
    dst: /usr/bin/code-server

  - src: ./ci/build/code-server@.service
    dst: /usr/lib/systemd/system/code-server@.service

  - src: ./ci/build/code-server-user.service
    dst: /usr/lib/systemd/user/code-server.service

  - src: ./release-standalone/*
    dst: /usr/lib/code-server/