-
-
Notifications
You must be signed in to change notification settings - Fork 22
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
feat: integrate @electron/universal #1346
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1346 +/- ##
===========================================
- Coverage 100.00% 95.98% -4.02%
===========================================
Files 14 15 +1
Lines 733 773 +40
===========================================
+ Hits 733 742 +9
- Misses 0 31 +31
Continue to review full report at Codecov.
|
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.
Looks good! 👍
@@ -16,6 +16,9 @@ import { | |||
TransporterOptions | |||
} from 'electron-notarize/lib/types'; | |||
import { SignOptions } from 'electron-osx-sign'; | |||
import type { makeUniversalApp } from '@electron/universal'; | |||
|
|||
type MakeUniversalOpts = Parameters<typeof makeUniversalApp>[0] |
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.
note: this leverages Parameters
in TS to get the args for makeUniversalApp
since @electron/universal
doesn't expose them.
* app with the target architecture of "universal". Unused otherwise, providing a value does not imply | ||
* a universal app is built. | ||
*/ | ||
osxUniversal?: OsxUniversalOptions; |
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.
note: not exposed via CLI
As in title, this integrates @electron/universal into packager by intercepting package requests for "universal" and then building arm64 / x64 separately behind the scenes and stitching them together.