commit | 127837b2b66e868855905de5c0f8589991d5d55c | [log] [tgz] |
---|---|---|
author | avm99963 <me@avm99963.com> | Sun Aug 09 20:21:03 2020 +0200 |
committer | avm99963 <me@avm99963.com> | Sun Aug 09 20:21:03 2020 +0200 |
tree | b30920f82531d9c1d0c841728c808cefa8adcae3 | |
parent | 6c35730cb602a828e5e11a625e1c1f13ce9383b1 [diff] |
Fixed zipping at release.bash Before, we zipped the src folder, but addons.firefox.org doesn't like having the src folder zipped; instead, it only wants its contents zipped. This commit fixes this issue. Change-Id: I605ad8abe9975dc120fa84f32255a19a1921ab92
An extension which brings several enhancements to the Google Forums and the Community Console.
When the code in the master
branch is considered to be stable, a release can be made. This is the procedure:
vx
, where x is the extension's version number for that release) by running git tag -a vx -m "vx"
. Note that the tag should be an annotated tag and not a lightweight tag, and it must be pushed to Gerrit after being created.Afterwards, the release/build files must be submitted to the Chrome Web Store and addons.mozilla.org.
If during this process the release wasn't approved by Google or an issue was found during beta testing, a new release which fixes this should be created.
The procedure is similar to the one with the Chrome Web Store.
@TODO: Add more details once the first version of the extension has been uploaded to addons.mozilla.org.
A zip file with the contents of the extension, which can be uploaded to the Chrome Web Store and addons.mozilla.org, can be created with any of the following procedures:
Run bash release.bash -h
in order to learn how to use this command. To summarize, the command accepts the --channel
and --browser
flags (or their short versions -c
and -b
).
As an example, if you wanted to create a ZIP file of the beta-branded extension targeted for Firefox, you would run bash release.bash -c beta -b gecko
.
You can also use make to build the extension. This is just a wrapper for the release.bash
command.
Run make all
to build the extension for all the available channels and browsers. You can also run make {target}
where {target}
is one of the following: chromium-stable
, chromium-beta
, gecko-stable
, gecko-beta
.
Run make clean
to clean all the release files (this removes the out
folder, which is where the release files are saved).
When testing the extension during development, you don't have to build the extension each time you want to import an updated version to Chrome/Firefox. Instead, run bash generateManifest.bash {browser}
once, where {browser}
is either chromium
or gecko
, and this will generate a manifest.json
file for the specified browser in the src
directory. Now, you can load the src
folder directly in the browser in order to import the extension, which removes the need to build it. When the manifest.gjson
file is modified, you'll have to generate the manifest again.
To test translations, you might want to set your browser's locale. This section tells you how to set the locale in Windows, Mac OS X, Linux, and Chrome OS.
The beta channel for Chrome is available here.