void-packages/srcpkgs/Signal-Desktop/patches/expire-from-source-date-epoch.patch
2021-06-29 22:15:15 +00:00

13 lines
502 B
Diff

--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -203,9 +203,7 @@ module.exports = grunt => {
});
grunt.registerTask('getExpireTime', () => {
- grunt.task.requires('gitinfo');
- const gitinfo = grunt.config.get('gitinfo');
- const committed = gitinfo.local.branch.current.lastCommitTime;
+ const committed = parseInt(process.env.SOURCE_DATE_EPOCH, 10) * 1000;
const time = Date.parse(committed) + 1000 * 60 * 60 * 24 * 90;
grunt.file.write(
'config/local-production.json',