Skip to content

Commit

Permalink
Build
Browse files Browse the repository at this point in the history
  • Loading branch information
abelogur committed Oct 16, 2018
1 parent 3e12c5f commit de9595a
Show file tree
Hide file tree
Showing 9 changed files with 355 additions and 292 deletions.
23 changes: 0 additions & 23 deletions built-exe.js

This file was deleted.

2 changes: 1 addition & 1 deletion database/dao/abstract-dao.ts
@@ -1,5 +1,5 @@
import {ipcMain} from 'electron';
import {log} from '../../logs-setting';
import log from 'electron-log';
import {AbstractChannel} from '../../commons/channel/abstract-channel';
import * as Knex from 'knex';

Expand Down
2 changes: 1 addition & 1 deletion database/dao/section-dao.ts
@@ -1,6 +1,6 @@
import * as Knex from 'knex';
import {ipcMain} from 'electron';
import {log} from '../../logs-setting';
import log from 'electron-log';
import {SectionChannel} from '../../commons/channel/section-channel';
import {AbstractDao} from './abstract-dao';
import {AbstractChannel} from '../../commons/channel/abstract-channel';
Expand Down
3 changes: 2 additions & 1 deletion database/session-creator.ts
@@ -1,10 +1,11 @@
import Knex = require('knex');
import {dialog} from 'electron';
import {log} from '../logs-setting';
import log from 'electron-log';

export abstract class SessionCreator {

static connection(filename: string): Knex {
log.info(filename);
const session = Knex({
client: 'sqlite3',
connection: {
Expand Down
5 changes: 0 additions & 5 deletions logs-setting.ts

This file was deleted.

6 changes: 4 additions & 2 deletions main.ts
@@ -1,5 +1,7 @@
import {app, BrowserWindow, dialog, ipcMain} from 'electron';
import {app, BrowserWindow} from 'electron';
import {Database} from './database/database';
const path = require('path');
const dbPath = path.resolve(process.resourcesPath, 'data.db');

class SchoolSectionsApp {

Expand All @@ -26,7 +28,7 @@ class SchoolSectionsApp {
}

private connectionToDataBase() {
new Database(`${__dirname}/data.db`);
new Database(dbPath);
}
}

Expand Down

0 comments on commit de9595a

Please sign in to comment.