Spread the update downloads over 6 hours

This commit is contained in:
Fedor Indutny 2025-04-24 15:05:25 -07:00 committed by GitHub
commit 16e877ece4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 194 additions and 5 deletions

View file

@ -0,0 +1,17 @@
// Copyright 2025 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
// Copyright 2021 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
import fs from 'node:fs';
import { join } from 'node:path';
const PACKAGE_FILE = join(__dirname, '..', '..', 'package.json');
const json = JSON.parse(fs.readFileSync(PACKAGE_FILE, { encoding: 'utf8' }));
json.build.mac.releaseInfo.vendor.noDelay = true;
json.build.win.releaseInfo.vendor.noDelay = true;
fs.writeFileSync(PACKAGE_FILE, JSON.stringify(json, null, ' '));