Skip to content

Commit 127bf25

Browse files
committed
Basic replacement for beta channel
AMO will be removing the beta channel feature in the near future. In order to approximate that feature, beta versions will be uploaded for signing as unlisted, for manual distribution. Since these versions have no update manifest, AMO will be used for updates. Automated GitHub beta releases coupled with an update manifest to follow at a later date.
1 parent 72d35a3 commit 127bf25

File tree

4 files changed

+9
-8
lines changed

4 files changed

+9
-8
lines changed

gulpfile.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ function version() {
3939
.pipe(plugin.newer({dest: '.', extra: 'package.json'}))
4040
.pipe(plugin.jsonModify({
4141
key: 'version',
42-
value: data.package.version.replace(/-([^.0-9]+)\./, '$1').replace(/(\d)-(\d)/, '$1pre$2')
42+
value: data.package.version.replace(/-([^.0-9]+)\.?/, '$1').replace(/(\d)-(\d)/, '$1pre$2')
4343
}))
4444
.pipe(gulp.dest('.'));
4545
}
@@ -118,6 +118,7 @@ function uploadXPI() {
118118
xpiPath: path.resolve('build/jsonovich.xpi'),
119119
id: data.manifest.applications.gecko.id, // docs say optional and "will have no effect!", but server disagrees
120120
version: data.manifest.version,
121+
channel: /[^0-9.]/.test(data.manifest.version) ? 'unlisted' : 'listed',
121122
apiKey: data.secret.jwtIssuer,
122123
apiSecret: data.secret.jwtSecret,
123124
downloadDir: path.resolve('build') // doesn't seem to be used for a listed addon

package-lock.json

+4-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "jsonovich",
3-
"version": "2.1.0",
3+
"version": "2.1.2",
44
"description": "A webextension for Firefox. Pretty-prints JSON content in the browser for easy, unobtrusive viewing.",
55
"keywords": [
66
"json",
@@ -44,7 +44,7 @@
4444
"gulp-stylelint": "^6.0.0",
4545
"gulp-vinyl-zip": "^2.1.0",
4646
"import-lazy": "^3.1.0",
47-
"sign-addon": "^0.2.2",
47+
"sign-addon": "^0.3.0",
4848
"stylelint": "^9.1.1",
4949
"stylelint-config-standard": "^18.1.0"
5050
}

src/manifest.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"manifest_version": 2,
33
"default_locale": "en",
44
"name": "JSONovich",
5-
"version": "2.1.0",
5+
"version": "2.1.2",
66
"description": "__MSG_extensionDescription__",
77
"homepage_url": "https://github.com/JSONovich/jsonovich",
88
"author": "Michael J. Giarlo",

0 commit comments

Comments
 (0)