mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-27 03:54:24 +01:00
* ci: fix sha for unsigned client archives * ci: split package used for signing and universal builds
30 lines
1.5 KiB
JavaScript
30 lines
1.5 KiB
JavaScript
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
/*---------------------------------------------------------------------------------------------
|
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
*--------------------------------------------------------------------------------------------*/
|
|
const codesign_1 = require("../common/codesign");
|
|
const publish_1 = require("../common/publish");
|
|
async function main() {
|
|
const arch = (0, publish_1.e)('VSCODE_ARCH');
|
|
const esrpCliDLLPath = (0, publish_1.e)('EsrpCliDllPath');
|
|
const pipelineWorkspace = (0, publish_1.e)('PIPELINE_WORKSPACE');
|
|
const folder = `${pipelineWorkspace}/vscode_client_darwin_${arch}_archive`;
|
|
const glob = `VSCode-darwin-${arch}.zip`;
|
|
// Codesign
|
|
(0, codesign_1.printBanner)('Codesign');
|
|
const codeSignTask = (0, codesign_1.spawnCodesignProcess)(esrpCliDLLPath, 'sign-darwin', folder, glob);
|
|
await (0, codesign_1.streamProcessOutputAndCheckResult)('Codesign', codeSignTask);
|
|
// Notarize
|
|
(0, codesign_1.printBanner)('Notarize');
|
|
const notarizeTask = (0, codesign_1.spawnCodesignProcess)(esrpCliDLLPath, 'notarize-darwin', folder, glob);
|
|
await (0, codesign_1.streamProcessOutputAndCheckResult)('Notarize', notarizeTask);
|
|
}
|
|
main().then(() => {
|
|
process.exit(0);
|
|
}, err => {
|
|
console.error(`ERROR: ${err}`);
|
|
process.exit(1);
|
|
});
|
|
//# sourceMappingURL=codesign.js.map
|