Build without pkg unless packaging

This commit is contained in:
hensm
2020-08-12 04:26:13 +01:00
committed by Matt Hensman
parent 19aaa8f27d
commit 10c92186f9
5 changed files with 125 additions and 164 deletions

View File

@@ -85,7 +85,7 @@ npm run remove-manifest
This will build the ext and app, outputting to `dist/`:
* #### `dist/app/`
... contains the bridge executable and manifest with the path pointing that executable. The `install-manifest` script copies this manifest to the proper location (or adds its current location to the registry on Windows).
... contains the built bridge with launcher and manifest with the path pointing that launcher. The `install-manifest` script copies this manifest to the proper location (or adds its current location to the registry on Windows).
* #### `dist/ext/`
... contains the unpacked extension.
@@ -107,7 +107,7 @@ npm run start --prefix ./ext
Should package with web-ext.
* `--watch`
Should run webpack in watch mode.
* `--packageType` `"<appID>"`
* `--mirroringAppId` `"<appID>"`
Provide an alternative default mirroring receiver app ID.
* `--mode` `"production"`, `"development"`
Run webpack in a different mode. Defaults to `"development"` unless combined with `--package`.
@@ -132,20 +132,12 @@ npm run package:ext # Packaging extension
npm run package:app # Packaging bridge application
# Linux platforms
npm run package:app -- -- --platform=linux --packageType=deb
npm run package:app -- -- --platform=linux --packageType=rpm
# Windows
npm run package:app -- -- --platform=win32
# macOS
npm run package:app -- -- --platform=darwin
npm run package:app -- -- --packageType=deb
npm run package:app -- -- --packageType=rpm
````
#### Bridge package script arguments
* `--platform` `"win32"`,`"darwin"`,`"linux"`
Select the platform to build for. Defaults to current platform.
* `--arch` `"x64"`,`"x86"`
Select platform arch to build for. Defaults to current platform arch.
* `--packageType` `"deb"`,`"rpm"`