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