Skip to content

Commit e21a68e

Browse files
author
JooHyung Park
committed
fix(updater): use darwin-universal feed for macOS and add arm64 compat
1 parent 81c0eea commit e21a68e

3 files changed

Lines changed: 23 additions & 3 deletions

File tree

.github/workflows/build.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,25 @@ jobs:
166166
path: out/make/zip/darwin/universal/*.zip
167167
if-no-files-found: error
168168

169+
# Backward-compat: apps older than v2.0.11 request the darwin-arm64 feed URL.
170+
# Copy the universal ZIP under the arm64 filename so update.electronjs.org can serve them.
171+
# This can be removed once no clients older than v2.0.11 remain in the wild.
172+
- name: Create darwin-arm64 compatibility ZIP
173+
run: |
174+
UNIVERSAL_ZIP=$(find out/make/zip/darwin/universal -name "*.zip" | head -1)
175+
BASENAME=$(basename "$UNIVERSAL_ZIP")
176+
ARM64_BASENAME="${BASENAME/darwin-universal/darwin-arm64}"
177+
mkdir -p out/make/zip/darwin/arm64-compat
178+
cp "$UNIVERSAL_ZIP" "out/make/zip/darwin/arm64-compat/$ARM64_BASENAME"
179+
echo "Created: out/make/zip/darwin/arm64-compat/$ARM64_BASENAME"
180+
181+
- name: Upload arm64 compatibility ZIP artifact
182+
uses: actions/upload-artifact@v4
183+
with:
184+
name: macos-arm64-zip
185+
path: out/make/zip/darwin/arm64-compat/*.zip
186+
if-no-files-found: error
187+
169188
# Build stage - Windows
170189
build-windows:
171190
runs-on: windows-latest
@@ -296,5 +315,6 @@ jobs:
296315
files: |
297316
artifacts/macos-universal-dmg/*.dmg
298317
artifacts/macos-universal-zip/**/*.zip
318+
artifacts/macos-arm64-zip/**/*.zip
299319
artifacts/windows-build/**/*.exe
300320
artifacts/windows-build/**/*.nupkg

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "talktofigma-desktop",
33
"productName": "TalkToFigma Desktop",
4-
"version": "2.0.10",
4+
"version": "2.0.11",
55
"description": "Bridge between Figma and AI tools (Cursor, Claude Code) using Model Context Protocol",
66
"type": "module",
77
"main": ".vite/build/main.cjs",

src/main/utils/updater.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ export function initializeUpdater() {
4646
log.info('Current version:', app.getVersion());
4747

4848
// Construct feed URL for update.electronjs.org
49-
// For macOS universal builds, use 'darwin-universal'
49+
// GitHub Releases ship darwin-universal builds only, so always use 'darwin-universal' on macOS.
5050
const platform = process.platform === 'darwin'
51-
? `darwin-${process.arch}`
51+
? 'darwin-universal'
5252
: `${process.platform}-${process.arch}`;
5353
const feedURL = `https://update.electronjs.org/grab/TalkToFigmaDesktop/${platform}/${app.getVersion()}`;
5454
const userAgent = `TalkToFigma-Desktop/${app.getVersion()} (${process.platform}: ${process.arch})`;

0 commit comments

Comments
 (0)