mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-20 02:08:47 +00:00
29 lines
1.5 KiB
JavaScript
29 lines
1.5 KiB
JavaScript
"use strict";
|
|
/*---------------------------------------------------------------------------------------------
|
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
*--------------------------------------------------------------------------------------------*/
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
const codesign_1 = require("../common/codesign");
|
|
const publish_1 = require("../common/publish");
|
|
async function main() {
|
|
const esrpCliDLLPath = (0, publish_1.e)('EsrpCliDllPath');
|
|
// Start the code sign processes in parallel
|
|
// 1. Codesign deb package
|
|
// 2. Codesign rpm package
|
|
const codesignTask1 = (0, codesign_1.spawnCodesignProcess)(esrpCliDLLPath, 'sign-pgp', '.build/linux/deb', '*.deb');
|
|
const codesignTask2 = (0, codesign_1.spawnCodesignProcess)(esrpCliDLLPath, 'sign-pgp', '.build/linux/rpm', '*.rpm');
|
|
// Codesign deb package
|
|
(0, codesign_1.printBanner)('Codesign deb package');
|
|
await (0, codesign_1.streamProcessOutputAndCheckResult)('Codesign deb package', codesignTask1);
|
|
// Codesign rpm package
|
|
(0, codesign_1.printBanner)('Codesign rpm package');
|
|
await (0, codesign_1.streamProcessOutputAndCheckResult)('Codesign rpm package', codesignTask2);
|
|
}
|
|
main().then(() => {
|
|
process.exit(0);
|
|
}, err => {
|
|
console.error(`ERROR: ${err}`);
|
|
process.exit(1);
|
|
});
|
|
//# sourceMappingURL=codesign.js.map
|