fix entry point versioning

This commit is contained in:
Antelle 2015-11-14 10:56:45 +03:00
parent 876148e953
commit adcfe6a3df
1 changed files with 12 additions and 0 deletions

View File

@ -1,3 +1,11 @@
// KeeWeb launcher script
// This script is distributed with the app and is its entry point
// It checks whether the app is available in userData folder and if its version is higher than local, launches it
// This script is the only part which will be updated only with the app itself, auto-update will not change it
// (C) Antelle 2015, MIT license https://github.com/antelle/keeweb
'use strict';
/* jshint node:true */
@ -20,6 +28,10 @@ if (fs.existsSync(appPathUserData)) {
for (var i = 0; i < versionLocal.length; i++) {
if (+versionUserData[i] > +versionLocal[i]) {
appPath = appPathUserData;
break;
}
if (+versionUserData[i] < +versionLocal[i]) {
break;
}
}
}