Skip to content

Commit 8b93017

Browse files
committed
increase available memory for the javascript vm
coder/code-server#7418
1 parent 65ff7f3 commit 8b93017

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

codeserver/ubi9-python-3.12/get_code_server_rpm.sh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,21 @@ if [[ "$ARCH" == "amd64" || "$ARCH" == "arm64" ||"$ARCH" == "ppc64le" ]]; then
6363
git submodule update --init
6464
source ${NVM_DIR}/nvm.sh
6565
while IFS= read -r src_patch; do echo "patches/$src_patch"; patch -p1 < "patches/$src_patch"; done < patches/series
66+
patch -p1 <<'EOF'
67+
diff --git i/package.json w/package.json
68+
index 925462fb087..dfff96eb051 100644
69+
--- code-server.orig/lib/vscode/package.json
70+
+++ code-server/lib/vscode/package.json
71+
@@ -32,7 +32,7 @@
72+
"watch-extensionsd": "deemon npm run watch-extensions",
73+
"kill-watch-extensionsd": "deemon --kill npm run watch-extensions",
74+
"precommit": "node build/hygiene.js",
75+
- "gulp": "node --max-old-space-size=8192 ./node_modules/gulp/bin/gulp.js",
76+
+ "gulp": "node --max-old-space-size=16384 ./node_modules/gulp/bin/gulp.js",
77+
"electron": "node build/lib/electron",
78+
"7z": "7z",
79+
"update-grammars": "node build/npm/update-all-grammars.mjs",
80+
EOF
6681
nvm use ${NODE_VERSION}
6782
npm install
6883
npm run build

0 commit comments

Comments
 (0)