-
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
Build Desktop for x64 and arm64 only #8160
Build Desktop for x64 and arm64 only #8160
Conversation
Make the `artifactName` for the `arm64` version: NewExpensify-arm64.dmg
@@ -24,4 +24,6 @@ info "" | |||
title "Building Desktop App Archive Using Electron" | |||
info "" | |||
shift 1 | |||
"$LOCAL_PACKAGES/electron-builder" --config config/electronBuilder.config.js "$@" | |||
"$LOCAL_PACKAGES/electron-builder" --config config/electronBuilder.config.js --x64 "$@" |
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.
Can we refactor this to run both builds in parallel in the background? I did something similar with the .github/scripts/buildActions.sh
that you could use as a reference if needed.
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.
Can we refactor this to run both builds in parallel in the background?
Running the builds in parallel causes problems
Error: Exit code: 1. Command failed: hdiutil detach -force /dev/disk6
hdiutil: detach failed - No such file or directory
I think it's because during the build the DMG is being mounted and then detached
Perhaps that's why electron-builder builds targets one by one when there are multiple targets in one configuration?
Running in parallel didn't seem to reduce build time much, the error happens about 5-10 sec. before the build would be over
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.
Okay, thanks for looking into it.
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🚀 Deployed to staging by @roryabraham in version: 1.1.46-0 🚀
|
@roryabraham We validated Desktop - Mac x64 version, it is pass, but unfortunately, we dont have Mac arm64 version to QA. Can maybe someone check internally? |
Downloaded and it opened just fine 👍 |
Seems to be working well, partially because Marc fixed a bug that led to slow loading of chats, it's on staging but not production yet (let me know if you need/want the link) |
cc @roryabraham
Details
Fixed Issues
$ #8004
Tests
npm run desktop-build-staging
)npm run desktop
)PR Review Checklist
Contributor (PR Author) Checklist
main
### Fixed Issues
section abovesrc/languages/*
files (if applicable)Styling.md
) for all style edits I madeSTYLE.md
)Avatar
, I verified the components usingAvatar
are working as expected)main
branch)PR Reviewer Checklist
main
### Fixed Issues
section abovesrc/languages/*
files (if applicable)STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)main
branch)QA Steps
/NewExpensify.dmg
/NewExpensify-arm64.dmg
Screenshots
Web
Mobile Web
Desktop
Build directory content
iOS
Android