We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ec8eb2 commit 4f8a4e7Copy full SHA for 4f8a4e7
2 files changed
package.json
@@ -25,7 +25,7 @@
25
"build:prod": "electron-vite build --mode production",
26
"coverage": "vitest run --coverage",
27
"test": "vitest",
28
- "postinstall": "electron-builder install-app-deps"
+ "postinstall": "node ./postinstall.cjs"
29
},
30
"devDependencies": {
31
"@eslint/js": "^8.57.0",
postinstall.cjs
@@ -0,0 +1,11 @@
1
+const skip =
2
+ process.env.WAVETERM_SKIP_APP_DEPS === "1" || process.env.CF_PAGES === "1" || process.env.CF_PAGES === "true";
3
+
4
+if (skip) {
5
+ console.log("postinstall: skipping electron-builder install-app-deps");
6
+ process.exit(0);
7
+}
8
9
+import("child_process").then(({ execSync }) => {
10
+ execSync("electron-builder install-app-deps", { stdio: "inherit" });
11
+});
0 commit comments