Skip to content

Commit 0142160

Browse files
committed
Bump version to 1.1.4 and add postinstall script
1 parent 9279bae commit 0142160

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vbcdr",
3-
"version": "1.1.3",
3+
"version": "1.1.4",
44
"description": "Desktop vibe coding environment for Claude Code developers",
55
"author": {
66
"name": "jo vinkenroye",
@@ -14,7 +14,7 @@
1414
"build:mac": "electron-vite build && electron-builder --mac --arm64",
1515
"build:linux": "electron-vite build && electron-builder --linux --x64",
1616
"build:win": "electron-vite build && electron-builder --win --x64",
17-
"postinstall": "chmod +x node_modules/node-pty/prebuilds/*/spawn-helper 2>/dev/null; rm -rf node_modules/node-pty/build 2>/dev/null; true"
17+
"postinstall": "node scripts/postinstall.js"
1818
},
1919
"build": {
2020
"appId": "com.vbcdr.app",

scripts/postinstall.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
const fs = require('fs')
2+
const path = require('path')
3+
4+
const prebuildsDir = path.join('node_modules', 'node-pty', 'prebuilds')
5+
try {
6+
fs.readdirSync(prebuildsDir).forEach((dir) => {
7+
try {
8+
fs.chmodSync(path.join(prebuildsDir, dir, 'spawn-helper'), 0o755)
9+
} catch {}
10+
})
11+
} catch {}
12+
13+
try {
14+
fs.rmSync(path.join('node_modules', 'node-pty', 'build'), { recursive: true, force: true })
15+
} catch {}

0 commit comments

Comments
 (0)