mirror of
https://github.com/safing/portbase
synced 2025-09-01 18:19:57 +00:00
This commit changes the updater package to support custom index files by callling registry.AddIndex(). Note that the previously hard-coded index files stable.json and beta.json have been removed and must be added by using AddIndex() prior to calling LoadIndexes().
16 lines
332 B
Go
16 lines
332 B
Go
package updater
|
|
|
|
// Index describes an index file pulled by the updater.
|
|
type Index struct {
|
|
// Path is the path to the index file
|
|
// on the update server.
|
|
Path string
|
|
|
|
// Stable is set if the index file contains only stable
|
|
// releases.
|
|
Stable bool
|
|
|
|
// Beta is set if the index file contains beta
|
|
// releases.
|
|
Beta bool
|
|
}
|