signal-desktop/signal-desktop-5.40.1-expire-from-source-date-epoch.patch

12 lines
405 B
Diff
Raw Normal View History

--- a/ts/scripts/get-expire-time.ts
+++ b/ts/scripts/get-expire-time.ts
@@ -8,7 +8,7 @@ import { writeFileSync } from 'fs';
import { DAY } from '../util/durations';
const unixTimestamp = parseInt(
- execSync('git show -s --format=%ct').toString('utf8'),
+ process.env.SOURCE_DATE_EPOCH || execSync('git show -s --format=%ct').toString('utf8'),
10
);
const buildCreation = unixTimestamp * 1000;