Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/microsoft/vscode.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordeepak1556 <hop2deep@gmail.com>2022-04-06 18:46:53 +0300
committerdeepak1556 <hop2deep@gmail.com>2022-04-06 18:46:53 +0300
commitee8fab7ac7499cdd8ef7c3a7f5fc3b59b3654131 (patch)
tree9cc1b129450d79b7d144e9d65f2e2ffb0cd896bb
parentf4617bb774553ab88bbc9c32defe200dadaef519 (diff)
chore: update vscode-universal-bundler@0.0.4robo/update_universal_bundler
-rw-r--r--build/darwin/create-universal-app.js31
-rw-r--r--build/darwin/create-universal-app.ts31
-rw-r--r--build/package.json2
-rw-r--r--build/yarn.lock22
4 files changed, 47 insertions, 39 deletions
diff --git a/build/darwin/create-universal-app.js b/build/darwin/create-universal-app.js
index 197bf5b2f1b..415db04e77a 100644
--- a/build/darwin/create-universal-app.js
+++ b/build/darwin/create-universal-app.js
@@ -18,26 +18,29 @@ async function main() {
const appName = product.nameLong + '.app';
const x64AppPath = path.join(buildDir, 'VSCode-darwin-x64', appName);
const arm64AppPath = path.join(buildDir, 'VSCode-darwin-arm64', appName);
- const x64AsarPath = path.join(x64AppPath, 'Contents', 'Resources', 'app', 'node_modules.asar');
- const arm64AsarPath = path.join(arm64AppPath, 'Contents', 'Resources', 'app', 'node_modules.asar');
+ const asarPath = path.join('Contents', 'Resources', 'app', 'node_modules.asar');
const outAppPath = path.join(buildDir, `VSCode-darwin-${arch}`, appName);
const productJsonPath = path.resolve(outAppPath, 'Contents', 'Resources', 'app', 'product.json');
await (0, vscode_universal_bundler_1.makeUniversalApp)({
x64AppPath,
arm64AppPath,
- x64AsarPath,
- arm64AsarPath,
- filesToSkip: [
- 'product.json',
- 'Credits.rtf',
- 'CodeResources',
- 'fsevents.node',
- 'Info.plist',
- 'MainMenu.nib',
- '.npmrc'
- ],
+ asarPath,
outAppPath,
- force: true
+ force: true,
+ mergeASARs: true,
+ singleArchFiles: '@(README.md~|LICENSE)',
+ filesToSkipComparison: (file) => {
+ const basename = path.basename(file);
+ return ['debug.js',
+ 'package.json',
+ 'CodeResources',
+ 'MainMenu.nib',
+ 'Credits.rtf',
+ 'product.json'].includes(basename) ||
+ file.startsWith('emoji-regex') ||
+ file.startsWith('node-gyp') ||
+ file.startsWith('es6-promise');
+ }
});
let productJson = await fs.readJson(productJsonPath);
Object.assign(productJson, {
diff --git a/build/darwin/create-universal-app.ts b/build/darwin/create-universal-app.ts
index 7d145eaec71..455e4502ad8 100644
--- a/build/darwin/create-universal-app.ts
+++ b/build/darwin/create-universal-app.ts
@@ -22,27 +22,30 @@ async function main() {
const appName = product.nameLong + '.app';
const x64AppPath = path.join(buildDir, 'VSCode-darwin-x64', appName);
const arm64AppPath = path.join(buildDir, 'VSCode-darwin-arm64', appName);
- const x64AsarPath = path.join(x64AppPath, 'Contents', 'Resources', 'app', 'node_modules.asar');
- const arm64AsarPath = path.join(arm64AppPath, 'Contents', 'Resources', 'app', 'node_modules.asar');
+ const asarPath = path.join('Contents', 'Resources', 'app', 'node_modules.asar');
const outAppPath = path.join(buildDir, `VSCode-darwin-${arch}`, appName);
const productJsonPath = path.resolve(outAppPath, 'Contents', 'Resources', 'app', 'product.json');
await makeUniversalApp({
x64AppPath,
arm64AppPath,
- x64AsarPath,
- arm64AsarPath,
- filesToSkip: [
- 'product.json',
- 'Credits.rtf',
- 'CodeResources',
- 'fsevents.node',
- 'Info.plist', // TODO@deepak1556: regressed with 11.4.2 internal builds
- 'MainMenu.nib', // Generated sequence is not deterministic with Xcode 13
- '.npmrc'
- ],
+ asarPath,
outAppPath,
- force: true
+ force: true,
+ mergeASARs: true,
+ singleArchFiles: '@(README.md~|LICENSE)',
+ filesToSkipComparison: (file: string) => {
+ const basename = path.basename(file);
+ return ['debug.js',
+ 'package.json',
+ 'CodeResources',
+ 'MainMenu.nib',
+ 'Credits.rtf',
+ 'product.json'].includes(basename) ||
+ file.startsWith('emoji-regex') ||
+ file.startsWith('node-gyp') ||
+ file.startsWith('es6-promise');
+ }
});
let productJson = await fs.readJson(productJsonPath);
diff --git a/build/package.json b/build/package.json
index 6e0915f5b8a..bb8edf01b1b 100644
--- a/build/package.json
+++ b/build/package.json
@@ -61,7 +61,7 @@
"source-map": "0.6.1",
"tmp": "^0.2.1",
"vsce": "^1.100.0",
- "vscode-universal-bundler": "^0.0.2"
+ "vscode-universal-bundler": "^0.0.4"
},
"scripts": {
"compile": "../node_modules/.bin/tsc -p tsconfig.build.json",
diff --git a/build/yarn.lock b/build/yarn.lock
index 991283b7502..86ae56cfa71 100644
--- a/build/yarn.lock
+++ b/build/yarn.lock
@@ -850,10 +850,10 @@ array-union@^2.1.0:
resolved "https://registry.yarnpkg.com/array-union/-/array-union-2.1.0.tgz#b798420adbeb1de828d84acd8a2e23d3efe85e8d"
integrity sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==
-asar@^3.0.3:
- version "3.0.3"
- resolved "https://registry.yarnpkg.com/asar/-/asar-3.0.3.tgz#1fef03c2d6d2de0cbad138788e4f7ae03b129c7b"
- integrity sha512-k7zd+KoR+n8pl71PvgElcoKHrVNiSXtw7odKbyNpmgKe7EGRF9Pnu3uLOukD37EvavKwVFxOUpqXTIZC5B5Pmw==
+asar@^3.1.0:
+ version "3.1.0"
+ resolved "https://registry.yarnpkg.com/asar/-/asar-3.1.0.tgz#70b0509449fe3daccc63beb4d3c7d2e24d3c6473"
+ integrity sha512-vyxPxP5arcAqN4F/ebHd/HhwnAiZtwhglvdmc7BR2f0ywbVNTOpSeyhLDbGXtE/y58hv1oC75TaNIXutnsOZsQ==
dependencies:
chromium-pickle-js "^0.2.0"
commander "^5.0.0"
@@ -2434,7 +2434,7 @@ pify@^3.0.0:
resolved "https://registry.yarnpkg.com/pify/-/pify-3.0.0.tgz#e5a4acd2c101fdf3d9a4d07f0dbc4db49dd28176"
integrity sha1-5aSs0sEB/fPZpNB/DbxNtJ3SgXY=
-plist@^3.0.1:
+plist@^3.0.1, plist@^3.0.4:
version "3.0.5"
resolved "https://registry.yarnpkg.com/plist/-/plist-3.0.5.tgz#2cbeb52d10e3cdccccf0c11a63a85d830970a987"
integrity sha512-83vX4eYdQp3vP9SxuYgEM/G/pJQqLUz/V/xzPrzruLs7fz7jxGQ1msZ/mg1nwZxUSuOp4sb+/bEIbRrbzZRxDA==
@@ -2922,16 +2922,18 @@ vsce@^1.100.0:
yauzl "^2.3.1"
yazl "^2.2.2"
-vscode-universal-bundler@^0.0.2:
- version "0.0.2"
- resolved "https://registry.yarnpkg.com/vscode-universal-bundler/-/vscode-universal-bundler-0.0.2.tgz#2c988dac681d3ffe6baec6defac0995cb833c55a"
- integrity sha512-FPJcvKnQGBqFzy6M6Nm2yvAczNLUeXsfYM6GwCex/pUOkvIM2icIHmiSvtMJINlLW1iG+oEwE3/LVbABmcjEmQ==
+vscode-universal-bundler@^0.0.4:
+ version "0.0.4"
+ resolved "https://registry.yarnpkg.com/vscode-universal-bundler/-/vscode-universal-bundler-0.0.4.tgz#fae961d143b92d85f5c44b4d76de9f0c1f91b515"
+ integrity sha512-v6wd/jId22URxOK3lyvcJAAAhH1Dcv3KobVZDRh/871nNT8SG+m1MApM2CgxbP5cCqsp/stCHXixT1wpSdf7eg==
dependencies:
"@malept/cross-spawn-promise" "^1.1.0"
- asar "^3.0.3"
+ asar "^3.1.0"
debug "^4.3.1"
dir-compare "^2.4.0"
fs-extra "^9.0.1"
+ minimatch "^3.0.4"
+ plist "^3.0.4"
webidl-conversions@^3.0.0:
version "3.0.1"