Skip to content

Commit 8b73106

Browse files
fix: address further review comments
1 parent cc277b4 commit 8b73106

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

build/gulpfile.reh.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ const BUILD_TARGETS = [
3838

3939
const noop = () => { return Promise.resolve(); };
4040

41-
gulp.task('vscode-reh-win32-arm64-min', noop);
4241
gulp.task('vscode-reh-win32-ia32-min', noop);
4342
gulp.task('vscode-reh-win32-x64-min', noop);
4443
gulp.task('vscode-reh-darwin-min', noop);
@@ -47,7 +46,6 @@ gulp.task('vscode-reh-linux-armhf-min', noop);
4746
gulp.task('vscode-reh-linux-arm64-min', noop);
4847
gulp.task('vscode-reh-linux-alpine-min', noop);
4948

50-
gulp.task('vscode-reh-web-win32-arm64-min', noop);
5149
gulp.task('vscode-reh-web-win32-ia32-min', noop);
5250
gulp.task('vscode-reh-web-win32-x64-min', noop);
5351
gulp.task('vscode-reh-web-darwin-min', noop);

build/gulpfile.vscode.win32.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,10 +110,8 @@ function defineWin32SetupTasks(arch, target) {
110110
gulp.task(task.define(`vscode-win32-${arch}-${target}-setup`, task.series(cleanTask, buildWin32Setup(arch, target))));
111111
}
112112

113-
defineWin32SetupTasks('arm64', 'system');
114113
defineWin32SetupTasks('ia32', 'system');
115114
defineWin32SetupTasks('x64', 'system');
116-
defineWin32SetupTasks('arm64', 'user');
117115
defineWin32SetupTasks('ia32', 'user');
118116
defineWin32SetupTasks('x64', 'user');
119117

@@ -145,7 +143,6 @@ function updateIcon(executablePath) {
145143
};
146144
}
147145

148-
gulp.task(task.define('vscode-win32-arm64-inno-updater', task.series(copyInnoUpdater('ia32'), updateIcon(path.join(buildPath('ia32'), 'tools', 'inno_updater.exe')))));
149146
gulp.task(task.define('vscode-win32-ia32-inno-updater', task.series(copyInnoUpdater('ia32'), updateIcon(path.join(buildPath('ia32'), 'tools', 'inno_updater.exe')))));
150147
gulp.task(task.define('vscode-win32-x64-inno-updater', task.series(copyInnoUpdater('x64'), updateIcon(path.join(buildPath('x64'), 'tools', 'inno_updater.exe')))));
151148

build/npm/postinstall.js

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,24 +23,29 @@ function yarnInstall(location, opts) {
2323
const args = original.filter(arg => arg === '--ignore-optional' || arg === '--frozen-lockfile');
2424

2525
console.log(`Installing dependencies in ${location}...`);
26-
if (location.startsWith("remote") && process.env["npm_config_arch"] == "arm64") {
27-
// Temporarily set remote arch to x86, because the remote portion builds
28-
// against node, which is not consistently supported on Windows on Arm
29-
// (yet).
30-
opts.npm_config_arch = "ia32"
31-
}
3226
console.log(`$ yarn ${args.join(' ')}`);
3327
const result = cp.spawnSync(yarn, args, opts);
3428
if (result.error || result.status !== 0) {
3529
process.exit(1);
3630
}
3731
}
3832

33+
function remoteOpts() {
34+
opts = {};
35+
if (process.env["npm_config_arch"] == "arm64") {
36+
// Temporarily set remote arch to x86, because the remote portion builds
37+
// against node, which is not consistently supported on Windows on Arm
38+
// (yet).
39+
opts.npm_config_arch = "ia32"
40+
}
41+
return opts;
42+
}
43+
3944
yarnInstall('extensions'); // node modules shared by all extensions
4045

41-
yarnInstall('remote'); // node modules used by vscode server
46+
yarnInstall('remote', remoteOpts()); // node modules used by vscode server
4247

43-
yarnInstall('remote/web'); // node modules used by vscode web
48+
yarnInstall('remote/web', remoteOpts()); // node modules used by vscode web
4449

4550
const allExtensionFolders = fs.readdirSync('extensions');
4651
const extensions = allExtensionFolders.filter(e => {

0 commit comments

Comments
 (0)