{{if eq .PackageDescriptor.Package.Type "debian"}}
sudo curl -o /etc/apt/keyrings/forgejo-{{$.PackageDescriptor.Owner.Name}}.asc
echo "deb [signed-by=/etc/apt/keyrings/forgejo-{{$.PackageDescriptor.Owner.Name}}.asc] $distribution $component" | sudo tee -a /etc/apt/sources.list.d/forgejo.list
sudo apt update
{{ctx.Locale.Tr "packages.debian.registry.info"}}
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 ", "}} |
{{.}} |