mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-02-14 23:18:54 +00:00
Fix safeStorage use in CI
This commit is contained in:
@@ -1662,6 +1662,11 @@ function getSQLKey(): string {
|
|||||||
? safeStorage.getSelectedStorageBackend()
|
? safeStorage.getSelectedStorageBackend()
|
||||||
: undefined;
|
: undefined;
|
||||||
const isEncryptionAvailable =
|
const isEncryptionAvailable =
|
||||||
|
// Don't use safeStorage if not packaged and building preload cache or
|
||||||
|
// running test-electron to avoid blocking prompt on macOS CI.
|
||||||
|
(app.isPackaged ||
|
||||||
|
(!process.env.GENERATE_PRELOAD_CACHE &&
|
||||||
|
!isTestEnvironment(getEnvironment()))) &&
|
||||||
safeStorage.isEncryptionAvailable() &&
|
safeStorage.isEncryptionAvailable() &&
|
||||||
(!isLinux || safeStorageBackend !== 'basic_text');
|
(!isLinux || safeStorageBackend !== 'basic_text');
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user