Skip to content

Commit 675f3b6

Browse files
committed
update version and db location
1 parent 4fb22a1 commit 675f3b6

File tree

3 files changed

+7
-10
lines changed

3 files changed

+7
-10
lines changed

forge.config.js

+2-8
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,14 @@ module.exports = {
99
makers: [
1010
{
1111
name: '@electron-forge/maker-squirrel',
12-
config: {
13-
name: 'homura',
14-
},
12+
config: {},
1513
},
1614
{
1715
name: '@electron-forge/maker-zip',
18-
platforms: ['darwin'],
19-
},
20-
{
21-
name: '@electron-forge/maker-deb',
2216
config: {},
2317
},
2418
{
25-
name: '@electron-forge/maker-rpm',
19+
name: '@electron-forge/maker-deb',
2620
config: {},
2721
},
2822
],

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"main": ".webpack/main",
33
"name": "homura",
44
"productName": "Homura",
5-
"version": "0.0.1",
5+
"version": "0.0.2",
66
"description": "Homura RSS Reader",
77
"scripts": {
88
"start": "cross-env NODE_ENV=development electron-forge start",

src/model/index.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
import Database from 'better-sqlite3';
2+
import { app } from 'electron';
3+
import path from 'path';
24
import { getPost } from './getPost';
35
import { getPostList, GetPostListOptions } from './getPostList';
46
import { getSourceList } from './getSourceList';
@@ -15,7 +17,8 @@ export class Model {
1517
private readonly sqlite: Database.Database;
1618

1719
constructor() {
18-
const dbPath = ':memory:';
20+
// const dbPath = ':memory:';
21+
const dbPath = path.resolve(app.getPath('appData'), 'homura', '0.0.2', 'database.sqlite');
1922
this.sqlite = new Database(dbPath, { verbose: console.log });
2023
this.initialize();
2124
}

0 commit comments

Comments
 (0)