Page MenuHomePhabricator

[desktop] Code signing for disk image
ClosedPublic

Authored by michal on Dec 6 2022, 6:20 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Nov 9, 11:50 AM
Unknown Object (File)
Sat, Nov 9, 11:49 AM
Unknown Object (File)
Thu, Nov 7, 5:46 AM
Unknown Object (File)
Wed, Nov 6, 6:21 AM
Unknown Object (File)
Wed, Nov 6, 6:21 AM
Unknown Object (File)
Tue, Nov 5, 2:08 AM
Unknown Object (File)
Oct 2 2024, 6:29 PM
Unknown Object (File)
Sep 21 2024, 1:19 AM
Subscribers
None

Details

Summary

This diff configures electron-forge to sign and notarize .dmg files.

Additionally I'm using the fileicon utility for changing the .dmg icon. I think having default macOS dmg icon is the standard so there's no explicit option for it in the electron-forge.

Test Plan

Test if running development version works. Check if making the .dmg works (yarn make --platform darwin).

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Harbormaster returned this revision to the author for changes because remote builds failed.Dec 6 2022, 6:21 AM
Harbormaster failed remote builds in B14005: Diff 19178!

After talking to ashoat, we don't need to change the .dmg file icon so I've removed fileicon dependency which should fix the build failures.

michal requested review of this revision.Dec 6 2022, 7:43 AM

Looks good to me.

Might be worth talking to the design team about the DMG background with the arrow and whatnot. It seems like it would be a relatively quick/well scoped task? (CC @ashoat)

desktop/forge.config.cjs
70 ↗(On Diff #19190)

Looks we're using app.comm instead of app.comm.macos here, was that intentional? (I just don't remember the context)

This revision is now accepted and ready to land.Dec 6 2022, 10:55 AM
ashoat requested changes to this revision.Dec 6 2022, 7:42 PM

Honestly don't think we need to think that hard about the design for the DMG background.

Back to you with question about bundle identifier

desktop/forge.config.cjs
70 ↗(On Diff #19190)

That's confusing since I think we use the same bundle identifier for the iOS app, right? Won't that cause problems?

This revision now requires changes to proceed.Dec 6 2022, 7:42 PM

The bundleID wasn't completely intentional, thanks for noticing. I don't think it would cause problems (apple offers universal purchase which requires the same ID on both iOS and macOS, and we could create a macOS section in the current comm App Store Record), but I don't think there are any advantages for us so I'm changes it to app.comm.macos.

(Additionally I've missed a mention of the removed fileicon package in the ignore option so I've removed that.)

Remove the @electron-forge/maker-zip dependency.

This revision is now accepted and ready to land.Dec 8 2022, 10:40 AM