mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-24 12:19:20 +00:00
esm - introduce VSCODE_BUILD_ESM variable (#225586)
This commit is contained in:
@@ -8,6 +8,7 @@ import * as fs from 'fs';
|
||||
import * as minimatch from 'minimatch';
|
||||
import { makeUniversalApp } from 'vscode-universal-bundler';
|
||||
import { spawn } from '@malept/cross-spawn-promise';
|
||||
import { isESM } from '../lib/esm';
|
||||
|
||||
const root = path.dirname(path.dirname(__dirname));
|
||||
|
||||
@@ -31,13 +32,15 @@ async function main(buildDir?: string) {
|
||||
'**/Credits.rtf',
|
||||
];
|
||||
|
||||
const canAsar = !isESM('ASAR disabled in universal build'); // TODO@esm ASAR disabled in ESM
|
||||
|
||||
await makeUniversalApp({
|
||||
x64AppPath,
|
||||
arm64AppPath,
|
||||
asarPath: asarRelativePath,
|
||||
asarPath: canAsar ? asarRelativePath : undefined,
|
||||
outAppPath,
|
||||
force: true,
|
||||
mergeASARs: true,
|
||||
mergeASARs: canAsar,
|
||||
x64ArchFiles: '*/kerberos.node',
|
||||
filesToSkipComparison: (file: string) => {
|
||||
for (const expected of filesToSkip) {
|
||||
|
||||
Reference in New Issue
Block a user