Skip to content

Commit

Permalink
添加升级脚本
Browse files Browse the repository at this point in the history
  • Loading branch information
WanderWang committed Oct 17, 2014
1 parent eacaa2c commit c31b585
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tools/lib/tools/upgrade.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ var upgradeConfigArr = [
{"v" : "1.0.4", "func":upgradeTo_1_0_4},
{"v" : "1.0.5", "func":upgradeTo_1_0_5},
{"v" : "1.0.6", "func":upgradeTo_1_0_6},
{"v" : "1.1.0", "func":upgradeTo_1_1_0}
{"v" : "1.1.0", "func":upgradeTo_1_1_0},
{"v" : "1.1.1", "func":upgradeTo_1_1_1}
];

var currDir;
Expand Down Expand Up @@ -190,6 +191,12 @@ function upgradeTo_1_1_0() {
globals.exit(1703);
}

function upgradeTo_1_1_1(){
projectConfig.init(currDir);
projectConfig.data.egret_version = "1.1.1";
projectConfig.save();
}

function getClassList(item) {
var basename = path.basename(item)
return basename.substring(0, basename.indexOf("."))
Expand Down

0 comments on commit c31b585

Please sign in to comment.