Bug 1381577 - Part J; Sign setup.exe on windows and error if we try to sign an unknown platform. r=kmoir

Land date changes to support windows nightlies onto central

MozReview-Commit-ID: KFQDaaX2P8v

--HG--
extra : rebase_source : a900c4b8cd0bab92fa7104a0b0b53bb29d6a2450
This commit is contained in:
Justin Wood 2017-07-21 14:17:16 -04:00
Родитель d91a6f7263
Коммит 3857ab8fab
1 изменённых файлов: 18 добавлений и 3 удалений

Просмотреть файл

@ -69,12 +69,25 @@ def _generate_upstream_artifacts(build_platform, is_nightly=False):
'artifacts': ['public/build/target.dmg'],
'format': 'macapp',
}]
elif 'win' in build_platform:
elif 'win64' in build_platform:
artifacts_specificities = [{
'artifacts': ['public/build/target.zip'],
'artifacts': [
'public/build/target.zip',
'public/build/setup.exe'
],
'format': 'sha2signcode',
}]
else:
elif 'win32' in build_platform:
artifacts_specificities = [{
'artifacts': [
'public/build/target.zip',
'public/build/setup.exe',
],
'format': 'sha2signcode',
}]
if is_nightly:
artifacts_specificities[0]['artifacts'] += ['public/build/setup-stub.exe']
elif 'linux' in build_platform:
artifacts_specificities = [{
'artifacts': ['public/build/target.tar.bz2'],
'format': 'gpg',
@ -82,6 +95,8 @@ def _generate_upstream_artifacts(build_platform, is_nightly=False):
'artifacts': ['public/build/update/target.complete.mar'],
'format': 'mar',
}]
else:
raise Exception("Platform not implemented for signing")
return [{
'taskId': {'task-reference': '<build>'},