-
-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Bump version to 0.5.2 * Add gulp methods to bump update manifest.
- Loading branch information
Showing
5 changed files
with
48 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,28 +2,44 @@ | |
"addons": { | ||
"[email protected]": { | ||
"updates": [ | ||
{ | ||
"version": "0.5.2", | ||
"update_link": "https://github.com/thsmi/sieve/releases/download/0.5.2/sieve-0.5.2.xpi", | ||
"update_info_url": "https://github.com/thsmi/sieve/releases/tag/0.5.2", | ||
"browser_specific_settings": { | ||
"gecko": { | ||
"strict_min_version": "68.0a1" | ||
} | ||
} | ||
}, | ||
{ | ||
"version": "0.5.1", | ||
"update_link": "https://github.com/thsmi/sieve/releases/download/0.5.1/sieve-0.5.1.xpi", | ||
"update_info_url": "https://github.com/thsmi/sieve/releases/tag/0.5.1", | ||
"browser_specific_settings": { | ||
"gecko": { "strict_min_version": "68.0a1" } | ||
"gecko": { | ||
"strict_min_version": "68.0a1" | ||
} | ||
} | ||
}, | ||
{ | ||
"version": "0.5.0", | ||
"update_link": "https://github.com/thsmi/sieve/releases/download/0.5.0/sieve-0.5.0.xpi", | ||
"update_info_url": "https://github.com/thsmi/sieve/releases/tag/0.5.0", | ||
"browser_specific_settings": { | ||
"gecko": { "strict_min_version": "68.0a1" } | ||
"gecko": { | ||
"strict_min_version": "68.0a1" | ||
} | ||
} | ||
}, | ||
{ | ||
"version": "0.4.2", | ||
"update_link": "https://github.com/thsmi/sieve/releases/download/0.4.2/sieve-0.4.2.xpi", | ||
"update_info_url": "https://github.com/thsmi/sieve/releases/tag/0.4.2", | ||
"browser_specific_settings": { | ||
"gecko": { "strict_min_version": "68.0a1" } | ||
"gecko": { | ||
"strict_min_version": "68.0a1" | ||
} | ||
} | ||
}, | ||
{ | ||
|
@@ -79,4 +95,4 @@ | |
] | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -267,6 +267,28 @@ async function bumpPatchVersion() { | |
await setPackageVersion(pkgVersion, './package.json'); | ||
} | ||
|
||
/** | ||
* Updates the manifest which is used by the apps as well as the WXs | ||
* automatic update checker. | ||
*/ | ||
async function updateVersion() { | ||
|
||
const version = (await getPackageVersion()).join("."); | ||
|
||
const data = JSON.parse(await readFile("./docs/update.json", 'utf8')); | ||
|
||
data["addons"]["[email protected]"]["updates"].unshift({ | ||
"version" : version, | ||
"update_link": `https://github.com/thsmi/sieve/releases/download/${version}/sieve-${version}.xpi`, | ||
"update_info_url": `https://github.com/thsmi/sieve/releases/tag/${version}`, | ||
"browser_specific_settings": { | ||
"gecko": { "strict_min_version": "68.0a1" } | ||
} | ||
}); | ||
|
||
await writeFile("./docs/update.json", JSON.stringify(data, null, JSON_INDENTATION), 'utf-8'); | ||
} | ||
|
||
/** | ||
* Compresses the given file or directory recursively. | ||
* | ||
|
@@ -377,6 +399,8 @@ exports["bumpMajorVersion"] = bumpMajorVersion; | |
exports["bumpMinorVersion"] = bumpMinorVersion; | ||
exports["bumpPatchVersion"] = bumpPatchVersion; | ||
|
||
exports["updateVersion"] = updateVersion; | ||
|
||
exports["BASE_DIR_BUILD"] = BASE_DIR_BUILD; | ||
exports["BASE_DIR_COMMON"] = BASE_DIR_COMMON; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters