better fix for migration in electron + electron upgrade to 1.8.2 beta 3

This commit is contained in:
azivner
2017-12-06 21:15:46 -05:00
parent bbd1774815
commit 4f47c4d6e9
4 changed files with 29 additions and 15 deletions
+1 -1
View File
@@ -1 +1 @@
module.exports = { build_date:"2017-12-04T23:02:48-05:00", build_revision: "23e8e20d44ef029e6891dec6d2d855d282996823" };
module.exports = { build_date:"2017-12-06T21:05:03-05:00", build_revision: "bbd177481523bf6d7c9388b0ddf65af7f5c61e6b" };
+2 -5
View File
@@ -4,12 +4,9 @@ const options = require('./options');
const fs = require('fs-extra');
const log = require('./log');
const app_info = require('./app_info');
const path = require('path');
let MIGRATIONS_DIR = "migrations";
if (!fs.existsSync(MIGRATIONS_DIR) && isElectron()) {
MIGRATIONS_DIR = "resources/app/migrations";
}
const MIGRATIONS_DIR = path.resolve(__dirname, "..", "migrations");
if (!fs.existsSync(MIGRATIONS_DIR)) {
log.error("Could not find migration directory: " + MIGRATIONS_DIR);