in lib/omnibus/packagers/windows_base.rb [122:152]
def try_sign(package_file, url)
cmd = [].tap do |arr|
arr << "signtool.exe"
arr << "sign /v"
arr << "/t #{url}"
arr << "/fd #{algorithm}"
arr << "/sm" if machine_store?
arr << "/s #{cert_store_name}"
arr << "/sha1 #{thumbprint}"
arr << "/d #{project.package_name}"
arr << "\"#{package_file}\""
end.join(" ")
status = shellout(cmd)
if status.exitstatus != 0
log.warn(log_key) do
<<-EOH.strip
Failed to add timestamp with timeserver
STDOUT
------
STDERR
------
EOH
end
end
status.exitstatus == 0
end