Skip to content

Commit d504c97

Browse files
committed
fix: electron build issue
1 parent c7fb9dc commit d504c97

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

electron-app/build.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ echo ""
1010
export ELECTRON_MODE=true
1111
export NODE_ENV=production
1212

13+
# Add Python to PATH (required for electron-builder DMG creation on macOS)
14+
export PATH="/opt/homebrew/opt/python@3.14/libexec/bin:$PATH"
15+
1316
# Install dependencies
1417
echo "📦 Installing dependencies..."
1518
npm install

electron-app/dev.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ export ELECTRON_MODE=true
1111
export ELECTRON_START_URL=http://localhost:5173
1212
export NODE_ENV=development
1313

14+
# Add Python to PATH (required for electron-builder on macOS)
15+
export PATH="/opt/homebrew/opt/python@3.14/libexec/bin:$PATH"
16+
1417
# Check if Figma Desktop is running
1518
if ! curl -s http://localhost:3845/mcp > /dev/null 2>&1; then
1619
echo "⚠️ Warning: Figma Desktop MCP server not detected on port 3845"

electron-app/electron-builder.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ mac:
5757

5858
# DMG configuration
5959
dmg:
60-
title: "${productName} ${version}"
60+
title: "MCP-Figma-to-Code-${version}"
6161
icon: build/Collections.icns
6262
background: build/background.png
6363
contents:

0 commit comments

Comments
 (0)