-
Notifications
You must be signed in to change notification settings - Fork 847
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
BASH-2 Bundle Mac Desktop App as DMG #588
BASH-2 Bundle Mac Desktop App as DMG #588
Conversation
@jasonblais I had told about this problem before. We are using Linux when cutting a release, but dmg requires Mac. I think mattermost-mobile should have same problem when building iOS app. How do you do that? |
@jasonblais This would not be a blocker for our team. We could add this in during our build process, but would love to have it as part of the platform as it improves the delivery. Most applications are offered as a signed product in DMG format, similar like the mobile app. I'd suggest finding a delivery that allows proper signing. |
@yuya-oc Jonathan has a ticket to automate the build process and code-signing for Windows and Mac https://mattermost.atlassian.net/browse/PLT-7540 Once that ticket is resolved, will that let us introduce the DMG file as well? |
@jasonblais Yeah, we need to continue using tar.gz in CI because of Linux, but we can use dmg when cutting releases. |
Thanks! Added the |
Work on PLT-7540 tentatively scheduled to start next week (for automating the build process and code-signing for Mac and Windows apps). |
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.
No problem in changes. We can design the background image and text/icon size later.
9893091
to
9a6d1ad
Compare
Rebased to latest and added fixes to copy the right file for mac (.dmg) and updated electron-builder version so that it can properly build on HighSierra. |
#676 has changed ownership, and is in the process of being finished up. After that we should be able to review and merge this PR |
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.
electron-builder.json
Outdated
"NOTICE.txt" | ||
] | ||
} | ||
"dmg" |
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.
Both of dmg and zip are needed because upcoming auto-updater will use zip.
] | ||
}, | ||
"dmg": { | ||
"background": "resources/osx/DMG_BG.png", | ||
"iconSize": 140, |
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.
Do we need to specify size here?
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.
mattermost/mattermost-webapp#208 (comment)
Note: We might make change when creating our own background.
scripts/cp_artifacts.sh
Outdated
@@ -10,7 +10,7 @@ cp "${SRC}/Mattermost-${VERSION}-ia32-win.zip" "${DEST}/mattermost-desktop-${VER | |||
cp "${SRC}/win/Mattermost Setup ${VERSION}.exe" "${DEST}/mattermost-setup-${VERSION}-win64.exe" | |||
cp "${SRC}/win-ia32/Mattermost Setup ${VERSION}-ia32.exe" "${DEST}/mattermost-setup-${VERSION}-win32.exe" | |||
|
|||
cp "${SRC}/Mattermost-${VERSION}-mac.tar.gz" "${DEST}/mattermost-desktop-${VERSION}-mac.tar.gz" | |||
cp "${SRC}/Mattermost-${VERSION}.dmg" "${DEST}/mattermost-desktop-${VERSION}.dmg" |
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.
dmg
is not generated in CircleCI. So you don't have to modify this script.
electron-builder.json
Outdated
@@ -50,17 +50,14 @@ | |||
"mac": { | |||
"category": "public.app-category.productivity", | |||
"target": [ | |||
"tar.gz" | |||
], | |||
"extraResources": [ |
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.
The latest electron-builder.json
should have proper config for extra resources. So you would not have to remove this config.
9a6d1ad
to
71250ad
Compare
71250ad
to
bfbf189
Compare
Description
Changed build config for mac to generate DMG. User experience is much better when installing via DMG.
npm run lint:js
for proper code formattingTest Cases
run :
npm run package:mac
Execute the resulting
Mattermost-xxx.dmg
file.