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
|
|
|
|
@@ -55,10 +55,6 @@ function yarnInstall(dir, opts) {
|
|
|
|
opts.cwd = root;
|
|
|
|
- if (process.env['npm_config_arch'] === 'arm64' || process.env['npm_config_arch'] === 'arm') {
|
|
|
|
+ if (process.env['npm_config_arch'] === 'arm64' || process.env['npm_config_arch'] === 'arm' || process.env['npm_config_arch'] === 'ppc64') {
|
|
|
|
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 12:18:41 +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'], 'pwd', '&&', 'ls', '&&', '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);
|