Skip to content

Commit

Permalink
update version to 0.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Saul-Mirone committed Feb 11, 2021
1 parent 7d48c33 commit 191e144
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"main": ".webpack/main",
"name": "homura",
"productName": "Homura",
"version": "0.0.2",
"version": "0.1.0",
"description": "Homura RSS Reader",
"scripts": {
"start": "cross-env NODE_ENV=development electron-forge start",
Expand Down
3 changes: 2 additions & 1 deletion src/model/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import Database from 'better-sqlite3';
import { app } from 'electron';
import { ensureDirSync } from 'fs-extra';
import path from 'path';
import { version } from '../../package.json';
import { getPost } from './getPost';
import { getPostList, GetPostListOptions } from './getPostList';
import { getSourceList } from './getSourceList';
Expand All @@ -19,7 +20,7 @@ export class Model {

constructor() {
// const dbPath = ':memory:';
const dbDir = path.resolve(app.getPath('appData'), 'homura', '0.0.2');
const dbDir = path.resolve(app.getPath('appData'), 'homura', version);
ensureDirSync(dbDir);
const dbPath = path.resolve(dbDir, 'database.sqlite');
this.sqlite = new Database(dbPath, { verbose: console.log });
Expand Down

0 comments on commit 191e144

Please sign in to comment.