Skip to content

Commit

Permalink
compile-scheme: Honor SOURCE_DATE_EPOCH (#16)
Browse files Browse the repository at this point in the history
This allows the generated vst files to become reproducible as
they otherwise differ by the build date:

  -INSERT INTO metadata VALUES('scheme-compiled-date','2024-08-26 19:46:00 +0000');
  +INSERT INTO metadata VALUES('scheme-compiled-date','2024-08-26 19:56:08 +0000');

See https://reproducible-builds.org/docs/source-date-epoch/ for details
  • Loading branch information
agx authored Aug 28, 2024
1 parent e3423a9 commit e7c6017
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compile-scheme.rb
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ def set_scheme_details()
d[:langCode] = FFI::MemoryPointer.from_string($scheme_details[:langCode])
d[:displayName] = FFI::MemoryPointer.from_string($scheme_details[:displayName])
d[:author] = FFI::MemoryPointer.from_string($scheme_details[:author])
d[:compiledDate] = FFI::MemoryPointer.from_string(Time.now.to_s)
d[:compiledDate] = FFI::MemoryPointer.from_string(ENV['SOURCE_DATE_EPOCH'] || Time.now.to_s)
if $scheme_details[:isStable].nil?
d[:isStable] = 0
else
Expand Down

0 comments on commit e7c6017

Please sign in to comment.