Path: blob/main/build/azure-pipelines/linux/codesign.ts
3520 views
/*---------------------------------------------------------------------------------------------1* Copyright (c) Microsoft Corporation. All rights reserved.2* Licensed under the MIT License. See License.txt in the project root for license information.3*--------------------------------------------------------------------------------------------*/45import { printBanner, spawnCodesignProcess, streamProcessOutputAndCheckResult } from '../common/codesign';6import { e } from '../common/publish';78async function main() {9const esrpCliDLLPath = e('EsrpCliDllPath');1011// Start the code sign processes in parallel12// 1. Codesign deb package13// 2. Codesign rpm package14const codesignTask1 = spawnCodesignProcess(esrpCliDLLPath, 'sign-pgp', '.build/linux/deb', '*.deb');15const codesignTask2 = spawnCodesignProcess(esrpCliDLLPath, 'sign-pgp', '.build/linux/rpm', '*.rpm');1617// Codesign deb package18printBanner('Codesign deb package');19await streamProcessOutputAndCheckResult('Codesign deb package', codesignTask1);2021// Codesign rpm package22printBanner('Codesign rpm package');23await streamProcessOutputAndCheckResult('Codesign rpm package', codesignTask2);24}2526main().then(() => {27process.exit(0);28}, err => {29console.error(`ERROR: ${err}`);30process.exit(1);31});323334