Because we have both mobile and desktop releases in our github repo we need to add a small change to the Hazel electron update server so that it only looks for releases that have a git tag that looks like desktop-vX.Y.Z.
Depends on D6353
Differential D6354
[services] [electron update server] Patch hazel to work with desktop-vX.Y.Z tags michal on Jan 23 2023, 11:25 AM. Authored by Tags None Referenced Files
Subscribers
Details Because we have both mobile and desktop releases in our github repo we need to add a small change to the Hazel electron update server so that it only looks for releases that have a git tag that looks like desktop-vX.Y.Z. Depends on D6353 Check if hazel correctly looks for desktop-vX.Y.Z git tags and ignores other tags.
Diff Detail
Event TimelineComment Actions Move the patch to the root level. NOTE: patch-package is run only in the postinstall script of the native workspace. So if native built before electron-update-server the hazel patch wouldn't be applied. So we probably have two options:
- add patch-package to root and call it in the postinstall
- add a postinstall script in the update server that's cd ../.. && yarn patch-package Comment Actions It's important that yarn patch-package runs before pod install, and the best way I've found to guarantee that is to include it in native/package.json. I don't think it's bad to call patch-package multiple times
Can you clarify this scenario a bit more?
I'm not sure, but I think either will work as long as we leave the patch-package call in native untouched. Comment Actions
Something like this:
In the end hazel is installed but isn't patched I've made diff that adds patch-package to root in D6391 Comment Actions Is this a hypothetical scenario, or were you able to observe it? I would've assumed that postinstall hooks won't run until all dependencies (for all workspaces) are installed Comment Actions
I wasn't able to observe it because native takes much longer than electron-update-server to install but I've tested it by making a small repo with this structure:
(Neither depA not depB are members of the workspace).
So postinstall scripts run as soon as all dependencies were installed. |