Ship Windows x64 through a separately signed official GNU release channel
This commit is contained in:
@@ -52,6 +52,8 @@ def on_server(options):
|
||||
if hashlib.sha256(dest.read_bytes()).hexdigest() != digest:
|
||||
raise ValueError('staged slot already contains different build: ' + name)
|
||||
inputs = ['--artifacts', str(build), '--build-receipt', str(build / options['receipt'])]
|
||||
if options['official']:
|
||||
inputs.append('--official-windows')
|
||||
if not options['worker_only']:
|
||||
subprocess.run(['python3', '-I', str(tool), 'prepare', *inputs, '--state', str(state), '--gateway', options['gateway'],
|
||||
'--service-uid','10001','--minimum-updater-version',str(options['minimum']),'--sequence',str(options['sequence']),'--version',options['version']],check=True)
|
||||
@@ -128,6 +130,7 @@ def main():
|
||||
parser.add_argument('--rotate-worker-only',action='store_true',help='Publish just the stable worker from its build receipt and rotate its tenant pin')
|
||||
parser.add_argument('--gateway',default='https://discovery.ease-technologies.de')
|
||||
parser.add_argument('--tenant',default='11111111-1111-4111-8111-111111111111')
|
||||
parser.add_argument('--official-windows',action='store_true',help='Sign with the separate official Windows GNU key')
|
||||
parser.add_argument('--prepare-only',action='store_true')
|
||||
args=parser.parse_args()
|
||||
if args.rotate_worker_only:
|
||||
@@ -144,8 +147,8 @@ def main():
|
||||
params={'files':{f.name:hashlib.sha256(f.read_bytes()).hexdigest() for f in files},'tool':hashlib.sha256(tool.read_bytes()).hexdigest(),
|
||||
'receipt':args.build_receipt.name,'sequence':args.sequence,'version':args.version,'tenant':args.tenant,
|
||||
'worker_only':args.rotate_worker_only,'worker_sha':descriptors[-1]['sha256'],
|
||||
'minimum':args.minimum_updater_version,'rotate':args.rotate_bootstrap_from,'gateway':args.gateway,'prepare_only':args.prepare_only,'label':{agent_release.LINUX:'linux',
|
||||
agent_release.WINDOWS:'windows',agent_release.WINDOWS_GNU:'windows-gnu'}[platform]}
|
||||
'minimum':args.minimum_updater_version,'rotate':args.rotate_bootstrap_from,'gateway':args.gateway,'prepare_only':args.prepare_only,'official':args.official_windows,
|
||||
'label':agent_release.release_label(platform,args.official_windows)}
|
||||
subprocess.run([sys.executable,str(ROOT/'tools/dev_stage.py'),'server',*map(str,files),str(tool)],check=True)
|
||||
command=inspect.getsource(on_server)+'\non_server('+repr(params)+')\n'
|
||||
subprocess.run([*ssh_prefix('server'),shlex.join(['python3','-I','-'])],input=command,text=True,check=True)
|
||||
|
||||
Reference in New Issue
Block a user