This commit is contained in:
Samuel Attard 2020-11-13 13:13:39 -08:00
Родитель 395c31eb71
Коммит 468883dccb
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: FB94249299E904FE
1 изменённых файлов: 14 добавлений и 4 удалений

Просмотреть файл

@ -4,13 +4,9 @@
[![CircleCI](https://circleci.com/gh/electron/universal.svg?style=svg)](https://circleci.com/gh/electron/universal)
## Disclaimer
Work In Progress
## Usage
```typescript
import { makeUniversalApp } from '@electron/universal';
@ -20,3 +16,17 @@ await makeUniversalApp({
outAppPath: 'path/to/App_universal.app',
});
```
## FAQ
#### The app is twice as big now, why?
Well, a Universal app isn't anything magical. It is literally the x64 app and
the arm64 app glued together into a single application. It's twice as big
because it contains two apps in one.
#### What about native modules?
The way `@electron/universal` works today means you don't need to worry about
things like building universal versions of your native modules. As long as
your x64 and arm64 apps work in isolation the Universal app will work as well.