Skip to content

Commit f0eff8c

Browse files
author
Kent Boortz
committed
Merge from mysql-5.0-build
2 parents 3653536 + 6fac985 commit f0eff8c

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

win/create_manifest.js

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,17 @@ try
3131
var end= supp_version.indexOf("-");
3232
if (end == -1) end= supp_version.length;
3333
var app_version= supp_version.substring(0, end);
34-
app_version+= ".0";
34+
var fourth_element= 0;
35+
if(app_version.match(/[a-z]$/)) {
36+
fourth_element+= (1 + app_version.charCodeAt(end-1) - "a".charCodeAt(0));
37+
app_version= app_version.substring(0,--end);
38+
}
39+
if(app_version.match(/sp[1-9]$/)) {
40+
fourth_element+= 100*(app_version.charCodeAt(end-1) - "0".charCodeAt(0));
41+
app_version= app_version.substring(0, end-3);
42+
end-= 3;
43+
}
44+
app_version+= "." + fourth_element;
3545
break;
3646
case "arch":
3747
var app_arch= parts[1];

0 commit comments

Comments
 (0)