|
1 | 1 | Electron
|
2 | 2 | ========
|
3 | 3 |
|
4 |
| -Due to the nature of Electron, building Electron applications as Flatpaks |
5 |
| -requires a few extra steps compared with other applications. Thankfully, |
6 |
| -several tools and resources are available which make this much easier. |
| 4 | +Due to the nature of `Electron <https://www.electronjs.org/>`_, building |
| 5 | +Electron applications as Flatpaks requires a few extra steps compared with other |
| 6 | +applications. Thankfully, several tools and resources are available which make |
| 7 | +this much easier. |
7 | 8 |
|
8 | 9 | This guide provides information on how building Electron applications differs
|
9 | 10 | from other applications. It also includes information on the tooling for
|
@@ -263,21 +264,22 @@ often best to link to it from the main manifest, which is done by adding
|
263 | 264 | Launching the app
|
264 | 265 | -----------------
|
265 | 266 |
|
266 |
| -The Electron app is run through a simple script. This can be given any name |
267 |
| -but must be specified in the manifest's ``"command":`` property. See below |
268 |
| -a sample wrapper for launching app: |
| 267 | +The Electron app is run through a simple shell script that wraps |
| 268 | +`zypak <https://github.com/refi64/zypak>`_. This script can be given any name |
| 269 | +but must be specified in the manifest's ``command`` property. See below for a |
| 270 | +sample wrapper to launch the app: |
269 | 271 |
|
270 | 272 | .. code-block:: yaml
|
271 | 273 |
|
272 | 274 | - type: script
|
273 | 275 | dest-filename: run.sh
|
274 | 276 | commands:
|
275 |
| - - zypak-wrapper.sh /app/main/electron-sample-app "$@" |
| 277 | + - zypak-wrapper /app/main/electron-sample-app "$@" |
276 | 278 |
|
277 | 279 | Build commands
|
278 | 280 | --------------
|
279 | 281 |
|
280 |
| -Last but not least, since the simple build option is being used, a list of |
| 282 | +Last but not least, since the ``simple`` buildsystem is being used, a list of |
281 | 283 | build commands must be provided. As can be seen, ``npm`` is run with the
|
282 | 284 | ``npm_config_offline=true`` environment variable, installing dependencies from
|
283 | 285 | packages that have already been cached. These are copied to ``/app/main/``.
|
|
0 commit comments