{{if eq .PackageDescriptor.Package.Type "debian"}}
sudo curl -o /etc/apt/trusted.gpg.d/forgejo-{{$.PackageDescriptor.Owner.Name}}.asc
echo "deb $distribution $component" | sudo tee -a /etc/apt/sources.list.d/forgejo.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 ", "}} |
{{.}} |