You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+53-24Lines changed: 53 additions & 24 deletions
Original file line number
Diff line number
Diff line change
@@ -18,56 +18,85 @@ Downloads for the desktop are are available on the [GitHub Releases page](https:
18
18
19
19
The extension makes use of the Chrome debugging protocol to capture and save network traffic, and extends the [ReplayWeb.page](https://github.com/webrecorder/replayweb.page) UI and the [wabac.js](https://github.com/webrecorder/wabac.js) service worker system for replay and storage.
20
20
21
-
The codebase for the extension and Electron app is shared, but they can both be deployed in different ways.
21
+
## Development
22
22
23
-
## Building for Development
23
+
The Chromium extension and Electron app are built from the same source code for ease of development.
24
24
25
-
To develop ArchiveWeb.page, install Node 12+ and Yarn.
25
+
### Prerequisites
26
26
27
-
### Install the Development Extension
27
+
- Node >=12
28
+
- Yarn Classic (v1)
28
29
29
-
For development, the extension can be built locally and loaded as an unpacked extension. If you want to make changes to the extension, do the following:
30
+
### Installation
30
31
31
-
1. Clone this repo. Run `yarn install; yarn build-dev`. (You can also run `yarn build` to build the production version but it may be harder to debug).
32
+
To buildthe extension or Electron app locally for development, do the following:
32
33
33
-
2. Open the Chrome Extensions page ([chrome://extensions](chrome://extensions)).
3. Choose 'Load Unpacked Extension' and point to the `./dist/ext` directory in your local copy of this repo.
51
+
The development build can now be used to develop the extension or Electron app.
36
52
37
-
4. Click the extension icon to show the extension popup, start archiving, etc...
53
+
### Developing the Chromium extension
38
54
39
-
### Development Workflow (Extension)
55
+
To install the extension locally, load the development build as an unpacked extension:
40
56
41
-
For development, it is recommended to use the dev build of the extension:
57
+
1. Open the Chrome Extensions page ([chrome://extensions](chrome://extensions)).
42
58
43
-
1. Run `yarn install`and then `yarn run build-dev`
59
+
2. Choose 'Load Unpacked Extension'and point to the `./dist/ext` directory in your local copy of this repo.
44
60
45
-
2. Run `yarn run start-ext` -- this will ensure the `dist/ext` directory is rebuilt after any changes to the source.
61
+
3. Click the extension icon to show the extension popup, start archiving, etc...
46
62
47
-
3. After making changes, the extension still needs to be reloaded in the browser. From the Chrome extensions page, click the reload button to load the latest version.
63
+
#### Update extension on code changes
48
64
49
-
4. Click the extension icon to show the extension popup, start recording, etc... The dev build of the extension will be grey to differntiate from the production version.
65
+
To watch source code files and recompile the development build on change, run:
50
66
51
-
### Using the Electron App
67
+
```sh
68
+
yarn run start-ext
69
+
```
52
70
53
-
To run the Electron app development build:
71
+
Now, saving changes to source will automatically rebuild the `dist/ext` directory.
54
72
55
-
1. Clone this repo.
73
+
After making changes, the extension still needs to be reloaded in the browser.
56
74
57
-
2. Run `yarn install` and then `yarn run build-dev`
75
+
1. From the Chrome extensions page, click the reload button to load the latest version.
58
76
59
-
3. Run `yarn run start-electron` to start the app.
77
+
2. Click the extension icon to show the extension popup, start recording, etc... The dev build of the extension will be a different color from the production version.
60
78
61
-
The Electron App version will open recording in a new window. It is is designed to support Flash, better support for IPFS sharing.
79
+
### Developing the Electron app
62
80
63
-
### Development workflow (Electron App)
81
+
To start the Electron app using development build:
82
+
```sh
83
+
yarn run start-electron
84
+
```
64
85
65
-
After making changes, rerun `yarn run build-dev` and `yarn run start-electron` to load the app.
86
+
The Electron app will open recording in a new window. It is is designed to support Flash, better support for IPFS sharing.
87
+
88
+
#### Update app on change
89
+
90
+
Currently, the dev workflow for the Electron app does not support automatically rebuilding on file changes.
91
+
92
+
After making changes, rerun `yarn run build-dev` and `yarn run start-electron` to view your changes in the app.
66
93
67
94
## Standalone Build
68
95
69
96
To create a platform-specific binary, run:
70
97
71
-
`yarn run pack`
98
+
```sh
99
+
yarn run pack
100
+
```
72
101
73
102
The standalone app will then be available in the `./dist/` directory.
0 commit comments