Skip to content

Commit 28b1fcc

Browse files
nunocoracaoclaude
andcommitted
fix: generate app-update.yml instead of copying from arch build
The arch-specific builds use --publish never, so electron-builder never creates app-update.yml. Generate the file directly from the publish config instead. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 251b9b8 commit 28b1fcc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,8 +216,8 @@ jobs:
216216
}).then(() => console.log('Universal merge complete'))
217217
.catch(err => { console.error('Universal merge failed:', err.message); process.exit(1); });
218218
"
219-
# Copy app-update.yml that @electron/universal drops during merge
220-
cp dist/mac-arm64/Watchfire.app/Contents/Resources/app-update.yml dist/mac-universal/Watchfire.app/Contents/Resources/app-update.yml
219+
# Generate app-update.yml for electron-updater (not created by --publish never)
220+
printf 'provider: github\nowner: watchfire-io\nrepo: watchfire\nreleaseType: release\n' > dist/mac-universal/Watchfire.app/Contents/Resources/app-update.yml
221221
# Sign the universal app using @electron/osx-sign (handles nested frameworks/helpers properly)
222222
# and notarize using @electron/notarize, then package into DMG/zip without re-signing
223223
node -e "

0 commit comments

Comments
 (0)