mirror of
https://github.com/VSCodium/vscodium.git
synced 2026-04-25 04:10:15 +10:00
refactor: patches (#2797)
This commit is contained in:
14
patches/00-build-fix-npm-preinstall.patch
Normal file
14
patches/00-build-fix-npm-preinstall.patch
Normal file
@@ -0,0 +1,14 @@
|
||||
diff --git a/build/npm/preinstall.ts b/build/npm/preinstall.ts
|
||||
index 3476fca..e23329f 100644
|
||||
--- a/build/npm/preinstall.ts
|
||||
+++ b/build/npm/preinstall.ts
|
||||
@@ -129,3 +129,3 @@ function installHeaders() {
|
||||
// Refs https://chromium-review.googlesource.com/c/v8/v8/+/6879784
|
||||
- if (process.platform === 'linux') {
|
||||
+ if (process.platform === 'linux' && local) {
|
||||
const homedir = os.homedir();
|
||||
@@ -133,3 +133,3 @@ function installHeaders() {
|
||||
const nodeGypCache = path.join(cachePath, 'node-gyp');
|
||||
- const localHeaderPath = path.join(nodeGypCache, local!.target, 'include', 'node');
|
||||
+ const localHeaderPath = path.join(nodeGypCache, local.target, 'include', 'node');
|
||||
if (fs.existsSync(localHeaderPath)) {
|
||||
Reference in New Issue
Block a user