Skip to content

Commit c31b585

Browse files
author
WanderWang
committed
添加升级脚本
1 parent eacaa2c commit c31b585

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

tools/lib/tools/upgrade.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ var upgradeConfigArr = [
1515
{"v" : "1.0.4", "func":upgradeTo_1_0_4},
1616
{"v" : "1.0.5", "func":upgradeTo_1_0_5},
1717
{"v" : "1.0.6", "func":upgradeTo_1_0_6},
18-
{"v" : "1.1.0", "func":upgradeTo_1_1_0}
18+
{"v" : "1.1.0", "func":upgradeTo_1_1_0},
19+
{"v" : "1.1.1", "func":upgradeTo_1_1_1}
1920
];
2021

2122
var currDir;
@@ -190,6 +191,12 @@ function upgradeTo_1_1_0() {
190191
globals.exit(1703);
191192
}
192193

194+
function upgradeTo_1_1_1(){
195+
projectConfig.init(currDir);
196+
projectConfig.data.egret_version = "1.1.1";
197+
projectConfig.save();
198+
}
199+
193200
function getClassList(item) {
194201
var basename = path.basename(item)
195202
return basename.substring(0, basename.indexOf("."))

0 commit comments

Comments
 (0)