-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add the zip
target to fix Desktop auto updates
#7989
Add the zip
target to fix Desktop auto updates
#7989
Conversation
https://www.electron.build/auto-update.html#quick-setup-guide > zip target for macOS is required for Squirrel.Mac, otherwise latest-mac.yml cannot be created, which causes autoUpdater error. Default target for macOS is dmg+zip, so there is no need to explicitly specify target.
zip
target to fix Desktop auto updateszip
target to fix Desktop auto updates
This PR does not need to be tested on all platforms - the desktop build config change made, could not in any way affect other platforms |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It sounds like you did your research and this should fix it. The desktop build worked for me and created the zips. I'll let @roryabraham approve since he is more familiar with the desktop build.
|
Let's see if this works – if not, could we maybe just remove |
(cherry picked from commit 563d85c)
Downloading from https://staging.new.expensify.com/NewExpensify.dmg seemed to work 🤞 Edit: Nope, still stuck on |
🚀 Cherry-picked to staging by @roryabraham in version: 1.1.41-2 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
🚀 Deployed to production by @francoisl in version: 1.1.41-6 🚀
|
@roryabraham
Details
When
mac.target
was introduced to the electron config it overrode the default, which used to build a dmg and a zip for the current platformWe need to specify a
zip
target, because autoupdates work with that:https://www.electron.build/auto-update.html#quick-setup-guide
Fixed Issues
$ #7954
$ #7987
Tests
desktop-build
PR Review Checklist
Contributor (PR Author) Checklist
main
before submitting my PR for review### Fixed Issues
section abovesrc/languages/*
files (if applicable)Styling.md
) for all style edits I madePR Reviewer Checklist
main
before submitting the PR### Fixed Issues
section abovesrc/languages/*
files (if applicable)QA Steps
.dmg
download links work (staging): https://staging.new.expensify.com/NewExpensify.dmg and return the installer for the latest versionTested On
Screenshots
Web
Mobile Web
Desktop
iOS
Android