We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 825fa42 commit dacc578Copy full SHA for dacc578
.tools/build.js
@@ -46,7 +46,11 @@ async function getAlphaVersion(manifest){
46
}
47
const now = new Date();
48
const date = `${now.getFullYear()}${f(now.getMonth() + 1)}${f(now.getDate())}`;
49
- const baseVersion = `${manifest.version}.${date}`;
+ const versionParts = manifest.version.split(".");
50
+ while (versionParts.length > 2){
51
+ versionParts.pop();
52
+ }
53
+ const baseVersion = `${versionParts.join(".")}.${date}`;
54
if (!fs.existsSync(path.join(versionsPath, getXPIFileName("canvasblocker_beta", baseVersion)))){
55
return baseVersion;
56
0 commit comments