2024-02-19 16:45:13 +03:00
|
|
|
diff --git a/build/npm/postinstall.js b/build/npm/postinstall.js
|
|
|
|
index 72dd74f..0f70d8c 100644
|
|
|
|
--- a/build/npm/postinstall.js
|
|
|
|
+++ b/build/npm/postinstall.js
|
2024-02-20 13:17:07 +03:00
|
|
|
@@ -55,10 +55,6 @@ function yarnInstall(dir, opts) {
|
2024-02-19 16:45:13 +03:00
|
|
|
opts.cwd = root;
|
|
|
|
- if (process.env['npm_config_arch'] === 'arm64' || process.env['npm_config_arch'] === 'arm') {
|
2024-04-12 15:27:37 +03:00
|
|
|
+ if (process.env['npm_config_arch'] === 'arm64' || process.env['npm_config_arch'] === 'arm' || process.env['npm_config_arch'] === 'ppc64' || process.env['npm_config_arch'] === 'riscv64') {
|
2024-02-19 16:45:13 +03:00
|
|
|
run('sudo', ['docker', 'run', '--rm', '--privileged', 'multiarch/qemu-user-static', '--reset', '-p', 'yes'], opts);
|
|
|
|
}
|
|
|
|
- if (process.env['npm_config_arch'] === 'arm') {
|
|
|
|
- run('sudo', ['docker', 'run', '-e', 'GITHUB_TOKEN', '-e', 'npm_config_arch', '-v', `${process.env['VSCODE_HOST_MOUNT']}:/home/builduser`, '-v', `${process.env['VSCODE_HOST_MOUNT']}/.build/.netrc:/home/builduser/.netrc`, process.env['VSCODE_REMOTE_DEPENDENCIES_CONTAINER_NAME'], 'yarn', '--cwd', dir, ...args], opts);
|
|
|
|
- } else {
|
|
|
|
- run('sudo', ['docker', 'run', '-e', 'GITHUB_TOKEN', '-e', 'npm_config_arch', '-v', `${process.env['VSCODE_HOST_MOUNT']}:/root/vscode`, '-v', `${process.env['VSCODE_HOST_MOUNT']}/.build/.netrc:/root/.netrc`, process.env['VSCODE_REMOTE_DEPENDENCIES_CONTAINER_NAME'], 'yarn', '--cwd', dir, ...args], opts);
|
|
|
|
- }
|
2024-02-20 13:17:07 +03:00
|
|
|
+ run('sudo', ['docker', 'run', '-e', 'GITHUB_TOKEN', '-e', 'npm_config_arch', '-v', `${process.env['VSCODE_HOST_MOUNT']}:/root/vscode`, '-v', `${process.env['VSCODE_HOST_MOUNT']}/.build/.netrc:/root/.netrc`, process.env['VSCODE_REMOTE_DEPENDENCIES_CONTAINER_NAME'], 'yarn', '--cwd', dir, ...args], opts);
|
2024-02-19 16:45:13 +03:00
|
|
|
run('sudo', ['chown', '-R', `${userinfo.uid}:${userinfo.gid}`, `${dir}/node_modules`], opts);
|