|
6 | 6 | pub run build_runner build web -o build -r
|
7 | 7 | ```
|
8 | 8 |
|
| 9 | +This will build to the `/web` directory. |
| 10 | + |
9 | 11 | TODO(elliette): Building with DDC no longer works, figure out why.
|
10 | 12 | See https://github.com/dart-lang/webdev/issues/1506
|
11 | 13 | - With DDC:
|
12 | 14 |
|
13 | 15 | ```
|
14 | 16 | pub run build_runner build web -o build
|
15 | 17 | ```
|
| 18 | + |
| 19 | +This will build to the `/build/web` directory. |
16 | 20 | ## Local Development
|
17 | 21 |
|
18 | 22 | ### Update `manifest.json`:
|
@@ -43,8 +47,31 @@ pub run build_runner build web -o build
|
43 | 47 | * More debugging information can be found in the [Chrome Developers documentation](https://developer.chrome.com/docs/extensions/mv3/devguide/)
|
44 | 48 |
|
45 | 49 |
|
46 |
| -## Deployment |
| 50 | +## Release process |
| 51 | + |
| 52 | +1. Update the version in `web/manifest.json`, `pubspec.yaml`, and in the `CHANGELOG`. |
| 53 | +2. Build dart2js: `pub run build_runner build web -o build -r` |
| 54 | +> *At this point, you should manually verify that everything is working by following the steps in [Local Development](#local-development).* |
| 55 | +3. Open a PR to submit the version and build changes. |
| 56 | +4. Once submitted, pull the changes down to your local branch, and create a zip of the `debug_extension/web` directory (NOT `debug_extension/build/web`). |
| 57 | +5. Rename the zip `version_XX.XX.XX.zip` (eg, `version_1.24.0.zip`) and add it to the go/dart-debug-extension-zips folder |
| 58 | +> *You must be a Googler to do this. Ask for help if not.* |
| 59 | +6. Go to the [Chrome Web Store Developer Dashboard](https://chrome.google.com/webstore/devconsole). |
| 60 | +7. At the top-right, under Publisher, select dart-bat. |
| 61 | +> *If you don’t see dart-bat as an option, you will need someone on the Dart team to add you to the dart-bat Google group.* |
| 62 | +7. Under Items, select the "Dart Debug Extension". |
| 63 | +8. Go to “Package” then select “Upload new package”. |
| 64 | +> *The first time you do this, you will be asked to pay a $5 registration fee. The registration fee can be expensed.* |
| 65 | +9. Upload the zip file you created in step 4. |
| 66 | +10. Save as draft, and verify that the new version is correct. |
| 67 | +11. Publish. The extension will be published immediately after going through the review process. |
| 68 | + |
| 69 | +## Rollback process |
| 70 | +> The Chrome Web Store Developer Dashboard does not support rollbacks. Instead you must re-publish an earlier version. This means that the extension will still have to go through the review process, which can take anywhere from a few hours (most common) to a few days. |
| 71 | +1. Find the previous version you want to rollback to in the go/dart-debug-extension-zips folder. |
| 72 | +> > *You must be a Googler to do this. Ask for help if not.* |
| 73 | +2. Unzip the version you have chosen, and in `manifest.json` edit the version number to be the next sequential version after the current "bad" version (eg, the bad version is `1.28.0` and you are rolling back to version `1.27.0`. Therefore you change `1.27.0` to `1.29.0`). |
| 74 | +3. Re-zip the directory and rename it to the new version number. Add it to the go/dart-debug-extension-zips folder. |
| 75 | +4. Now, follow steps 6 - 11 in [Release process](#release-process). |
| 76 | + |
47 | 77 |
|
48 |
| -- Update the version number in `web/manifest.json`. |
49 |
| -- Zip `web/manifest.json`, `web/background.js`, and `dart.png`. |
50 |
| -- Upload the `.zip` to the Chrome Web Store. |
|
0 commit comments