Skip to content

Commit 62fa01a

Browse files
committed
update doMigration
1 parent e0e783d commit 62fa01a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/EIDEProjectMigration.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ export async function doMigration(projectRootDir: File) {
2525
}
2626

2727
const prjCfg = ProjectConfiguration.parseProjectFile(projCfgFile.Read());
28+
29+
// version < 4.0 ?
2830
if (compareVersion(prjCfg.version, '4.0') < 0) {
2931
for (const key in prjCfg.targets) {
3032
const target = prjCfg.targets[key];
@@ -56,6 +58,10 @@ export async function doMigration(projectRootDir: File) {
5658
(<any>target)['custom_dep'] = undefined;
5759
}
5860
}
61+
}
62+
63+
// save
64+
if (compareVersion(prjCfg.version, EIDE_CONF_VERSION) < 0) {
5965
prjCfg.version = EIDE_CONF_VERSION;
6066
projCfgFile.Write(ProjectConfiguration.dumpProjectFile(prjCfg));
6167
}

0 commit comments

Comments
 (0)