Skip to content

Commit a34e57c

Browse files
author
Joe Previte
committed
chore: update node-version patch
1 parent 173932b commit a34e57c

1 file changed

Lines changed: 4 additions & 22 deletions

File tree

patches/node-version.diff

Lines changed: 4 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Index: code-server/lib/vscode/build/gulpfile.reh.js
1111
===================================================================
1212
--- code-server.orig/lib/vscode/build/gulpfile.reh.js
1313
+++ code-server/lib/vscode/build/gulpfile.reh.js
14-
@@ -124,9 +124,7 @@ const serverWithWebEntryPoints = [
14+
@@ -125,9 +125,7 @@ const serverWithWebEntryPoints = [
1515
];
1616

1717
function getNodeVersion() {
@@ -35,7 +35,7 @@ Index: code-server/lib/vscode/build/lib/node.js
3535
-const version = /^target\s+"([^"]+)"$/m.exec(yarnrc)[1];
3636
+const version = process.versions.node;
3737
const platform = process.platform;
38-
const arch = platform === 'darwin' ? 'x64' : process.arch;
38+
const arch = process.arch;
3939
const node = platform === 'win32' ? 'node.exe' : 'node';
4040
Index: code-server/lib/vscode/build/lib/node.ts
4141
===================================================================
@@ -51,7 +51,7 @@ Index: code-server/lib/vscode/build/lib/node.ts
5151
+const version = process.versions.node;
5252

5353
const platform = process.platform;
54-
const arch = platform === 'darwin' ? 'x64' : process.arch;
54+
const arch = process.arch;
5555
Index: code-server/lib/vscode/build/lib/util.js
5656
===================================================================
5757
--- code-server.orig/lib/vscode/build/lib/util.js
@@ -71,7 +71,7 @@ Index: code-server/lib/vscode/build/lib/util.ts
7171
===================================================================
7272
--- code-server.orig/lib/vscode/build/lib/util.ts
7373
+++ code-server/lib/vscode/build/lib/util.ts
74-
@@ -371,9 +371,7 @@ export function streamToPromise(stream:
74+
@@ -371,9 +371,7 @@ export function streamToPromise(stream:
7575
}
7676

7777
export function getElectronVersion(): string {
@@ -87,21 +87,3 @@ Index: code-server/lib/vscode/build/lib/util.ts
8787
return result;
8888
}
8989
-
90-
Index: code-server/lib/vscode/remote/.yarnrc
91-
===================================================================
92-
--- code-server.orig/lib/vscode/remote/.yarnrc
93-
+++ /dev/null
94-
@@ -1,4 +0,0 @@
95-
-disturl "http://nodejs.org/dist"
96-
-target "14.16.0"
97-
-runtime "node"
98-
-build_from_source "true"
99-
Index: code-server/lib/vscode/.yarnrc
100-
===================================================================
101-
--- code-server.orig/lib/vscode/.yarnrc
102-
+++ /dev/null
103-
@@ -1,4 +0,0 @@
104-
-disturl "https://electronjs.org/headers"
105-
-target "13.5.2"
106-
-runtime "electron"
107-
-build_from_source "true"

0 commit comments

Comments
 (0)