mirror of
https://github.com/VSCodium/vscodium.git
synced 2026-04-14 04:38:18 +10:00
17 lines
910 B
Diff
17 lines
910 B
Diff
diff --git a/build/npm/postinstall.js b/build/npm/postinstall.js
|
|
index fa8da7d..5e2f51b 100644
|
|
--- a/build/npm/postinstall.js
|
|
+++ b/build/npm/postinstall.js
|
|
@@ -53,8 +53,9 @@ function npmInstall(dir, opts) {
|
|
log(dir, `Installing dependencies inside container ${process.env['VSCODE_REMOTE_DEPENDENCIES_CONTAINER_NAME']}...`);
|
|
|
|
opts.cwd = root;
|
|
- if (process.env['npm_config_arch'] === 'arm64') {
|
|
- run('sudo', ['docker', 'run', '--rm', '--privileged', 'multiarch/qemu-user-static', '--reset', '-p', 'yes'], opts);
|
|
+ const emulateArchList = ['arm64', 'arm', 'ppc64', 'riscv64', 's390x', 'loong64'];
|
|
+ if (process.env['DISABLE_QEMU'] !== 'true' && !!process.env['npm_config_arch'] && emulateArchList.includes(process.env['npm_config_arch'])) {
|
|
+ run('sudo', ['docker', 'run', '--rm', '--privileged', 'tonistiigi/binfmt:latest', '--install', 'all'], opts);
|
|
}
|
|
run('sudo', [
|
|
'docker', 'run',
|