feat(BRIDGE-356): Added retry logic for unavailable preferred keychain on Linux; Feature flag support before bridge initialization; Refactored some bits of the code;

This commit is contained in:
Atanas Janeshliev
2025-07-02 16:34:32 +02:00
parent 20183bf984
commit de3fd34998
33 changed files with 716 additions and 87 deletions

View File

@ -25,6 +25,7 @@ import (
"path/filepath"
"runtime"
"github.com/ProtonMail/proton-bridge/v3/internal/platform"
"github.com/sirupsen/logrus"
)
@ -91,7 +92,7 @@ func UntarToDir(r io.Reader, dir string) error {
if _, err := io.Copy(f, lr); err != nil {
return err
}
if runtime.GOOS != "windows" {
if runtime.GOOS != platform.WINDOWS {
if err := f.Chmod(header.FileInfo().Mode()); err != nil {
return err
}