{{if eq .PackageDescriptor.Package.Type "debian"}}
sudo curl -o /etc/apt/trusted.gpg.d/gitea-{{$.PackageDescriptor.Owner.Name}}.asc
echo "deb $distribution $component" | sudo tee -a /etc/apt/sources.list.d/gitea.list
sudo apt update
{{.locale.Tr "packages.debian.registry.info" | Safe}}
sudo apt install {{$.PackageDescriptor.Package.Name}}={{$.PackageDescriptor.Version.Version}}
{{.locale.Tr "packages.debian.repository.distributions"}} |
{{StringUtils.Join .Distributions ", "}} |
{{.locale.Tr "packages.debian.repository.components"}} |
{{StringUtils.Join .Components ", "}} |
{{.locale.Tr "packages.debian.repository.architectures"}} |
{{StringUtils.Join .Architectures ", "}} |
{{.}} |