refactor: drop the archive manifest (#678)

Restore must read v1.1.0's manifest-less archives from the layout, and that path reads every new archive too,
so the manifest only described the layout a second time.
This commit is contained in:
Roger authored and GitHub committed 2026-11-02 11:11:55 +08:00
1 parent 3e9150249c
commit fce4f288df
17 files changed
+39 -266

No files matched your search

-14
View File
@@ -28,20 +28,6 @@ const (
Safari
)
// String is the base's name in a snapshot manifest.
func (b Base) String() string {
switch b {
case Chromium:
return "chromium"
case Firefox:
return "firefox"
case Safari:
return "safari"
default:
return "unknown"
}
}
// Platform is one OS's half of a Browser; one without UserDataDirs means the browser is not supported there.
type Platform struct {
UserDataDirs []string // slash-separated, relative to the home directory; globs allowed
+1 -1
View File
@@ -176,7 +176,7 @@ func KeyFileSpecs(_ browser.UserDataDir) []browser.FileSpec {
return []browser.FileSpec{localState}
}
// ArchiveFileSpecs add Local State and each profile's marker, so a reader without the manifest finds every profile.
// ArchiveFileSpecs add each profile's marker, by which restore rediscovers the profiles, and Local State as v1.1.0 did.
func ArchiveFileSpecs(_ browser.UserDataDir) []browser.FileSpec {
fileSpecs := []browser.FileSpec{localState}
for _, marker := range profileMarkers {