mirror of
https://github.com/hensm/fx_cast.git
synced 2026-06-08 08:39:59 +00:00
Rename directory: app -> bridge
This commit is contained in:
4
.gitignore
vendored
4
.gitignore
vendored
@@ -1,7 +1,7 @@
|
|||||||
node_modules/
|
node_modules/
|
||||||
dist/
|
dist/
|
||||||
app/node_modules/
|
bridge/node_modules/
|
||||||
app/build
|
bridge/build
|
||||||
ext/node_modules/
|
ext/node_modules/
|
||||||
test/ChromeProfile/
|
test/ChromeProfile/
|
||||||
.idea/
|
.idea/
|
||||||
|
|||||||
22
README.md
22
README.md
@@ -93,9 +93,9 @@ $ npm run install-manifest
|
|||||||
$ npm run remove-manifest
|
$ npm run remove-manifest
|
||||||
```
|
```
|
||||||
|
|
||||||
This will build the ext and app, outputting to `dist/`:
|
This will build the extension and bridge, outputting to `dist/`:
|
||||||
|
|
||||||
- `dist/app/`
|
- `dist/bridge/`
|
||||||
... contains the built bridge with launcher script and manifest (with the path pointing that script). The `install-manifest` npm script copies this manifest to the proper location (or adds its current location to the registry on Windows).
|
... contains the built bridge with launcher script and manifest (with the path pointing that script). The `install-manifest` npm script copies this manifest to the proper location (or adds its current location to the registry on Windows).
|
||||||
- `dist/ext/`
|
- `dist/ext/`
|
||||||
... contains the unpacked extension.
|
... contains the unpacked extension.
|
||||||
@@ -117,13 +117,13 @@ $ npm run start:ext
|
|||||||
Building a 32-bit version is only supported for Windows. If you're building from a 64-bit system, you'll also need to rebuild any native dependencies as 32-bit.
|
Building a 32-bit version is only supported for Windows. If you're building from a 64-bit system, you'll also need to rebuild any native dependencies as 32-bit.
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
$ npm clean-install --prefix ./app --arch=ia32 # If on a 64-bit system
|
$ npm clean-install --prefix ./bridge --arch=ia32 # If on a 64-bit system
|
||||||
|
|
||||||
# If building without packaging
|
# If building without packaging
|
||||||
$ npm run build:app -- -- --arch=x86 --use-pkg
|
$ npm run build:bridge -- -- --arch=x86 --use-pkg
|
||||||
|
|
||||||
# If packaging
|
# If packaging
|
||||||
$ npm run package:app -- -- --arch=x86
|
$ npm run package:bridge -- -- --arch=x86
|
||||||
```
|
```
|
||||||
|
|
||||||
### Build scripts
|
### Build scripts
|
||||||
@@ -137,7 +137,7 @@ Extension build script (`build:ext`) arguments:
|
|||||||
- `--mode` `"development"`, `"production"`
|
- `--mode` `"development"`, `"production"`
|
||||||
Sets build mode. Defaults to `development` unless packaging.
|
Sets build mode. Defaults to `development` unless packaging.
|
||||||
|
|
||||||
Bridge build script (`build:app`) arguments:
|
Bridge build script (`build:bridge`) arguments:
|
||||||
|
|
||||||
- `--package`
|
- `--package`
|
||||||
Builds and creates installer packages for distribution.
|
Builds and creates installer packages for distribution.
|
||||||
@@ -162,7 +162,7 @@ Build and package extension and bridge application for current platform:
|
|||||||
$ npm run package
|
$ npm run package
|
||||||
```
|
```
|
||||||
|
|
||||||
- `dist/app/`
|
- `dist/bridge/`
|
||||||
... contains the installer package: `fx_cast_bridge-<version>-<arch>.(pkg|deb|rpm|exe)`
|
... contains the installer package: `fx_cast_bridge-<version>-<arch>.(pkg|deb|rpm|exe)`
|
||||||
- `dist/ext/`
|
- `dist/ext/`
|
||||||
... contains the built extension archive: `fx_cast-<version>.xpi`.
|
... contains the built extension archive: `fx_cast-<version>.xpi`.
|
||||||
@@ -171,11 +171,11 @@ Packaging examples:
|
|||||||
|
|
||||||
```sh
|
```sh
|
||||||
$ npm run package:ext # Packaging extension
|
$ npm run package:ext # Packaging extension
|
||||||
$ npm run package:app # Packaging bridge application
|
$ npm run package:bridge # Packaging bridge application
|
||||||
|
|
||||||
# Linux platforms
|
# Linux platforms
|
||||||
$ npm run package:app -- -- --package-type=deb
|
$ npm run package:bridge -- -- --package-type=deb
|
||||||
$ npm run package:app -- -- --package-type=rpm
|
$ npm run package:bridge -- -- --package-type=rpm
|
||||||
```
|
```
|
||||||
|
|
||||||
### Testing
|
### Testing
|
||||||
@@ -187,7 +187,7 @@ The test script expects a compatible installed bridge version and a packaged ext
|
|||||||
Test results will be displayed in the terminal and within the opened browser tab. Chrome may take some time to initialize the media router component before the cast API is available for testing.
|
Test results will be displayed in the terminal and within the opened browser tab. Chrome may take some time to initialize the media router component before the cast API is available for testing.
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
$ npm run build:app
|
$ npm run build:bridge
|
||||||
$ npm run install-manifest
|
$ npm run install-manifest
|
||||||
$ npm run package:ext
|
$ npm run package:ext
|
||||||
$ npm test
|
$ npm test
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import config from "./config.js";
|
|||||||
const __dirname = path.dirname(url.fileURLToPath(import.meta.url));
|
const __dirname = path.dirname(url.fileURLToPath(import.meta.url));
|
||||||
const rootPath = path.join(__dirname, "../../../");
|
const rootPath = path.join(__dirname, "../../../");
|
||||||
|
|
||||||
export const DIST_PATH = path.join(rootPath, "dist/app");
|
export const DIST_PATH = path.join(rootPath, "dist/bridge");
|
||||||
export const LICENSE_PATH = path.join(rootPath, "LICENSE");
|
export const LICENSE_PATH = path.join(rootPath, "LICENSE");
|
||||||
|
|
||||||
export const REGISTRY_KEY = config.applicationName;
|
export const REGISTRY_KEY = config.applicationName;
|
||||||
2
app/package-lock.json → bridge/package-lock.json
generated
2
app/package-lock.json → bridge/package-lock.json
generated
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"name": "app",
|
"name": "bridge",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
25
package.json
25
package.json
@@ -1,22 +1,25 @@
|
|||||||
{
|
{
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"postinstall": "npm run postinstall:app && npm run postinstall:ext",
|
"postinstall": "npm run postinstall:bridge && npm run postinstall:ext",
|
||||||
"postinstall:app": "cd app && npm install",
|
"postinstall:bridge": "cd bridge && npm install",
|
||||||
"postinstall:ext": "cd ext && npm install",
|
"postinstall:ext": "cd ext && npm install",
|
||||||
"build": "npm run build:app && npm run build:ext",
|
"build": "npm run build:bridge && npm run build:ext",
|
||||||
"build:app": "cd app && npm run build",
|
"build:bridge": "cd bridge && npm run build",
|
||||||
"build:ext": "cd ext && npm run build",
|
"build:ext": "cd ext && npm run build",
|
||||||
"watch:ext": "cd ext && npm run watch",
|
"watch:ext": "cd ext && npm run watch",
|
||||||
"start:ext": "cd ext && npm run start",
|
"start:ext": "cd ext && npm run start",
|
||||||
"package": "npm run package:app && npm run package:ext",
|
"package": "npm run package:bridge && npm run package:ext",
|
||||||
"package:app": "cd app && npm run package",
|
"package:bridge": "cd bridge && npm run package",
|
||||||
"package:ext": "cd ext && npm run package",
|
"package:ext": "cd ext && npm run package",
|
||||||
"test": "node test/driver.js",
|
"test": "node test/driver.js",
|
||||||
"install-manifest": "cd app && npm run install-manifest",
|
"install-manifest": "cd bridge && npm run install-manifest",
|
||||||
"remove-manifest": "cd app && npm run remove-manifest",
|
"remove-manifest": "cd bridge && npm run remove-manifest",
|
||||||
"lint": "npm run lint:app && npm run lint:ext",
|
"lint": "npm run lint:bridge && npm run lint:ext",
|
||||||
"lint:app": "eslint app/src --ext .ts,.js",
|
"lint:bridge": "eslint bridge/src --ext .ts,.js",
|
||||||
"lint:ext": "eslint ext/src --ext .ts,.js,.svelte"
|
"lint:ext": "eslint ext/src --ext .ts,.js,.svelte",
|
||||||
|
"build:app": "npm run build:bridge",
|
||||||
|
"package:app": "npm run package:bridge",
|
||||||
|
"lint:app": "npm run lint:bridge"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@typescript-eslint/eslint-plugin": "^5.14.0",
|
"@typescript-eslint/eslint-plugin": "^5.14.0",
|
||||||
|
|||||||
Reference in New Issue
Block a user