mirror of
https://github.com/safing/portmaster
synced 2025-09-02 02:29:12 +00:00
Rename special release channel to support
This commit is contained in:
parent
7a68dee2e0
commit
a792a75a48
2 changed files with 13 additions and 7 deletions
|
@ -50,15 +50,21 @@ func registerConfig() error {
|
|||
Value: helper.ReleaseChannelBeta,
|
||||
},
|
||||
{
|
||||
Name: "Special",
|
||||
Description: "Special releases or version changes for troubleshooting. Only use temporarily and when instructed.",
|
||||
Value: helper.ReleaseChannelSpecial,
|
||||
Name: "Support",
|
||||
Description: "Support releases or version changes for troubleshooting. Only use temporarily and when instructed.",
|
||||
Value: helper.ReleaseChannelSupport,
|
||||
},
|
||||
{
|
||||
Name: "Staging",
|
||||
Description: "Dangerous development releases for testing random things and experimenting. Only use temporarily and when instructed.",
|
||||
Value: helper.ReleaseChannelStaging,
|
||||
},
|
||||
// TODO: Remove as soon as everyone has switched away.
|
||||
{
|
||||
Name: "Special (Deprecated!)",
|
||||
Description: "This channel has been deprecated. If selected, the Stable channel will be used instead.",
|
||||
Value: "special",
|
||||
},
|
||||
},
|
||||
Annotations: config.Annotations{
|
||||
config.DisplayOrderAnnotation: -4,
|
||||
|
|
|
@ -10,7 +10,7 @@ const (
|
|||
ReleaseChannelStable = "stable"
|
||||
ReleaseChannelBeta = "beta"
|
||||
ReleaseChannelStaging = "staging"
|
||||
ReleaseChannelSpecial = "special"
|
||||
ReleaseChannelSupport = "support"
|
||||
)
|
||||
|
||||
// SetIndexes sets the update registry indexes and also configures the registry
|
||||
|
@ -48,10 +48,10 @@ func SetIndexes(registry *updater.ResourceRegistry, releaseChannel string) {
|
|||
usePreReleases = true
|
||||
}
|
||||
|
||||
// Add special index if in special channel.
|
||||
if releaseChannel == ReleaseChannelSpecial {
|
||||
// Add support index if in support channel.
|
||||
if releaseChannel == ReleaseChannelSupport {
|
||||
registry.AddIndex(updater.Index{
|
||||
Path: ReleaseChannelSpecial + ".json",
|
||||
Path: ReleaseChannelSupport + ".json",
|
||||
})
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue