avm99963 | bf0849a | 2020-08-08 16:16:04 +0200 | [diff] [blame] | 1 | # TW Power Tools |
avm99963 | a6eedcf | 2020-12-08 14:08:57 +0100 | [diff] [blame^] | 2 | [](https://chrome.google.com/webstore/detail/infinite-scroll-in-tw/hpgakoecmgibigdbnljgecablpipbajb) |
avm99963 | 03d5409 | 2020-01-18 21:33:16 +0100 | [diff] [blame] | 3 | |
avm99963 | b69eb3d | 2020-08-20 02:03:44 +0200 | [diff] [blame] | 4 | An extension which brings several enhancements to the Google Forums and the |
| 5 | Community Console. |
avm99963 | bf0849a | 2020-08-08 16:16:04 +0200 | [diff] [blame] | 6 | |
avm99963 | 666575f | 2020-08-08 15:40:39 +0200 | [diff] [blame] | 7 | ## Release cycle |
avm99963 | b69eb3d | 2020-08-20 02:03:44 +0200 | [diff] [blame] | 8 | When the code in the `master` branch is considered to be stable, a release can |
| 9 | be made. This is the procedure: |
avm99963 | 666575f | 2020-08-08 15:40:39 +0200 | [diff] [blame] | 10 | |
avm99963 | b69eb3d | 2020-08-20 02:03:44 +0200 | [diff] [blame] | 11 | 1. Tag the last commit with a version number (in the format `vx`, where x is the |
| 12 | extension's [version number](https://developer.chrome.com/extensions/manifest/version) |
avm99963 | 4c58488 | 2020-08-23 16:08:50 +0200 | [diff] [blame] | 13 | for that release) by running `bash tagRelease.bash --version vx`. Note that the |
| 14 | tag must be pushed to Gerrit after being created. |
avm99963 | b69eb3d | 2020-08-20 02:03:44 +0200 | [diff] [blame] | 15 | 2. Build the extension for both the stable and beta channels (this is explained |
| 16 | in the next section). This will output a ZIP file for each release channel and |
| 17 | each supported browser. |
avm99963 | 6c35730 | 2020-08-09 19:54:08 +0200 | [diff] [blame] | 18 | |
avm99963 | b69eb3d | 2020-08-20 02:03:44 +0200 | [diff] [blame] | 19 | Afterwards, the release/build files must be submitted to the Chrome Web Store |
| 20 | and addons.mozilla.org. |
avm99963 | 6c35730 | 2020-08-09 19:54:08 +0200 | [diff] [blame] | 21 | |
| 22 | ### Submitting to the Chrome Web Store |
avm99963 | b69eb3d | 2020-08-20 02:03:44 +0200 | [diff] [blame] | 23 | 1. [Upload both release files](https://developer.chrome.com/webstore/publish#upload-your-item) |
| 24 | to the Chrome Web Store, one for each release channel. |
| 25 | 2. [Submit both releases](https://developer.chrome.com/webstore/publish#submit-your-item-for-publishing) |
| 26 | to be reviewed by the Chrome Web Store team, but in the case of the stable |
| 27 | channel uncheck the "Publish automatically after it has passed review" option. |
| 28 | 3. Upload the beta release file to the |
| 29 | [GitHub releases page](https://github.com/avm99963/infinitegforums/releases) |
| 30 | under the newly created tag. Mark that release as a pre-release at GitHub. |
avm99963 | 6c35730 | 2020-08-09 19:54:08 +0200 | [diff] [blame] | 31 | 4. Wait until the beta release is reviewed and approved by Google. |
avm99963 | b69eb3d | 2020-08-20 02:03:44 +0200 | [diff] [blame] | 32 | 5. Test again the extension by using the beta channel. Check if the options have |
| 33 | been transfered correctly from version to version, and wait some days (for |
| 34 | instance between 3 and 5 days) to see if other people report issues with the |
| 35 | updated version. |
| 36 | 6. If everything goes well, publish the update in the stable channel. The |
| 37 | updated version should have already been reviewed by the Chrome Web Store team |
| 38 | at this time. |
| 39 | 7. Update the release file in the GitHub releases page by removing the beta |
| 40 | release file and uploading the stable release file. Also, remove the pre-release |
| 41 | label. |
avm99963 | 666575f | 2020-08-08 15:40:39 +0200 | [diff] [blame] | 42 | |
avm99963 | b69eb3d | 2020-08-20 02:03:44 +0200 | [diff] [blame] | 43 | If during this process the release wasn't approved by Google or an issue was |
| 44 | found during beta testing, a new release which fixes this should be created. |
avm99963 | 666575f | 2020-08-08 15:40:39 +0200 | [diff] [blame] | 45 | |
avm99963 | 6c35730 | 2020-08-09 19:54:08 +0200 | [diff] [blame] | 46 | ### Submitting to addons.mozilla.org |
| 47 | The procedure is similar to the one with the Chrome Web Store. |
| 48 | |
avm99963 | b69eb3d | 2020-08-20 02:03:44 +0200 | [diff] [blame] | 49 | @TODO: Add more details once the first version of the extension has been |
| 50 | uploaded to addons.mozilla.org. |
avm99963 | 6c35730 | 2020-08-09 19:54:08 +0200 | [diff] [blame] | 51 | |
avm99963 | 666575f | 2020-08-08 15:40:39 +0200 | [diff] [blame] | 52 | ## Build the extension |
avm99963 | b69eb3d | 2020-08-20 02:03:44 +0200 | [diff] [blame] | 53 | A zip file with the contents of the extension, which can be uploaded to the |
| 54 | Chrome Web Store and addons.mozilla.org, can be created with any of the |
| 55 | following procedures: |
avm99963 | 03d5409 | 2020-01-18 21:33:16 +0100 | [diff] [blame] | 56 | |
avm99963 | 6c35730 | 2020-08-09 19:54:08 +0200 | [diff] [blame] | 57 | ### Using the release.bash script |
avm99963 | b69eb3d | 2020-08-20 02:03:44 +0200 | [diff] [blame] | 58 | Run `bash release.bash -h` in order to learn how to use this command. To |
| 59 | summarize, the command accepts the `--channel` and `--browser` flags (or their |
| 60 | short versions `-c` and `-b`). |
avm99963 | 666575f | 2020-08-08 15:40:39 +0200 | [diff] [blame] | 61 | |
avm99963 | b69eb3d | 2020-08-20 02:03:44 +0200 | [diff] [blame] | 62 | As an example, if you wanted to create a ZIP file of the beta-branded extension |
| 63 | targeted for Firefox, you would run `bash release.bash -c beta -b gecko`. |
avm99963 | 6c35730 | 2020-08-09 19:54:08 +0200 | [diff] [blame] | 64 | |
| 65 | ### Using make |
avm99963 | b69eb3d | 2020-08-20 02:03:44 +0200 | [diff] [blame] | 66 | You can also use _make_ to build the extension. This is just a wrapper for the |
| 67 | `release.bash` command. |
avm99963 | 6c35730 | 2020-08-09 19:54:08 +0200 | [diff] [blame] | 68 | |
avm99963 | b69eb3d | 2020-08-20 02:03:44 +0200 | [diff] [blame] | 69 | Run `make all` to build the extension for all the available channels and |
| 70 | browsers. You can also run `make {target}` where `{target}` is one of the |
| 71 | following: `chromium-stable`, `chromium-beta`, `gecko-stable`, `gecko-beta`. |
avm99963 | 6c35730 | 2020-08-09 19:54:08 +0200 | [diff] [blame] | 72 | |
avm99963 | b69eb3d | 2020-08-20 02:03:44 +0200 | [diff] [blame] | 73 | Run `make clean` to clean all the release files (this removes the `out` folder, |
| 74 | which is where the release files are saved). |
avm99963 | 03d5409 | 2020-01-18 21:33:16 +0100 | [diff] [blame] | 75 | |
Alex Ivanov | 4f3df18 | 2020-04-10 09:33:05 +0300 | [diff] [blame] | 76 | ## Testing notes |
avm99963 | b69eb3d | 2020-08-20 02:03:44 +0200 | [diff] [blame] | 77 | When testing the extension during development, you don't have to build the |
| 78 | extension each time you want to import an updated version to Chrome/Firefox. |
| 79 | Instead, run `bash generateManifest.bash {browser}` once, where `{browser}` |
| 80 | is either `CHROMIUM` or `GECKO`, and this will generate a `manifest.json` |
| 81 | file for the specified browser in the `src` directory. Now, you can load the |
| 82 | `src` folder directly in the browser in order to import the extension, which |
| 83 | removes the need to build it. When the `manifest.gjson` file is modified, you'll |
| 84 | have to generate the manifest again. |
avm99963 | 6c35730 | 2020-08-09 19:54:08 +0200 | [diff] [blame] | 85 | |
avm99963 | b69eb3d | 2020-08-20 02:03:44 +0200 | [diff] [blame] | 86 | To test translations, you might want to set your browser's locale. This section |
| 87 | tells you how to set the locale in |
| 88 | [Windows](https://developer.chrome.com/extensions/i18n#testing-win), |
| 89 | [Mac OS X](https://developer.chrome.com/extensions/i18n#testing-mac), |
| 90 | [Linux](https://developer.chrome.com/extensions/i18n#testing-linux), |
| 91 | and [Chrome OS](https://developer.chrome.com/extensions/i18n#testing-chromeos). |
avm99963 | 666575f | 2020-08-08 15:40:39 +0200 | [diff] [blame] | 92 | |
| 93 | ## Beta channel |
avm99963 | b69eb3d | 2020-08-20 02:03:44 +0200 | [diff] [blame] | 94 | The beta channel for Chrome is available |
| 95 | [here](https://chrome.google.com/webstore/detail/infinite-scroll-in-tw-bet/memmklnkkhifmflmidnflfcdepamljef). |